Ignore:
Timestamp:
Mar 30, 2020, 8:31:10 PM (7 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
debian/bullseye, master
Children:
b72d9c4
Parents:
9f5877d
Message:

First version of a working log processing task

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mapservice/openapi.yaml

    r9f5877d r5e16955  
    317317                - 90.136111
    318318                - 29.934722
     319              referenceWaterLevelGaugeHeight: 5.1
    319320      responses:
    320321        '201':
    … …  
    530531          $ref: '#/components/responses/NotFound'
    531532    post:
    532       description: Creates a new log from given meta data. The log entries itself, must be uploaded per /logs/{log_id}
     533      description: >-
     534        Creates a new log from given meta data. The log entries itself, must be
     535        uploaded per /logs/{log_id}
    533536      tags:
    534537        - logs
    … …  
    659662        '404':
    660663          $ref: '#/components/responses/NotFound'
     664  '/tiles/gnuboat/{accuracy}/{resolution}/{zoom}/{x_tile}/{y_tile}.png':
     665    get:
     666      description: 'Returns the map tile x_tile, y_tile at Zoomlevel zoom'
     667      tags:
     668        - tiles
     669      summary: Represents a tile
     670      operationId: tilesTileGet
     671      parameters:
     672        - name: accuracy
     673          in: path
     674          description: Accuracy of generated tiles
     675          required: true
     676          schema:
     677            title: >-
     678              Accuracy of the tiles (for a higher accuracy more measured points per square meter are needed to generate a pixel of water depth)
     679            type: string
     680            enum:
     681              - 'high'
     682              - 'low'
     683        - name: resolution
     684          in: path
     685          description: Resolution of the tiles
     686          required: true
     687          schema:
     688            title: >-
     689              Tile Resolution (Pixel per Tile) (Placed here, because
     690              codegenerator could use Enums in components/schemas
     691            type: integer
     692            format: int32
     693            enum:
     694              - 256
     695              - 512
     696        - name: zoom
     697          in: path
     698          description: Zoomlevel
     699          required: true
     700          schema:
     701            $ref: '#/components/schemas/tileZoomlevel'
     702        - name: x_tile
     703          in: path
     704          description: Number of the tile in x dimension
     705          required: true
     706          schema:
     707            $ref: '#/components/schemas/itemId'
     708        - name: y_tile
     709          in: path
     710          description: Number of the tile in y dimension
     711          required: true
     712          schema:
     713            $ref: '#/components/schemas/itemId'
     714      responses:
     715        '200':
     716          description: OK
     717          content:
     718            image/*:
     719              schema:
     720                type: string
     721                format: binary
     722                #contentEncoding: base64
     723                #contentMediaType: image/png
     724        '400':
     725          $ref: '#/components/responses/BadRequest'
     726        '404':
     727          $ref: '#/components/responses/NotFound'
     728        '500':
     729          $ref: '#/components/responses/InternalServerError'
    661730components:
    662731  securitySchemes:
    … …  
    688757      title: Item ID
    689758      type: integer
    690       format: int32
     759      format: int64
    691760    itemName:
    692761      title: Item Name
    … …  
    851920      items:
    852921        $ref: '#/components/schemas/Water'
     922    ReferenceWaterLevelGaugeHeight:
     923      title: Gauge Height of reference water level of a Gauge
     924      description: The gauge height (stage) for reference water level. The reference water level is the water level, the depth on the map is shown at. Therefore, the water depth of a LogEntry is transformed to this referenceWaterLevel, with help of the gaugeHeight of the Log related to the LogEntry.
     925      type: number
     926      format: float
    853927    Gauge:
    854928      title: Gauge
    … …  
    863937        location:
    864938          $ref: '#/components/schemas/point'
     939        referenceWaterLevelGaugeHeight:
     940          $ref: '#/components/schemas/ReferenceWaterLevelGaugeHeight'
    865941        logs:
    866942          $ref: '#/components/schemas/logs'
    … …  
    871947        - name
    872948        - location
     949        - referenceWaterLevelGaugeHeight
    873950    GaugeCreation:
    874951      title: Gauge for Creation
    … …  
    879956        location:
    880957          $ref: '#/components/schemas/point'
     958        referenceWaterLevelGaugeHeight:
     959          $ref: '#/components/schemas/ReferenceWaterLevelGaugeHeight'
    881960        water:
    882961          $ref: '#/components/schemas/itemBase'
    … …  
    906985            manager:
    907986              $ref: '#/components/schemas/username'
     987            referenceWaterLevelGaugeHeight:
     988              $ref: '#/components/schemas/ReferenceWaterLevelGaugeHeight'
    908989            comment:
    909990              $ref: '#/components/schemas/comment'
    … …  
    9561037        $ref: '#/components/schemas/Device'
    9571038    GaugeHeight:
    958       title: 'Absolute water height (stage) of the gauge, at the time of measuring'
     1039      title: 'Gauge height (stage) of the gauge, at the time of measuring'
    9591040      type: number
    9601041      format: float
    … …  
    10851166        - geometry
    10861167        - properties
     1168    tileZoomlevel:
     1169      title: Zoomlevel of requested Tile
     1170      type: integer
     1171      format: int32
     1172      minimum: 0
     1173      maximum: 19
    10871174    HttpError:
    10881175      title: HTTP Error Response Object
    … …  
    11881275          - 90.136111
    11891276          - 29.934722
     1277        referenceWaterLevelGaugeHeight: 5.1
    11901278        comment: Gauge for Mississippi in New Orleans
    11911279    Gauges:
    … …  
    11971285            - 90.136111
    11981286            - 29.934722
     1287          referenceWaterLevelGaugeHeight: 5.1
    11991288      summary: A sample list of gauges
    12001289    GaugeGeoJson:
    … …  
    12091298            name: New Orleans
    12101299            manager: jane
     1300            referenceWaterLevelGaugeHeight: 5.1
    12111301            comment: Gauge for Mississippi in New Orleans
    12121302    GaugesGeoJson:
    … …  
    12211311              name: New Orleans
    12221312              manager: jane
     1313              referenceWaterLevelGaugeHeight: 5.1
    12231314              comment: Gauge for Mississippi in New Orleans
    12241315      summary: A sample list of gauges in GeoJson format
    … …  
    13491440              $ref: '#/components/examples/HttpError'
    13501441    NotFound:
    1351       description: Water with given Id not found
     1442      description: Item with given Id not found
     1443      content:
     1444        application/problem+json:
     1445          schema:
     1446            $ref: '#/components/schemas/HttpError'
     1447          examples:
     1448            HttpError:
     1449              $ref: '#/components/examples/HttpError'
     1450    InternalServerError:
     1451      description: Internal Server Error (HTTP Code 500)
    13521452      content:
    13531453        application/problem+json:
    … …  
    13681468  - name: logs
    13691469    description: 'All actions used to manage logs of an water, device, gauge or user'
     1470  - name: tiles
     1471    description: Tile serving
Note: See TracChangeset for help on using the changeset viewer.