cron-webhook-express

1.0.1 • Public • Published

cron-webhook-express

Cron Webhook module wrapped by express

How to use

Install

npm i --save cron-webhook-express

Set

let cronWebhookExpress = require('cron-webhook-express')

cronWebhookExpress.start(3000, function() {})

API

Submit new cron webhook

POST : localhost:3000/:name
body: {
    "querySettings": {
        "query": url,
        "webhook": webhook
    },
    "objectParser": "application/json"
}

Retrieve all active cron webhook information

GET : localhost:3000

Retrieve cron webhook information and last state

GET : localhost:3000/:name

Pause a cron webhook

ANY : localhost:3000/:name/pause

Resume a paused cron webhook

ANY : localhost:3000/:name/start

Stop once and for all a cron webhook

DELETE : localhost:3000/:name
or
ANY : localhost:3000/:name/stop

Readme

Keywords

Package Sidebar

Install

npm i cron-webhook-express

Weekly Downloads

1

Version

1.0.1

License

GPL-3.0-or-later

Unpacked Size

40.8 kB

Total Files

5

Last publish

Collaborators

  • balsick