A simple webhook service, which will send a HTTP request based on the webhook's body and also store its result in mongodb.
docker-compose up
npm install
npm start
The node-webhook is usefull if you need to track and log HTTP requests.
-
GET /webhook Return all requests
-
GET /webhook/{id} Return a specific request
-
GET /about Return README.md content
-
POST /webhook Handle the webhook and returns the request id
- e.g.:
header: Content-Type = application/json body : { "port": 443, "protocol": "https:", "host": "github.com", "path": "/TomazJunior/node-webhook" } response : { "id": "5b4fa8cd822fce0fb1102ecf", "status": "pending" }
npm run test
It uses StandardJS, mocha, chai, sinon and nyc.
- Tomaz Junior - github
See also the list of contributors who participated in this project.
- Implement unit tests
- Dockerize it
- Turn it into a node module
- Child Processes
- Requests
- MongoDB
- Async/Await