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.


Last modified November 4, 2018: Add main content from migration. (f1c35a7)