...
If you are calling Iguana’s APIs from outside of Iguana or from a different Iguana instance, you will need to use the net.http.*
and authenticate before making API requests. This involves three steps:
Expand | ||
---|---|---|
| ||
Call the '/session/login' API passing your Iguana login credentials to authenticate and get a session cookie from the response header. Note |
...
: the username and password login details must be serialized in JSON format. |
...
Expand | ||
---|---|---|
| ||
In this example we are calling the '/component/list' API to get a list of all components on the Iguana instance. To call the API, the retrieved session cookie is included in the header of |
...
Iguana API requests to authenticate. View the request’s response using the Annotations! |
Expand | ||
---|---|---|
| ||
Call the '/session/logout' API to passing the session cookie to logout when finished. |
Try this out in the Translator with the following code:
...