docs: add success response structure to get project certificates swagger doc

This commit is contained in:
Rafi Athallah
2026-06-28 22:14:39 +07:00
parent ccf192a14d
commit cbeaa0f4cd
+18
View File
@@ -259,6 +259,24 @@ router.get('/detail/:id', verifyJWT, certificateController.getCertificateDetail)
* responses: * responses:
* 200: * 200:
* description: Project certificates retrieved successfully * 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: * 401:
* description: Unauthorized * description: Unauthorized
* 403: * 403: