Ignore:
Timestamp:
Apr 10, 2020, 5:40:18 PM (7 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
debian/bullseye, master
Children:
5c9c247
Parents:
ce59b61
Message:
  • Fixed testing environment
    • Fixed some issues in the API and it's serving
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mapservice/openapi.yaml

    rce59b61 rae2ff15  
    5959              $ref: '#/components/schemas/UserCreation'
    6060            examples:
    61               Water:
     61              UserCreation:
    6262                $ref: '#/components/examples/UserCreation'
    6363      responses:
    … …  
    6969                $ref: '#/components/schemas/User'
    7070              examples:
    71                 Water:
     71                User:
    7272                  $ref: '#/components/examples/User'
    7373        '400':
    … …  
    119119          schema:
    120120            $ref: '#/components/schemas/apiKey'
    121           example: DelApiKey4711
     121          example: test_key_delete
    122122      responses:
    123123        '200':
    … …  
    162162      tags:
    163163        - waters
    164       summary: Find waters by id
     164      summary: Find waters
    165165      operationId: watersGet
    166166      parameters:
    … …  
    169169          schema:
    170170            $ref: '#/components/schemas/itemName'
    171           example: Missi
     171          example: Test
    172172        - name: manager
    173173          in: query
    174174          schema:
    175175            $ref: '#/components/schemas/username'
    176           example: jane
     176          example: autotests
    177177        - name: stakeholder
    178178          in: query
    … …  
    180180          schema:
    181181            $ref: '#/components/schemas/username'
    182           example: jane
     182          example: autotests
    183183        - $ref: '#/components/parameters/orderBy'
    184184        - $ref: '#/components/parameters/offset'
    … …  
    210210            schema:
    211211              $ref: '#/components/schemas/WaterCreation'
    212             example:
    213               name: Rhein
    214               osmId: 1756854
    215               osmType: Relation
    216212      responses:
    217213        '201':
    … …  
    242238          schema:
    243239            $ref: '#/components/schemas/itemId'
     240          example: 1
    244241      responses:
    245242        '200':
    … …  
    268265          schema:
    269266            $ref: '#/components/schemas/itemId'
     267          example: 1
    270268        - name: name
    271269          in: query
    272270          schema:
    273271            $ref: '#/components/schemas/itemName'
    274           example: Missi
     272          example: Test
    275273        - name: manager
    276274          in: query
    277275          schema:
    278276            $ref: '#/components/schemas/username'
    279           example: jane
     277          example: autotests
    280278        - $ref: '#/components/parameters/orderBy'
    281279        - $ref: '#/components/parameters/offset'
    … …  
    310308          schema:
    311309            $ref: '#/components/schemas/itemId'
     310          example: 1
    312311      security:
    313312        - basicAuth: []
    … …  
    358357          schema:
    359358            $ref: '#/components/schemas/itemId'
     359          example: 1
    360360        - name: gauge_id
    361361          in: path
    … …  
    364364          schema:
    365365            $ref: '#/components/schemas/itemId'
     366          example: 1
    366367      responses:
    367368        '200':
    … …  
    399400          schema:
    400401            $ref: '#/components/schemas/itemName'
    401           example: Love
     402          example: Gnu
    402403        - $ref: '#/components/parameters/orderBy'
    403404        - $ref: '#/components/parameters/offset'
    … …  
    463464          schema:
    464465            $ref: '#/components/schemas/itemId'
     466          example: 1
    465467      responses:
    466468        '200':
    … …  
    513515      tags:
    514516        - logs
    515       summary: Find logs by id
     517      summary: Find logs by
    516518      operationId: logsGet
    517519      parameters:
    … …  
    520522          schema:
    521523            $ref: '#/components/schemas/username'
    522           example: jane
     524          example: autotests
    523525        - $ref: '#/components/parameters/orderBy'
    524526        - $ref: '#/components/parameters/offset'
    … …  
    580582          schema:
    581583            $ref: '#/components/schemas/itemId'
     584          example: 1
    582585      responses:
    583586        '200':
    … …  
    652655          schema:
    653656            $ref: '#/components/schemas/itemId'
     657          example: 1
    654658      responses:
    655659        '200':
    … …  
    687691              - 'high'
    688692              - 'low'
     693          example: 'high'
    689694        - name: resolution
    690695          in: path
    … …  
    700705              - 256
    701706              - 512
     707          example: 256
    702708        - name: zoom
    703709          in: path
    … …  
    706712          schema:
    707713            $ref: '#/components/schemas/tileZoomlevel'
     714          example: 15
    708715        - name: x_tile
    709716          in: path
    … …  
    712719          schema:
    713720            $ref: '#/components/schemas/itemId'
     721          example: 17298
    714722        - name: y_tile
    715723          in: path
    … …  
    718726          schema:
    719727            $ref: '#/components/schemas/itemId'
     728          example: 21435
    720729      responses:
    721730        '200':
    … …  
    876885        - password
    877886        - licenseAccepted
     887      example:
     888        username: 'john_doe'
     889        firstName: 'John'
     890        lastName: 'Doe'
     891        password: '1234'
     892        licenseAccepted: True
     893        email: 'john.doe@example.org'
    878894    Water:
    879895      title: Water
    … …  
    909925      required:
    910926        - name
     927      example:
     928        name: 'Water for auto generated tests'
     929        osmId: 1756854
     930        osmType: Relation
    911931    waters:
    912932      title: waters
    … …  
    953973          $ref: '#/components/schemas/ReferenceWaterLevelGaugeHeight'
    954974        water:
    955           $ref: '#/components/schemas/itemBase'
     975          $ref: '#/components/schemas/itemId'
    956976        comment:
    957977          $ref: '#/components/schemas/comment'
    … …  
    959979        - name
    960980        - location
     981      example:
     982        name: 'Gauge for auto generated tests'
     983        location:
     984          - 90.136111
     985          - 29.934722
     986        water: 1
     987        referenceWaterLevelGaugeHeight: 666
    961988    Gauges:
    962989      title: Gauges
    … …  
    10251052        - name
    10261053        - sensorDepth
     1054      example:
     1055        name: 'Device for auto generated tests'
     1056        sensorDepth: 0.2
     1057        comment: 'Device for auto generated tests'
    10271058    devices:
    10281059      title: Devices
    … …  
    11201151        - gauge
    11211152        - gaugeHeight
     1153      example:
     1154        water: 1
     1155        device: 1
     1156        gauge: 1
     1157        gaugeHeight: 66
     1158        comment: 'LogCreation for auto generated tests'
    11221159    logs:
    11231160      title: Logs
    … …  
    12291266        firstName: Jane
    12301267        lastName: Doe
    1231         activated: true
     1268        activated: True
    12321269        apiKeys:
    12331270          - ApiKey4701
    … …  
    12391276        lastName: Roe
    12401277        password: sdfl.1238_ASDkeil?
    1241         licenseAccepted: true
     1278        licenseAccepted: True
    12421279    Water:
    12431280      value:
    … …  
    13711408              - 29.934722
    13721409            waterDepth: 10
     1410    LogCreation:
     1411      value:
     1412        water: 1
     1413        device: 1
     1414        gauge: 1
     1415        gaugeHeight: 666
     1416        comment: 'This is an Example for LogCreation'
    13731417    LogGeoJson:
    13741418      value:
Note: See TracChangeset for help on using the changeset viewer.