1. Define your API
  2. Fern Definition

Each Fern Definition file may define:

  • Services: a set of REST endpoints
  • Types: data model and objects
  • Errors: an error name, status code, and can include properties
  • Docs: human-readable descriptions
  • Imports: share types and errors across YAML files

‚Äč
An example of a Fern Definition

View the example on Github or here: