diff --git a/docs/api.yml b/docs/api.yml index 8f8ef4502656a78adc0c2c8c1e04a5b1a8dbca0a..15517cf1c92e4707ac865ff4b6990f508ff42fa2 100644 --- a/docs/api.yml +++ b/docs/api.yml @@ -139,13 +139,8 @@ paths: post: summary: Adds a new measurement. Non-existent device or sensor will be created automatically. operationId: addMeasurement - parameters: - - in: header - name: apiKey - description: The api key - required: true - schema: - type: string + security: + - bearerAuth: [] requestBody: description: Measurement to add required: true @@ -186,6 +181,12 @@ paths: $ref: '#/components/schemas/Measurement' components: + securitySchemes: + bearerAuth: + type: apiKey + name: apiKey + in: header + schemas: Version: type: object