-
Notifications
You must be signed in to change notification settings - Fork 5
Added documentation on ESP32 devices support and the ESPProvision mec… #125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d94fd8e
Added documentation on ESP32 devices support and the ESPProvision mec…
ebariaux 769470e
Fixed some typos
ebariaux 1754a1c
Generated API docs should also be committed
ebariaux 84c0f65
Fix issues with OpenAPI spec
ebariaux f0d54f6
modelName is required attribute in DeviceProvisioning payload
ebariaux 730a19e
Standardize writting of Wi-Fi term
ebariaux ccdb2ca
Merge branch 'main' into enhancement/esp32
wborn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,88 @@ | ||
| openapi: "3.0.2" | ||
| info: | ||
| title: Provisioning REST API | ||
| description: Provisioning REST API | ||
| contact: | ||
| email: info@openremote.io | ||
| license: | ||
| name: AGPL 3.0 | ||
| url: https://www.gnu.org/licenses/agpl-3.0.en.html | ||
| version: "1.0" | ||
| servers: | ||
| - url: "https://demo.openremote.io/api/{realm}" | ||
| variables: | ||
| realm: | ||
| default: master | ||
| security: | ||
| - bearerAuth: [] | ||
| paths: | ||
| /device: | ||
| post: | ||
| operationId: provisionDevice | ||
| summary: Provisions a new device for the user | ||
| description: Provisions a new device, creating both an Asset to represent it and a Service Account for the device to connect over MQTT. The asset type is selected based on the provided modelName. If none matches, an error is reported. | ||
| requestBody: | ||
| $ref: "#/components/requestBodies/DeviceProvisioning" | ||
| responses: | ||
| '200': | ||
| $ref: "#/components/responses/DeviceProvisioningResponse" | ||
| '401': | ||
| $ref: '#/components/responses/UnauthorizedError' | ||
| '403': | ||
| $ref: '#/components/responses/ForbiddenError' | ||
| components: | ||
| securitySchemes: | ||
| bearerAuth: # arbitrary name for the security scheme | ||
| type: http | ||
| scheme: bearer | ||
| requestBodies: | ||
| DeviceProvisioning: | ||
| content: | ||
| application/json: | ||
| schema: | ||
| type: object | ||
| required: | ||
| - deviceId | ||
| - password | ||
| - modelName | ||
| properties: | ||
| deviceId: | ||
| type: string | ||
| description: ID of device | ||
| example: "123456789ABC" | ||
| password: | ||
| type: string | ||
| description: Password for service account | ||
| example: "s3cr3t" | ||
| modelName: | ||
| type: string | ||
| description: Model of device to provision | ||
| example: "orbattery" | ||
| responses: | ||
| UnauthorizedError: | ||
| description: Access token is missing or invalid | ||
| ForbiddenError: | ||
| description: Principal is not allowed to perform this operation | ||
| DeviceProvisioningResponse: | ||
| description: Information about a successfully provisioned device | ||
| content: | ||
| application/json: | ||
| schema: | ||
| type: object | ||
| required: | ||
| - assetId | ||
| - assetCreated | ||
| - serviceUserCreated | ||
| properties: | ||
| assetId: | ||
| type: string | ||
| description: OpenRemote Asset ID | ||
| example: "6tXbmMvQLd2e7UrY5xLviR" | ||
| assetCreated: | ||
| type: boolean | ||
| description: Indicates if the battery asset was created by this call (true) or already existed (false) | ||
| example: true | ||
| serviceUserCreated: | ||
| type: boolean | ||
| description: Indicates if the service user was created by this call (true) or already existed (false) | ||
| example: true | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.