Ignore:
Timestamp:
Apr 22, 2019, 5:39:46 PM (8 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
debian/bullseye, master
Children:
041e464
Parents:
5e4cb73
Message:

Improved adding Water UI in mapservice-webclient

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mapservice/src-gen/openapi_server/openapi/openapi.yaml

    r5e4cb73 rbe25db1  
    2525- description: A water is a river (like Mississippi, lake (Lake Ontario), or a sea (North Sea)
    2626  name: waters
     27- description: All actions used to manage users and api keys
     28  name: users
    2729paths:
     30  /user:
     31    get:
     32      description: Returns information for a user
     33      operationId: users_get
     34      responses:
     35        200:
     36          content:
     37            application/json:
     38              examples:
     39                User:
     40                  $ref: '#/components/examples/User'
     41              schema:
     42                $ref: '#/components/schemas/User'
     43          description: OK
     44        400:
     45          content:
     46            application/json:
     47              examples:
     48                HttpError:
     49                  $ref: '#/components/examples/HttpError'
     50              schema:
     51                $ref: '#/components/schemas/HttpError'
     52          description: Bad Request (400)
     53        401:
     54          content:
     55            application/json:
     56              examples:
     57                HttpError:
     58                  $ref: '#/components/examples/HttpError'
     59              schema:
     60                $ref: '#/components/schemas/HttpError'
     61          description: Unauthorized (401) acces to resource
     62      security:
     63      - basicAuth: []
     64      - apiKeyAuth: []
     65      summary: Returns info of a user
     66      tags:
     67      - users
     68      x-openapi-router-controller: openapi_server.controllers.users_controller
     69    options:
     70      description: Used by CORS preflight
     71      operationId: user_options
     72      responses:
     73        200:
     74          content:
     75            application/json: {}
     76          description: CORS prefilght requests should return 200 as status code
     77      tags:
     78      - users
     79      x-openapi-router-controller: openapi_server.controllers.users_controller
     80    post:
     81      description: Registers a new user
     82      operationId: users_register
     83      requestBody:
     84        content:
     85          application/json:
     86            examples:
     87              Water:
     88                $ref: '#/components/examples/UserCreation'
     89            schema:
     90              $ref: '#/components/schemas/UserCreation'
     91      responses:
     92        201:
     93          content:
     94            application/json:
     95              examples:
     96                Water:
     97                  $ref: '#/components/examples/User'
     98              schema:
     99                $ref: '#/components/schemas/User'
     100          description: Userr created
     101        400:
     102          content:
     103            application/json:
     104              examples:
     105                HttpError:
     106                  $ref: '#/components/examples/HttpError'
     107              schema:
     108                $ref: '#/components/schemas/HttpError'
     109          description: Bad Request (400)
     110      summary: Registers a new user
     111      tags:
     112      - users
     113      x-openapi-router-controller: openapi_server.controllers.users_controller
     114  /user/apikey_create:
     115    get:
     116      description: Generates and returns a new API key for current user
     117      operationId: users_api_key_create
     118      responses:
     119        200:
     120          content:
     121            application/json:
     122              example: NewApiKey4711
     123              schema:
     124                $ref: '#/components/schemas/apiKeys'
     125          description: OK
     126        400:
     127          content:
     128            application/json:
     129              examples:
     130                HttpError:
     131                  $ref: '#/components/examples/HttpError'
     132              schema:
     133                $ref: '#/components/schemas/HttpError'
     134          description: Bad Request (400)
     135        401:
     136          content:
     137            application/json:
     138              examples:
     139                HttpError:
     140                  $ref: '#/components/examples/HttpError'
     141              schema:
     142                $ref: '#/components/schemas/HttpError'
     143          description: Unauthorized (401) acces to resource
     144      security:
     145      - basicAuth: []
     146      - apiKeyAuth: []
     147      summary: Returns a new API key
     148      tags:
     149      - users
     150      x-openapi-router-controller: openapi_server.controllers.users_controller
     151  /user/{api_key}:
     152    delete:
     153      description: Deletes given API key and returns remaining API keys of the user
     154      operationId: users_api_key_delete
     155      parameters:
     156      - description: API key
     157        example: DelApiKey4711
     158        explode: false
     159        in: path
     160        name: api_key
     161        required: true
     162        schema:
     163          $ref: '#/components/schemas/apiKey'
     164        style: simple
     165      responses:
     166        200:
     167          content:
     168            application/json:
     169              example: ApiKey4711
     170              schema:
     171                $ref: '#/components/schemas/apiKeys'
     172          description: OK
     173        400:
     174          content:
     175            application/json:
     176              examples:
     177                HttpError:
     178                  $ref: '#/components/examples/HttpError'
     179              schema:
     180                $ref: '#/components/schemas/HttpError'
     181          description: Bad Request (400)
     182        401:
     183          content:
     184            application/json:
     185              examples:
     186                HttpError:
     187                  $ref: '#/components/examples/HttpError'
     188              schema:
     189                $ref: '#/components/schemas/HttpError'
     190          description: Unauthorized (401) acces to resource
     191      security:
     192      - basicAuth: []
     193      - apiKeyAuth: []
     194      summary: Deletes API key
     195      tags:
     196      - users
     197      x-openapi-router-controller: openapi_server.controllers.users_controller
     198  /user/activate/{activation_code}:
     199    get:
     200      description: Activates a user account
     201      operationId: users_activate
     202      parameters:
     203      - description: Activation code
     204        example: dac9630aec642a428cd73f4be0a03569
     205        explode: false
     206        in: path
     207        name: activation_code
     208        required: true
     209        schema:
     210          $ref: '#/components/schemas/activationCode'
     211        style: simple
     212      responses:
     213        302:
     214          description: OK or not OK
     215          headers:
     216            Location:
     217              description: URL to the website, showing the result of the activation
     218              explode: false
     219              schema:
     220                type: string
     221              style: simple
     222      summary: Activates a user account
     223      tags:
     224      - users
     225      x-openapi-router-controller: openapi_server.controllers.users_controller
    28226  /waters:
    29227    get:
    … …  
    31229      operationId: waters_get
    32230      parameters:
    33       - explode: false
    34         in: header
     231      - example: Missi
     232        explode: true
     233        in: query
    35234        name: name
    36235        required: false
    37236        schema:
    38237          $ref: '#/components/schemas/item_name'
    39         style: simple
    40       - explode: false
    41         in: header
     238        style: form
     239      - example: jane
     240        explode: true
     241        in: query
    42242        name: manager
    43243        required: false
    44244        schema:
    45245          $ref: '#/components/schemas/username'
    46         style: simple
     246        style: form
    47247      - description: 'Order by field: name'
    48248        explode: true
    … …  
    52252        schema:
    53253          default: name
     254          example: name
    54255          type: string
    55256        style: form
    … …  
    92293    post:
    93294      description: Adds a new water to the database
    94       operationId: waters_post
     295      operationId: waters_create
    95296      requestBody:
    96297        content:
    … …  
    101302            schema:
    102303              $ref: '#/components/schemas/WaterCreation'
    103         description: item id of water is going to be ignored
    104304      responses:
    105305        201:
    … …  
    175375components:
    176376  examples:
     377    User:
     378      value:
     379        username: jane
     380        email: jane@example.org
     381        firstName: Jane
     382        lastName: Doe
     383        activated: true
     384        apiKeys:
     385        - ApiKey4701
     386    UserCreation:
     387      value:
     388        username: richard
     389        email: richard@examle.org
     390        firstName: Richard
     391        lastName: Roe
     392        password: sdfl.1238_ASDkeil?
    177393    Water:
    178394      summary: A water example object
    179395      value:
    180         water_id: 1
     396        waterId: 1
    181397        name: Mississippi
    182         osm_id: 1756854
    183         osm_type: R
     398        osmId: 1756854
     399        osmType: R
    184400        link: http://gnuboat.engsas.com/mapservice/v1/waters/1
    185401    WaterCreation:
    … …  
    187403      value:
    188404        name: Mississippi
    189         osm_id: 1756854
    190         osm_type: R
     405        osmId: 1756854
     406        osmType: R
    191407    waters:
    192408      summary: A sample list with waters
    193409      value:
    194       - water_id: 1
     410      - waterId: 1
    195411        name: Mississippi
    196         osm_id: 1756854
    197         osm_type: R
     412        osmId: 1756854
     413        osmType: R
    198414        link: http://gnuboat.engsas.com/mapservice/v1/waters/1
    199       - water_id: 2
     415      - waterId: 2
    200416        name: Bodensee
    201417        link: http://gnuboat.engsas.com/mapservice/v1/waters/2
    … …  
    213429      schema:
    214430        default: name
     431        example: name
    215432        type: string
    216433      style: form
    … …  
    280497      title: Username
    281498      type: string
     499    apiKey:
     500      title: API Key
     501      type: string
     502    apiKeys:
     503      items:
     504        $ref: '#/components/schemas/apiKey'
     505      title: Array of API keys
     506      type: array
     507    activationCode:
     508      title: Activation code for a User
     509      type: string
    282510    item_id:
    283511      format: int32
    … …  
    287515      title: Item Name
    288516      type: string
    289     osm_type:
     517    osmType:
    290518      maxLength: 1
    291519      minLength: 1
    292520      type: string
     521    User:
     522      example:
     523        firstName: firstName
     524        lastName: lastName
     525        apiKeys:
     526        - null
     527        - null
     528        email: email
     529        username: username
     530        activated: true
     531      properties:
     532        username:
     533          title: Username
     534          type: string
     535        email:
     536          type: string
     537        firstName:
     538          type: string
     539        lastName:
     540          type: string
     541        activated:
     542          type: boolean
     543        apiKeys:
     544          items:
     545            $ref: '#/components/schemas/apiKey'
     546          title: Array of API keys
     547          type: array
     548      title: User
     549      type: object
     550    UserCreation:
     551      example:
     552        firstName: firstName
     553        lastName: lastName
     554        password: password
     555        email: email
     556        username: username
     557      properties:
     558        username:
     559          title: Username
     560          type: string
     561        email:
     562          type: string
     563        firstName:
     564          type: string
     565        lastName:
     566          type: string
     567        password:
     568          type: string
     569      required:
     570      - email
     571      - firstName
     572      - lastName
     573      - password
     574      - username
     575      title: User
     576      type: object
    293577    Water:
    294578      example:
    295         osm_id: 6
    296         osm_type: osm_type
    297579        manager: manager
     580        osmId: 6
    298581        name: name
    299         water_id: 0
     582        osmType: osmType
    300583        osm_class: osm_class
     584        waterId: 0
    301585      properties:
    302         water_id:
     586        waterId:
    303587          format: int32
    304588          title: Item ID
    … …  
    310594          title: Username
    311595          type: string
    312         osm_id:
     596        osmId:
    313597          format: int32
    314598          title: Item ID
    315599          type: integer
    316         osm_type:
     600        osmType:
    317601          maxLength: 1
    318602          minLength: 1
    … …  
    324608      required:
    325609      - name
    326       - water_id
     610      - waterId
    327611      title: Water
    328612      type: object
    329613    WaterCreation:
    330614      example:
    331         osm_id: 0
    332         osm_type: osm_type
     615        osmId: 0
    333616        name: name
     617        osmType: osmType
    334618      properties:
    335619        name:
    336620          title: Item Name
    337621          type: string
    338         osm_id:
     622        osmId:
    339623          format: int32
    340624          title: Item ID
    341625          type: integer
    342         osm_type:
     626        osmType:
    343627          maxLength: 1
    344628          minLength: 1
Note: See TracChangeset for help on using the changeset viewer.