API References
Generate your API reference
A key benefit of using Fern Docs is that once you’ve defined your API, you get your API Reference documentation with just one line.
Add - api: API Reference
to your navigation in docs.yml
and Fern takes care of the rest! You’ll see your endpoints, types,
and errors automatically populated from your OpenAPI specification or Fern Definition.
Example:
docs.yml