docs: add success response structure to get project certificates swagger doc
This commit is contained in:
@@ -259,6 +259,24 @@ router.get('/detail/:id', verifyJWT, certificateController.getCertificateDetail)
|
||||
* responses:
|
||||
* 200:
|
||||
* description: Project certificates retrieved successfully
|
||||
* content:
|
||||
* application/json:
|
||||
* schema:
|
||||
* type: object
|
||||
* properties:
|
||||
* status:
|
||||
* type: boolean
|
||||
* example: true
|
||||
* data:
|
||||
* type: array
|
||||
* items:
|
||||
* $ref: '#/components/schemas/Certificate'
|
||||
* message:
|
||||
* type: string
|
||||
* example: "Project certificates retrieved successfully"
|
||||
* code:
|
||||
* type: integer
|
||||
* example: 200
|
||||
* 401:
|
||||
* description: Unauthorized
|
||||
* 403:
|
||||
|
||||
Reference in New Issue
Block a user