From 08fa489f4cfaca3334e1dc6b05a2229b1914260e Mon Sep 17 00:00:00 2001 From: Kerboul Date: Tue, 11 Feb 2025 18:23:25 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20de=20la=20documentation=20Swagger=20pou?= =?UTF-8?q?r=20le=20sch=C3=A9ma=20de=20mesure?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/swagger.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 routes/swagger.yml diff --git a/routes/swagger.yml b/routes/swagger.yml new file mode 100644 index 0000000..b9de586 --- /dev/null +++ b/routes/swagger.yml @@ -0,0 +1,27 @@ +components: + schemas: + Measurement: + type: object + properties: + id: + type: integer + description: The unique identifier for a measurement. + project_id: + type: integer + description: The ID of the project associated with the measurement. + timestamp: + type: string + format: date-time + description: The timestamp of the measurement. + image_path: + type: string + description: The path to the image associated with the measurement. + temperature: + type: number + description: The temperature recorded in the measurement. + humidity: + type: number + description: The humidity recorded in the measurement. + completed: + type: boolean + description: Indicates whether the measurement is completed.