forked from eclipse/kapua
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request eclipse#3833 from Coduz/feat-deviceConfigurationSt…
…oreOpenAPIMappings feat(openapi): Added OpenAPI mappings for deviceConfigurationStoreService DeviceApplicationSettings
- Loading branch information
Showing
4 changed files
with
91 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
...resources/openapi/deviceConfiguration/deviceConfiguration-scopeId-deviceId-_settings.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
openapi: 3.0.2 | ||
|
||
info: | ||
title: Eclipse Kapua REST API - Configurations | ||
version: '1.0' | ||
contact: | ||
name: Eclipse Kapua Dev Team | ||
url: https://eclipse.org/kapua | ||
email: [email protected] | ||
license: | ||
name: Eclipse Public License 2.0 | ||
url: https://www.eclipse.org/legal/epl-2.0 | ||
|
||
paths: | ||
/{scopeId}/devices/{deviceId}/configurations/_settings: | ||
get: | ||
tags: | ||
- Device Management - Configuration | ||
summary: Gets the settings of the Device Configurations Store settings of this Device | ||
operationId: getDeviceConfigurationsStoreSettings | ||
parameters: | ||
- $ref: '../openapi.yaml#/components/parameters/scopeId' | ||
- $ref: '../device/device.yaml#/components/parameters/deviceId' | ||
responses: | ||
200: | ||
description: The Device Management Settings retrieved | ||
content: | ||
application/json: | ||
schema: | ||
$ref: './deviceConfiguration.yaml#/components/schemas/deviceConfigurationStoreSettings' | ||
401: | ||
$ref: '../openapi.yaml#/components/responses/unauthenticated' | ||
403: | ||
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized' | ||
404: | ||
$ref: '../openapi.yaml#/components/responses/entityNotFound' | ||
500: | ||
$ref: '../openapi.yaml#/components/responses/kapuaError' | ||
put: | ||
tags: | ||
- Device Management - Configuration | ||
summary: Applies the given settings to the Device Configurations Store settings of this Device | ||
operationId: putDeviceConfigurationsStoreSettings | ||
parameters: | ||
- $ref: '../openapi.yaml#/components/parameters/scopeId' | ||
- $ref: '../device/device.yaml#/components/parameters/deviceId' | ||
requestBody: | ||
description: The Device Configurations Store Settings for this Device | ||
content: | ||
application/json: | ||
schema: | ||
$ref: './deviceConfiguration.yaml#/components/schemas/deviceConfigurationStoreSettings' | ||
required: true | ||
responses: | ||
204: | ||
description: The Device Management Settings have been applied | ||
401: | ||
$ref: '../openapi.yaml#/components/responses/unauthenticated' | ||
403: | ||
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized' | ||
404: | ||
$ref: '../openapi.yaml#/components/responses/entityNotFound' | ||
500: | ||
$ref: '../openapi.yaml#/components/responses/kapuaError' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters