Below you can find an overview of the complete API of Coral. The following set of “top-level entities” are present in Coral:
In the Coral platform, there are three ways to refer to runtimes:
/api/runtimes/runtime1
becomes /api/runtimes/neo-runtime1
if the current unique user name is “neo”. In the case of accept-all authentication, an implicit user with unique name “coral” is assumed.Example:
Example:
This method is required if referring to a runtime of which the current user is not the owner. In the case of accept-all authentication, “coral” is used as the user name, but it is not necessary to explicitly state this.
Example:
Permissions are always referred to by their UUID. Users can be referred to by their UUID or their unique user name. Actors are always referred to by their unique name in a runtime.
For each API call, the following information is provided:
Click on the link to go to the details of a specific call.
Show platform statistics, change platform settings and add and remove nodes from the cluster.
URL | action |
---|---|
POST /api/platform/cluster | Join or remove a node from the cluster |
GET /api/platform/cluster | Returns all machines in the Coral platform |
GET /api/platform/cluster/<id> |
Get information on machine <id> |
GET /api/platform/stats | Show statistics for the entire platform |
GET /api/platform/settings | Returns all settings of the platform |
Create, start and stop runtimes and get information and statistics of runtimes.
URL | action |
---|---|
POST /api/runtimes | Create a new runtime |
GET /api/runtimes/<id> |
Gets the definition of runtime <id> |
GET /api/runtimes/<id> /actors |
Gets all actors for runtime <id> |
GET /api/runtimes/<id> /links |
Gets all links for runtime <id> |
GET /api/runtimes/<id> /stats |
Gets statistics about runtime <id> |
PATCH /api/runtimes/<id> |
Starts or stops runtime <id> |
DELETE /api/runtimes/<id> |
Deletes runtime <id> |
DELETE /api/runtimes | Delete all runtimes |
Interact with individual actors in a runtime and get actor statistics.
URL | action |
---|---|
POST /api/runtimes/<rid> /actors/<aid> |
Post JSON to actor <aid> in runtime <rid> |
POST /api/runtimes/<rid> /actors/<aid> /shunt |
Post JSON to <aid> in <rid> and return |
GET /api/runtimes/<id> /actors |
Gets information of all actors in runtime <id> |
GET /api/runtimes/<rid> /actors/<aid> /stats |
Get stats about actor <aid> in runtime <rid> |
Add and remove users from the platform.
URL | action |
---|---|
POST /api/users | Post a new user with permissions |
GET /api/users/<id> |
Returns information for user <id> |
GET /api/users | Returns all users on the platform |
DELETE /api/users/<id> |
Deletes user <id> |
Add, remove and change permissions for users on the platform.
URL | action |
---|---|
POST /api/runtimes/<id> /permissions |
Add a new permission to runtime <id> |
GET /api/runtimes/<id> /permissions |
Gets all permissions for runtime <id> |
PATCH /api/runtimes/<id> /permissions |
Set permission granted/denied in runtime <id> |
DELETE /api/runtimes/<id> /permissions |
Delete a permission from runtime <id> |
Create, delete or change projects.
URL | action |
---|---|
POST /api/projects | Create a new project |
GET /api/projects | Get all projects on the platform |
PATCH /api/projects/<id> |
Update a project definition of project <id> |
DELETE /api/projects/<id> |
Delete project <id> |