You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FixesDEVRhylme-Foundation#5
Add Swagger API documentation to the project.
* **internal/structure/structure.go**
- Add a new function `AddSwaggerDocs` to set up Swagger documentation.
- Call `AddSwaggerDocs` in `CreateBaseFileStructure` after copying the directory.
* **.templates/jsbase/src/app.js**
- Import `swagger-ui-express` and `swagger-jsdoc`.
- Define Swagger documentation in JSDoc format.
- Set up Swagger UI to serve at `/api-docs`.
* **.templates/tsbase/src/app.ts**
- Import `swagger-ui-express` and `swagger-jsdoc`.
- Define Swagger documentation in JSDoc format.
- Set up Swagger UI to serve at `/api-docs`.
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/DEVRhylme-Foundation/expressify/issues/5?shareId=XXXX-XXXX-XXXX-XXXX).
Description
Add Swagger API documentation to provide an interactive and easy-to-understand interface for the API.
Steps to Implement
swagger-ui-express
andswagger-jsdoc
./api-docs
.Expected Outcome
Interactive API documentation that helps developers understand and test the API.
Resources
The text was updated successfully, but these errors were encountered: