Guide
Documentation Conventions
Checklist for shipping new public APIs
When adding a public endpoint:
- 1Annotate the controller with
@ApiTags(SWAGGER_TAGS.*). - 2Add
@ApiOperation({ summary, description }). - 3Document success and relevant error responses.
- 4Apply
@ApiDocsMetadata({ category, group, order, ... })for hierarchy. - 5Document DTO fields with
@ApiProperty(descriptions/examples; fake values only). - 6Exclude sensitive fields from response schemas.
- 7Confirm the operation appears in this portal after regenerating OpenAPI.
- 8Run
pnpm docs:validate(or the API docs quality tests).
Use x-arvexa-docs-hidden: true via @ApiDocsMetadata({ hidden: true }) for internal probes that must not appear in the portal.