HTTP JSON Endpoints
Document HTTP JSON APIs with the `application/json` content type
Endpoints in OpenAPI are defined underneath the paths key. Below is an example of defining
a single endpoint:
openapi.yml
Response handling
Fern keeps one success response per operation. When an operation declares several 2XX responses, Fern picks the first match in the order 200, 201, 202, 204 and drops the others. Only responses in the 400–600 range are classified as errors.
Examples
You can provide examples of requests and responses by using the examples key.
openapi.yml