mirror of
https://github.com/Codegres-com/Simple-Whatsapp-API.git
synced 2026-04-26 20:35:55 +03:00
[PR #5] [MERGED] feat: Add Swagger and Postman support #5
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Simple-Whatsapp-API#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Codegres-com/Simple-Whatsapp-API/pull/5
Author: @Codegres-com
Created: 9/30/2025
Status: ✅ Merged
Merged: 9/30/2025
Merged by: @Codegres-com
Base:
main← Head:feature/swagger-postman-docs📝 Commits (1)
970343dfeat: Add Swagger and Postman support📊 Changes
8 files changed (+728 additions, -4 deletions)
View changed files
📝
README.md(+22 -0)📝
package-lock.json(+271 -0)📝
package.json(+2 -0)➕
server.log(+4 -0)📝
src/index.js(+25 -0)📝
src/routes/api.js(+148 -4)➕
src/swagger.js(+40 -0)➕
whatsapp_api_collection.json(+216 -0)📄 Description
This commit introduces Swagger UI for interactive API documentation and a Postman collection for easy API testing.
swagger-ui-expressandswagger-jsdocto handle documentation generation and serving.src/routes/api.jsto define the API specification./api-docs, to serve the interactive Swagger UI. The UI is pre-configured to use the master API key for immediate testing.whatsapp_api_collection.jsonfile in the root directory. The collection includes all endpoints and a pre-request script to manage theX-MASTER-KEYheader automatically.README.mdwith a new "API Documentation" section, explaining how to access the Swagger UI and import the Postman collection.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.