Skip to content

thanhhoajs/swagger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ThanhHoa Logo

@thanhhoajs/swagger

A plugin for generating Swagger documentation in the ThanhHoaJS framework.

Key Features

  • Decorators for API Documentation

    • @ApiOperation() - Define operation metadata
    • @ApiTags() - Group endpoints by tags
    • @ApiParam(), @ApiQuery() - Document route and query parameters
    • @ApiBody() - Document request body schema
    • @ApiResponse() - Document response schemas
  • Security Scheme Support

    • @ApiBasicAuth() - Basic authentication
    • @ApiBearerAuth() - JWT bearer token authentication
    • @ApiOAuth2() - OAuth2 flows support
    • @ApiSecurity() - Custom security schemes
  • Schema Documentation

    • @ApiModel() - Document data models/DTOs
    • @ApiProperty() - Document model properties
    • Automatic type inference for TypeScript types
  • Parameter Documentation

    • @ApiHeader() - Document HTTP headers
    • @ApiCookieParam() - Document cookie parameters
  • Easy Integration

    • Simple setup with setupSwagger() function
    • Automatic OpenAPI specification generation
    • Built-in Swagger UI
    • JSON schema export

Installation

Install ThanhHoa using Bun:

bun add @thanhhoajs/swagger

Contributing

Contributions are welcome! Please open an issue or submit a pull request on the GitHub repository.

Author

Nguyen Nhu Khanh kwalker.nnk@gmail.com

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

A plugin for generating Swagger documentation in the ThanhHoaJS framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published