Skip to content
Vellum

Example API

An example, to show what Vellum makes of an OpenAPI spec. Harbor manages ships and berths for a harbor that does not exist.

The API behind it is real enough to answer: open an operation and press Try it. It keeps nothing, so a ship you register is gone by the next request, and removing one removes nothing.

Its webhook and callback are described the way an API would describe them, but never sent: nothing here can be told where to send them.

These pages are generated from one YAML file. See API reference for how to turn them on for your own.

Version 2.4.0

Servers

/harbor/v2

This site

Authentication

harborAuth oauth2

Get a token the way a real API hands one out. The client ID is harbor-docs, and for client credentials the secret is harbor-docs-secret.

bearerAuth http (bearer)

Or skip signing in. Any token will do here. Without one the answer is a 401.

Fleet

Everything that floats, and where it ties up.

Ships

Vessels registered with the harbor.

Berths

Where ships dock.

Other

Webhooks