Getting started with REST API
This section covers specifics of the Direct Take REST API
Last updated
This section covers specifics of the Direct Take REST API
Last updated
To enable REST API based control of Direct Take, you should run it with the administrator privileges, and go to Preferences:
Once the prefix is set, Direct Take is available for remote control.
The type of request content is JSON: application/json
When you create or update resources, you don't need to put all the fields in JSON. All the unspecified fields keep the existing values for PUT
, or set with the default values for POST
.
All valid responses have the code 200 (OK)
. If something is wrong, the API returns the code 400 (Bad Request)
.
You should use the REST API Token with all the requests as the "Authorization" header. The token is provided with a license for Direct Take. You can copy the token from the Preferences menu.
Example: "Bearer perm:2cc39f38-d120-46fa-9d90-359375b4eb26"
Direct Take's REST API is available by the following URL:
/api/
is the context path for the REST API of the service.
GET
http://localhost:9000/api/sources/{index}
Returns you a configuration of a source with the specified index. If the index is not set, returns you all the sources in a single response.
{index}
number
Specifies an index of a source to get.
Authorization
string
API Token