Merge pull request #24 from internship-humic/feat/certificate-api

docs: add success response structure to get project certificates swagger
This commit is contained in:
Rafi Athallah
2026-06-28 22:23:57 +07:00
committed by GitHub
+18
View File
@@ -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: