-
Notifications
You must be signed in to change notification settings - Fork 1
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 #34 from unfoldedcircle/migrate/api-doc
Migrate Core-API specification from core-simulator
- Loading branch information
Showing
12 changed files
with
38,907 additions
and
31 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Remote Two Core-APIs | ||
|
||
The Remote Two WebSockets & REST Core-APIs allow you to interact with the Unfolded Circle remote-core application and | ||
take full control of its features. The APIs are specialized for certain tasks, but otherwise contain the same | ||
functionality. | ||
|
||
- The REST API adds: | ||
- Custom resource handling for uploading icons, images etc. | ||
- User management and authentication handling. | ||
- The WebSockets API adds: | ||
- Event subscription with asynchronous notifications. | ||
|
||
The API specifications are defined with [OpenAPI](https://swagger.io/specification/) & [AsyncAPI](https://www.asyncapi.com/) | ||
in YAML format. | ||
|
||
- [REST Core-API](rest) | ||
- [WebSocket Core-API](websocket) |
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,29 @@ | ||
# Remote Two REST Core-API | ||
|
||
The Core-API is defined with [OpenAPI](https://www.openapis.org/). | ||
|
||
You can use the online [Swagger Editor](https://editor.swagger.io/) to load and browse the specification or use your | ||
favorite IDE with OpenAPI support (e.g. IntelliJ or Visual Studio Code). | ||
|
||
- [OpenAPI YAML definition](UCR2-openapi.yaml). | ||
- ℹ️ This is a bundled YAML file generated from individual definitions. | ||
- Most OpenAPI tools only work with a single file. | ||
- We might publish the original definitions at a later time. | ||
- See [/doc folder](../../doc/README.md) for further API documentation and information. | ||
|
||
## Postman Collection | ||
|
||
For explorative API testing the `remote-core_rest-api.postman_collection.json` collection can be imported into | ||
[Postman](https://www.postman.com/). It contains pre-defined requests and some helper scripts to propagate generated | ||
identifier keys to simplify common tasks. | ||
|
||
Postman also supports [importing OpenAPI definitions](https://learning.postman.com/docs/integrations/available-integrations/working-with-openAPI/). | ||
|
||
### Configuration | ||
|
||
The admin user account password needs to be configured in the Postman collection: | ||
|
||
1. Open the `Remote Two Core-API` collection | ||
2. Select the `Variables` tab. | ||
3. Set the `apiPassword` and `apiKeyId` in the **CURRENT VALUE** column. | ||
This will keep the passwords local and won't save them in the collection or Postman cloud. |
Oops, something went wrong.