Graph API

GET /api/graph.:ext

Generate graph of aptly objects (same as in aptly graph command).

:ext specifies desired file extension, e.g. .png, .svg.

Query params:

Name Description
layout Change between a horizontal (default) and a vertical graph layout.

Example:

  • open url http://localhost:8080/api/graph.svg?layout=vertical in browser (hint: aptly database should be non-empty)

Version API

GET /api/version

Return current aptly version.

Example:

$ curl http://localhost:8080/api/version
{"Version":"0.9~dev"}