Changeset 2329 in ProjectBuilder


Ignore:
Timestamp:
Oct 17, 2017, 11:46:55 PM (7 years ago)
Author:
Bruno Cornec
Message:

Use parameters more in the path than in the body

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-server/api.yml

    r2328 r2329  
    4343    get:
    4444      summary: List all projects
    45       operationId: listPrj
     45      operationId: listPrjs
    4646      tags:
    4747        - prj
     
    8080          schema:
    8181            $ref: '#/definitions/Error'
    82   /conf:
     82  '/conf/{prj}':
    8383    get:
    8484      summary: List all configuration parameters for a specific project
     
    8787        - conf
    8888      parameters:
    89         - $ref: '#/parameters/prjName'
     89        - $ref: '#/parameters/prj'
    9090      responses:
    9191        '200':
     
    9898          schema:
    9999            $ref: '#/definitions/Error'
    100   '/conf/{confname}':
     100  '/conf/{prj}/{confname}':
    101101    get:
    102102      operationId: showConf
     
    105105        - conf
    106106      parameters:
     107        - $ref: '#/parameters/prj'
    107108        - name: confname
    108109          in: path
     
    110111          required: true
    111112          description: The name of the configuration item that will be queried
    112         - $ref: '#/parameters/prjName'
    113113      responses:
    114114        '200':
     
    121121            $ref: '#/definitions/Error'
    122122parameters:
    123   prjName:
     123  prj:
     124    name: pbproj
    124125    required: true
    125     name: pbproj
    126     in: body
     126    in: path
    127127    description: The name of the project that will be queried
    128     schema:
    129       type: string
    130       default: 'pb'
     128    type: string
    131129definitions:
    132130  Prj:
Note: See TracChangeset for help on using the changeset viewer.