From cbeaa0f4cd808dfc804ccf498b2b5222f12b2fa3 Mon Sep 17 00:00:00 2001 From: Rafi Athallah <65345768+rafiathallah3@users.noreply.github.com> Date: Sun, 28 Jun 2026 22:14:39 +0700 Subject: [PATCH] docs: add success response structure to get project certificates swagger doc --- src/routes/certificate.routes.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/routes/certificate.routes.js b/src/routes/certificate.routes.js index e86787e..16ff5ae 100644 --- a/src/routes/certificate.routes.js +++ b/src/routes/certificate.routes.js @@ -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: