Ajout de la documentation Swagger pour le schéma de mesure

This commit is contained in:
2025-02-11 18:23:25 +01:00
parent 83b7f14778
commit 08fa489f4c

27
routes/swagger.yml Normal file
View File

@@ -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.