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.