HostTracker REST API
Authentication
All operations but user token retrieving require authentication information in http headers. Authentication performed by using Authorization Http header with specified bearer token. Token is created by POST request with login, password data to /api/web/v1/users/token. See details on user operations help page.
Example of token usage:
GET https://www.host-tracker.com/api/web/v1/task/7EE87894-B8A9-E311-BEB2-DC85DE1F0BC2 HTTP/1.1
User-Agent: Fiddler
Host: www.host-tracker.com
Content-Type: application/json
Authorization: bearer <your token here>
Content-Length: 0
CORS support
CORS is enabled for all origins (response contains header Access-Control-Allow-Origin: *).
This allows, for example, API access via JQuery AJAX requests.
Support http method overriding
If you could not use DELETE, PUT, PATCH requests for accessing API use X-HTTP-Method-Override header with POST request to resourse.
For example, for task updating you could send PUT request to /api/web/v1/tasks or send POST to /api/web/v1/tasks with
X-HTTP-Method-Override: PUT