A plugin for generating Swagger documentation in the ThanhHoaJS framework.
-
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
- Simple setup with
Install ThanhHoa using Bun:
bun add @thanhhoajs/swaggerContributions are welcome! Please open an issue or submit a pull request on the GitHub repository.
Nguyen Nhu Khanh kwalker.nnk@gmail.com
This project is licensed under the MIT License. See the LICENSE file for details.