From 160c2be559621b175a6c4841e23ae5fcfcf215e1 Mon Sep 17 00:00:00 2001 From: Kerboul Date: Tue, 14 Jan 2025 15:44:42 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20de=20la=20documentation=20pour=20le=20c?= =?UTF-8?q?orps=20de=20la=20requ=C3=AAte=20lors=20de=20l'ajout=20d'un=20no?= =?UTF-8?q?uveau=20projet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/api.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/routes/api.js b/routes/api.js index 0e5ebdc..4b8ef41 100644 --- a/routes/api.js +++ b/routes/api.js @@ -171,6 +171,17 @@ router.get('/projects/:id/measurements', (req, res) => { * /projects: * post: * description: Use to add a new project + * requestBody: + * required: true + * content: + * application/json: + * schema: + * type: object + * properties: + * name: + * type: string + * description: + * type: string * responses: * 201: * description: Project added successfully