Functional
Breadcrumbs

Public API

All functionalities of Anjana are available not only through the tool's front end, but it also has a documented public API that allows user interaction and interconnection with other software components external to Anjana.

To access the documentation for this API, the user must connect to Swagger, where they can view the list of available services.

  • Access URL: <http|https>://<domain>/swagger/swagger-ui.html

And any request from this documentation that you want to use will be as follows:

  • <http|https>://<domain>/gateway/<url mentioned in documentation>

With the selector in the upper right corner you can switch between the available microservices:

https://lh7-rt.googleusercontent.com/docsz/AD_4nXcWrbX_ulTtTXGb9dCUzBJpmiQKL5dVQYO1xCXo_QeJrpOldG4R3Evjju997PowjLwsfxS6Hd-Ltd0hp_PhURSvzKdrLXcww0wVz2JAwRtcy5fEeDezUydq8QeBChpjmKZ3LgQ_HRij_DVx5VQudzMS7kE?key=eE4OxRa9KEXEmq0Gh5OpzA

And when selecting one of the modules, you will see all the available calls in it:

https://lh7-rt.googleusercontent.com/docsz/AD_4nXdV_-4IL4AXiBQ2V6WUD0Pb1MGPBxm_DsN1sWed9L3PbCxaZF3MGYfx-8VSUJI_IdlARgBCvu-5hatMLigY8JbKMml-EcS9kQUvWU0imQcPYScWvyg2nl6d9TCWs6BfJZSkC7oqtqMgnhdNH2Bbs9F78b9-?key=eE4OxRa9KEXEmq0Gh5OpzA

For each service, you can see an example of the input parameters and the possible outputs it returns.

https://lh7-rt.googleusercontent.com/docsz/AD_4nXfoUwidZdDlmAabas1xVZMSbEfCXcdY81W2-t0GpA84FFHdd8uhPe146UQC5NW9X1Hhqo6zxMu1HM7KaSlAA01y7HG6ddPZOny3J4YBZl40KTdpqvqKrpVZHk4ixlPiD3jAYsTqnpyGmi461gwfEduAzMwz?key=eE4OxRa9KEXEmq0Gh5OpzA

Since the calls are secured, you need to configure Swagger to add the authorization token in the header. To do this, use the Authorize button.

https://lh7-rt.googleusercontent.com/docsz/AD_4nXeEEWpWBOWzfbtmZNCkA8zPW1Jl8CnB451LYzNfWt2b1uelGQzgnwbH6dIgaBM6Rrbc1_p1iAsBfjNhe8dpDHKPV_75acbBqW4LgfRQIp7cqfoAIOKHUiEAF-AECWTzhDzluzwuD4Hx0NwAlwY8fyEydf07?key=eE4OxRa9KEXEmq0Gh5OpzA
https://lh7-rt.googleusercontent.com/docsz/AD_4nXe2JG4YWi1a_IlOqn8oAmcojTgvzRnB_qkEvY2Gp7QzetlWyt9G414XOcQCAm4tgth8KzHXgNAWaeAvEI5iNWN9NTYdMS0pDEGSL17njlKXjLwdRlC8L0hdAev_DX12tVtqCn7yoVqhkJZ4mbxWxRGomwBp?key=eE4OxRa9KEXEmq0Gh5OpzA

This way, the padlock on each call will change to closed and you will be able to start making requests.

https://lh7-rt.googleusercontent.com/docsz/AD_4nXebDDNPGf3eKsH5iGcIC9HApUqRhZ01XzWQNwADwA0YEom7n9YD3nlRQcw7sMIHTUTBoA9p8EpEEQx-uM4TTkOdu_7I58Hqouzyugo2BFHH5tlqgzgbCYJ82a4ntHKpzYbjHWe7tJydt_5GzOwef3Gjigbj?key=eE4OxRa9KEXEmq0Gh5OpzA