Document workflows with links, prerequisites, and callbacks
An endpoint rarely stands alone. Creating a payment may require a customer, and its successful response may lead naturally to fetching, capturing, or refunding that payment. If those relationships exist only in prose, readers have to reconstruct the workflow themselves.
Speccy combines three complementary forms of operation relationship:
- OpenAPIOpenAPIA machine-readable standard for describing HTTP APIs, including their operations, parameters, request bodies, responses, and schemas. links describe what a caller can do after a particular response.
x-speccy-prerequisitesdescribes what must already have happened before the operation can be called.- OpenAPIOpenAPIA machine-readable standard for describing HTTP APIs, including their operations, parameters, request bodies, responses, and schemas. callbacks describe requests the API may later send to the caller.
Together they give an operation a useful sense of place: what gets you here, where can you go next, and what might come back to you?