Ignore:
Timestamp:
May 1, 2019, 3:55:35 PM (8 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
debian/bullseye, master
Children:
1e7f556
Parents:
be25db1
Message:

Adding waters is working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mapservice/openapi.yaml

    rbe25db1 r041e464  
    168168          in: query
    169169          schema:
    170             $ref: '#/components/schemas/item_name'
     170            $ref: '#/components/schemas/itemName'
    171171          example: 'Missi'
    172172        - name: manager
    … …  
    202202            schema:
    203203              $ref: '#/components/schemas/WaterCreation'
    204             examples:
    205               Water:
    206                 $ref: '#/components/examples/WaterCreation'
     204            example:
     205              name: Rhein
     206              osmId: 1756854
     207              osmType: 'Relation'
    207208      responses:
    208209        '201':
    … …  
    232233          required: true
    233234          schema:
    234             $ref: '#/components/schemas/item_id'
     235            $ref: '#/components/schemas/itemId'
    235236      responses:
    236237        '200':
    … …  
    271272      title: Activation code for a User
    272273      type: string
    273     item_id:
     274    itemId:
    274275      title: Item ID
    275276      type: integer
    276277      format: int32
    277     item_name:
     278    itemName:
    278279      title: Item Name
    279280      type: string
    280281    osmType:
    281       maxLength: 1
    282       minLength: 1
    283       type: string
     282      title: OSM type of item (N|W|R)
     283      type: string
     284      enum:
     285        - Node
     286        - Way
     287        - Relation
    284288    User:
    285289      title: User
    … …  
    323327      properties:
    324328        waterId:
    325           $ref: '#/components/schemas/item_id'
     329          $ref: '#/components/schemas/itemId'
    326330        name:
    327           $ref: '#/components/schemas/item_name'
     331          $ref: '#/components/schemas/itemName'
    328332        manager:
    329333          $ref: '#/components/schemas/username'
    330334        osmId:
    331           $ref: '#/components/schemas/item_id'
     335          $ref: '#/components/schemas/itemId'
    332336        osmType:
    333           $ref: '#/components/schemas/osmType'
    334         osm_class:
    335337          $ref: '#/components/schemas/osmType'
    336338      required:
    … …  
    342344      properties:
    343345        name:
    344           $ref: '#/components/schemas/item_name'
     346          $ref: '#/components/schemas/itemName'
    345347        osmId:
    346           $ref: '#/components/schemas/item_id'
     348          $ref: '#/components/schemas/itemId'
    347349        osmType:
    348350          $ref: '#/components/schemas/osmType'
    … …  
    438440        osmId: 1756854
    439441        osmType: R
    440         link: 'http://gnuboat.engsas.com/mapservice/v1/waters/1'
    441442      summary: A water example object
    442443    WaterCreation:
    … …  
    444445        name: Mississippi
    445446        osmId: 1756854
    446         osmType: R
     447        osmType: 'Relation'
    447448      summary: A water example object for creation of a water
    448449    waters:
    449450      value:
    450451        - waterId: 1
    451           name: Mississippi
     452          name: 'Mississippi'
    452453          osmId: 1756854
    453           osmType: R
    454           link: 'http://gnuboat.engsas.com/mapservice/v1/waters/1'
     454          osmType: 'Relation'
    455455        - waterId: 2
    456           name: Bodensee
    457           link: 'http://gnuboat.engsas.com/mapservice/v1/waters/2'
     456          name: 'Bodensee'
    458457      summary: A sample list with waters
    459458    HttpError:
Note: See TracChangeset for help on using the changeset viewer.