Skip to content

Enrich Swagger with XML Comments and Examples #9

@stkossman

Description

@stkossman

Enrich Swagger with XML Comments and Examples.

Description:
To improve our generated API documentation in Starlight, we need to enrich the swagger.json output from the .NET backend.

  • Enable XML documentation generation in Cinema.Api.csproj.
  • Add XML comments (/// <summary>) to all Controllers and Endpoints.
  • Add <example> tags or [DefaultValue] attributes to DTOs (e.g., CreateOrderCommand, LoginUserCommand) to provide realistic payload examples.
  • Once deployed, the Starlight docs will automatically reflect these examples.

Metadata

Metadata

Assignees

Labels

type: api-syncTasks related to updating Swagger/OpenAPI endpoints.
No fields configured for Feature.

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions