UNPKG

@dntlab/swagger-dean

Version:

swagger api for DeArchNet project

56 lines (54 loc) 1.54 kB
post: summary: Add review to the project parameters: - in: path name: projectId required: true schema: type: string description: Project ID operationId: rest.project.reviews.post security: - jwt: [] requestBody: required: true content: application/json: schema: $ref: '../components/components.yaml#/components/schemas/review_request' responses: 201: description: Successfully added new review to the project content: application/json: schema: $ref: '../components/components.yaml#/components/schemas/review_response' 400: description: Bad Request. 404: $ref: '../components/components.yaml#/components/responses/404NotFound' default: $ref: '../components/components.yaml#/components/responses/UnexpectedError' get: summary: Fetch all reviews of the project parameters: - in: path name: projectId required: true schema: type: string description: Project ID operationId: rest.project.reviews.get security: - jwt: [] responses: 200: description: Successfully fetched all reviews of the project content: application/json: schema: $ref: '../components/components.yaml#/components/schemas/list_of_reviews' 404: $ref: '../components/components.yaml#/components/responses/404NotFound' default: $ref: '../components/components.yaml#/components/responses/UnexpectedError'