Skip to content

Minimal API

The Minimal REST API has 4 operations, grouped here by area. Every page is generated from the route table itself, so what is documented is what is mounted.

Version0.0.0-fixture
Base URLhttps://{depotHost}
Operations4
Areas2
Not fully resolved1

The base URL takes a variable:

VariableDefaultWhat it is
depotHostdepot.example.comThe hostname of the Depot being called.
SchemeSent asWhat it is
consoleSessioncookie outpost_consoleThe console session cookie, set when a person signs in.
csrfTokenheader X-Csrf-TokenThe double submit token that goes with the console session.
provisionTokenAuthorization: Bearer ...A provisioning token, for automation rather than a person.

See Authentication for how each one is obtained.

AreaOperationsWhat it covers
Events2Public event streams and inbound hooks.
Widgets2Widgets, the example resource.

Every refusal has the same body, sent as application/problem+json. It is documented here once rather than on all 4 operations.

FieldTypeDescription
typestring (uri)A URI naming the problem.
titlestringA short summary of the problem.
statusintegerThe HTTP status code.
detailstringWhat went wrong on this request.
errorsobjectField errors, keyed by field name.

1 of the 4 operations carry a note about something the extractor could not read from the source, such as a response type built inside a helper. Each one says so on its own operation. Everything else came straight from the route table.

Content is licensed CC BY 4.0. Code samples are MIT. Outpost and the Outpost mark are trademarks of Outpost Business Solutions, PBC and are not covered by either licence.