mirror of
https://github.com/azaion/loader.git
synced 2026-04-22 21:56:33 +00:00
b0a03d36d6
Made-with: Cursor
16 lines
616 B
Plaintext
16 lines
616 B
Plaintext
---
|
|
description: "OpenAPI/Swagger API documentation standards — applied when editing API spec files"
|
|
globs: ["**/openapi*", "**/swagger*"]
|
|
alwaysApply: false
|
|
---
|
|
# OpenAPI
|
|
|
|
- Use OpenAPI 3.0+ specification
|
|
- Define reusable schemas in `components/schemas`; reference with `$ref`
|
|
- Include `description` for every endpoint, parameter, and schema property
|
|
- Define `responses` for at least 200, 400, 401, 404, 500
|
|
- Use `tags` to group endpoints by domain
|
|
- Include `examples` for request/response bodies
|
|
- Version the API in the path (`/api/v1/`) or via header
|
|
- Use `operationId` for code generation compatibility
|