}
}
},
- "/test/settings": {
+ "/test/notification": {
"post": {
- "summary": "Setup settings.",
- "description": "Sets behavoir resp. response settings for test area requests. <p><b>Note</b>: the settings are activated on the next request you send within the test area. The status is not changing until the setting are changing again. An set event only occures once.</p>",
- "operationId": "test_set_settings",
+ "summary": "Setup web push notification.",
+ "description": "To be able to send web push notifications the server has to have subscription data from the client.",
+ "operationId": "test_notification",
"tags": [
"test"
],
}
],
"requestBody": {
- "description": "Request body for setup settings.",
+ "description": "Request body for setup push notification.",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/settings"
+ "$ref": "#/components/schemas/notification"
}
}
}
"description": "Ok, settings accepted"
},
"400": {
- "description": "Bad request, check settings"
+ "description": "Bad request, check request body"
},
"401": {
"$ref": "#/components/responses/error_authentication"
}
}
- },
- "get": {
- "summary": "Get current settings.",
- "description": "Gets behavoir resp. response settings for test area requests.",
- "operationId": "test_get_settings",
+ }
+ },
+ "/test/settings": {
+ "post": {
+ "summary": "Setup settings.",
+ "description": "Sets behavoir resp. response settings for test area requests. <p><b>Note</b>: the settings are activated on the next request you send within the test area. The status is not changing until the setting are changing again. An set event only occures once.</p>",
+ "operationId": "test_set_settings",
"tags": [
"test"
],
"api_key_auth_test": []
}
],
+ "requestBody": {
+ "description": "Request body for setup settings.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/settings"
+ }
+ }
+ }
+ },
"responses": {
"200": {
- "$ref": "#/components/responses/settings_result"
+ "description": "Ok, settings accepted"
+ },
+ "400": {
+ "description": "Bad request, check settings"
},
"401": {
"$ref": "#/components/responses/error_authentication"
$ref: '#/components/responses/error_param'
'401':
$ref: '#/components/responses/error_authentication'
+ /test/notification:
+ post:
+ summary: Setup web push notification.
+ description: >-
+ To be able to send web push notifications the server has to have
+ subscription data from the client.
+ operationId: test_notification
+ tags:
+ - test
+ security:
+ - api_key_auth_test: []
+ requestBody:
+ description: Request body for setup push notification.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/notification'
+ responses:
+ '200':
+ description: 'Ok, settings accepted'
+ '400':
+ description: 'Bad request, check request body'
+ '401':
+ $ref: '#/components/responses/error_authentication'
/test/settings:
post:
summary: Setup settings.
description: 'Bad request, check settings'
'401':
$ref: '#/components/responses/error_authentication'
- get:
- summary: Get current settings.
- description: Gets behavoir resp. response settings for test area requests.
- operationId: test_get_settings
- tags:
- - test
- security:
- - api_key_auth_test: []
- responses:
- '200':
- $ref: '#/components/responses/settings_result'
- '401':
- $ref: '#/components/responses/error_authentication'
components:
schemas:
image: