Skip to content

Instantly share code, notes, and snippets.

@sfboss
Created March 21, 2025 08:13
Show Gist options
  • Save sfboss/269eb90d4c79776ea0721c124cca4813 to your computer and use it in GitHub Desktop.
Save sfboss/269eb90d4c79776ea0721c124cca4813 to your computer and use it in GitHub Desktop.
OpenAPI spec

openapi: 3.0.4 info: title: Sample API description: Optional multiline or single-line description in CommonMark or HTML. version: 0.1.9

servers:

paths: /users: get: summary: Returns a list of users. description: Optional extended description in CommonMark or HTML. responses: "200": # status code description: A JSON array of user names content: application/json: schema: type: array items: type: string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment