Skip to content
Snippets Groups Projects
Commit c4ef5c60 authored by Tobias Ullerich's avatar Tobias Ullerich
Browse files

Improve authentication in api documentation

parent dac51361
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment