Middle-earth API

How This Demo Is Built

The files behind every page of this demo.

1 MIN READ

Everything you see comes from files in the mordoc-api-demo project.

config/api.yaml          registers the three specs
api/specs/               OpenAPI 3.1 specs, never hand-edited
api/enrichment/<id>/     Markdown prose for operations and schemas
api/examples/<id>/       authored request and response examples
config/navigation/       sidenav with operation: entries

What to look at

FeatureSee it in
Spec-only page, no enrichmentRetrieve a member
Conditional badge and response-scoped noteForge a ring
Free badges (Read-only, Beta)Retrieve a ring
oneOf and recursive schemasList members
Authored examples next to spec examplesLight a beacon
WebhooksBeacon lit
Deprecated operationDismiss a member

Learn more in the Mordoc documentation.