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.
At a glance
Section titled “At a glance”| Version | 0.0.0-fixture |
| Base URL | https://{depotHost} |
| Operations | 4 |
| Areas | 2 |
| Not fully resolved | 1 |
The base URL takes a variable:
| Variable | Default | What it is |
|---|---|---|
depotHost | depot.example.com | The hostname of the Depot being called. |
Authentication
Section titled “Authentication”| Scheme | Sent as | What it is |
|---|---|---|
consoleSession | cookie outpost_console | The console session cookie, set when a person signs in. |
csrfToken | header X-Csrf-Token | The double submit token that goes with the console session. |
provisionToken | Authorization: Bearer ... | A provisioning token, for automation rather than a person. |
See Authentication for how each one is obtained.
| Area | Operations | What it covers |
|---|---|---|
| Events | 2 | Public event streams and inbound hooks. |
| Widgets | 2 | Widgets, the example resource. |
When a request is refused
Section titled “When a request is refused”Every refusal has the same body, sent as application/problem+json. It is documented here once rather than on all 4 operations.
| Field | Type | Description |
|---|---|---|
type | string (uri) | A URI naming the problem. |
title | string | A short summary of the problem. |
status | integer | The HTTP status code. |
detail | string | What went wrong on this request. |
errors | object | Field errors, keyed by field name. |
What this reference does not know
Section titled “What this reference does not know”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.