Using the Anchore API
Introduction
The Anchore API has been documented using the OpenAPI Specification (Swagger) and the source can be found in the swagger.yaml document withiin the external API service.
You can also browse the Anchore API in SwaggerHub
The JSON definition for the API can be downloaded from a running Anchore Engine service at the following URI:
http://{servername:port}/v1/swagger.json
e.g.
http://localhost:8228/v1/swagger.json
The Engine includes the Swagger UI allowing for the API to be viewed and tested within a web browser. The UI can be accessed at the following URI:
http://{servername:port}/v1/ui/
e.g. http://localhost:8228/v1/ui/
Note: be sure to include the trailing slash for the /v1/ui/ route, otherwise you will get a badly formatted response in your browser.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.