Docs
Search…
antMan REST API
The antMan REST API may change at any time.
You can view the swagger-ui using the following url
1
http://myantsle.local/swagger-ui
Copied!
If you have renamed your Antsle, replace 'myantsle' in the URL with the name of your antsle - or the antsles private IP address. The URL (localhost:4444) in the following images is unique to our lab setup. AntMan is actually listening on port 3000.
First you need to authenticate and receive an access token
Open the 'auth' section
And open the /api/login section Click in the 'Example Value' box to populate the 'Bodyxxx' field. Edit the values of the json object with your antlse's username and password. Click 'Try it out!'
This will give you an example cURL command to authenticate and retrieve an access token. The 'Response Body' field contains your access token
In subsequent calls you would add an 'Authorization' header to the cURL command with your access token.
1
--header 'Authorization: Token eyJhbGciO...'
Copied!
1
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/octet-stream' --header 'Authorization: Token eyJhbGciO...'
Copied!
Last modified 1yr ago
Copy link