/condition/{id}: parameters: - $ref: 'api.yaml#/components/parameters/Id' get: summary: condition by id description: 'Auth: all, levels: read, write, maintain, dev, admin' tags: - /condition responses: 200: description: condition details content: application/json: schema: $ref: 'api.yaml#/components/schemas/Condition' 400: $ref: 'api.yaml#/components/responses/400' 401: $ref: 'api.yaml#/components/responses/401' 404: $ref: 'api.yaml#/components/responses/404' 500: $ref: 'api.yaml#/components/responses/500' put: summary: TODO change condition description: 'Auth: basic, levels: write, maintain, dev, admin
Only maintain and admin are allowed to reference samples created by another user' tags: - /condition security: - BasicAuth: [] requestBody: required: true content: application/json: schema: $ref: 'api.yaml#/components/schemas/Condition' responses: 200: description: condition details content: application/json: schema: $ref: 'api.yaml#/components/schemas/Condition' 400: $ref: 'api.yaml#/components/responses/400' 401: $ref: 'api.yaml#/components/responses/401' 403: $ref: 'api.yaml#/components/responses/403' 404: $ref: 'api.yaml#/components/responses/404' 500: $ref: 'api.yaml#/components/responses/500' delete: summary: TODO delete condition description: 'Auth: basic, levels: write, maintain, dev, admin' tags: - /condition security: - BasicAuth: [] responses: 200: $ref: 'api.yaml#/components/responses/Ok' 400: $ref: 'api.yaml#/components/responses/400' 401: $ref: 'api.yaml#/components/responses/401' 403: $ref: 'api.yaml#/components/responses/403' 404: $ref: 'api.yaml#/components/responses/404' 500: $ref: 'api.yaml#/components/responses/500' /condition/new: post: summary: add condition description: 'Auth: basic, levels: write, maintain, dev, admin
Only maintain and admin are allowed to reference samples created by another user' tags: - /condition security: - BasicAuth: [] requestBody: required: true content: application/json: schema: $ref: 'api.yaml#/components/schemas/Condition' responses: 200: description: condition details content: application/json: schema: $ref: 'api.yaml#/components/schemas/Condition' 400: $ref: 'api.yaml#/components/responses/400' 401: $ref: 'api.yaml#/components/responses/401' 403: $ref: 'api.yaml#/components/responses/403' 500: $ref: 'api.yaml#/components/responses/500'