Ajout de la documentation Swagger pour le schéma de mesure
This commit is contained in:
27
routes/swagger.yml
Normal file
27
routes/swagger.yml
Normal 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.
|
||||
Reference in New Issue
Block a user