Working with DerScanner API
DerScanner functionality is also available through the API. The API specification complies with the OpenAPI standard. The web interface is implemented using Swagger Codegen.
To access the API:
- Go to Account > Access Data > Token & Password.
- Click API Specification.
To make a request:
- Click on the desired request > Try it out.
- Specify the parameters.
- Click Execute.
The corresponding cURL request and server response will be displayed below.
Access to the specification in JSON format can be obtained via HTTP using a GET request to
curl -H 'Authorization: Bearer <token>'
<installation_address>/app/api/v1/openapi.json -o openapi.json</installation_address>
As a result, the openapi.json file will be saved in the current directory and can be used by tools that generate libraries for accessing the JSON API.
To generate a Java library for accessing the JSON API using OpenAPI Generator, you can use the following command:
java -jar openapi-generator-cli.jar generate -g java -i openapi.json
For more information about the OpenAPI standard and available code generation tools, refer to the official documentation: