Skip to content

Commit

Permalink
fix #462
Browse files Browse the repository at this point in the history
  • Loading branch information
mStirner committed May 26, 2024
1 parent 60cde33 commit fc1eb7b
Showing 1 changed file with 296 additions and 0 deletions.
296 changes: 296 additions & 0 deletions postman.json
Original file line number Diff line number Diff line change
Expand Up @@ -2579,6 +2579,302 @@
"response": []
}
]
},
{
"name": "Webhooks",
"item": [
{
"name": "Create new webhook",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript",
"packages": {}
}
},
{
"listen": "test",
"script": {
"exec": [
""
],
"type": "text/javascript",
"packages": {}
}
}
],
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"_id\": \"647c29cb62ad0449380f0abe\",\n \"name\": \"Test Webhook as trigger for scenes\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://{{HOST}}:{{PORT}}/api/webhooks",
"protocol": "http",
"host": [
"{{HOST}}"
],
"port": "{{PORT}}",
"path": [
"api",
"webhooks"
]
}
},
"response": []
},
{
"name": "Get all webhooks",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript",
"packages": {}
}
},
{
"listen": "test",
"script": {
"exec": [
""
],
"type": "text/javascript",
"packages": {}
}
}
],
"request": {
"method": "GET",
"header": [
{
"key": "x-auth-token",
"value": "eyJhbGciOiJIUzM4NCIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImhhbnMuaHViZXJ0QGV4YW1wbGUuY29tIiwidXVpZCI6ImM3N2E3NjJkLWM4ODYtNGQ2My1iNGM1LWU0MDJhZGNmYTdiZSIsImlhdCI6MTY1NDI2ODI4NX0.w4mkvTuJ-OXzTcmvWhwIT84oOmo2399hSEfWGbA-9SUWndMWUiHvly1A7-kSV93e",
"type": "text",
"disabled": true
}
],
"url": {
"raw": "http://{{HOST}}:{{PORT}}/api/webhooks",
"protocol": "http",
"host": [
"{{HOST}}"
],
"port": "{{PORT}}",
"path": [
"api",
"webhooks"
]
}
},
"response": []
},
{
"name": "Get sinlge webhook",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript",
"packages": {}
}
},
{
"listen": "test",
"script": {
"exec": [
""
],
"type": "text/javascript",
"packages": {}
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://{{HOST}}:{{PORT}}/api/webhooks/647c29cb62ad0449380f0abe",
"protocol": "http",
"host": [
"{{HOST}}"
],
"port": "{{PORT}}",
"path": [
"api",
"webhooks",
"647c29cb62ad0449380f0abe"
]
}
},
"response": []
},
{
"name": "Update existing webhook",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript",
"packages": {}
}
}
],
"request": {
"method": "PATCH",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Trigger scene <foo bar>\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://{{HOST}}:{{PORT}}/api/webhooks/647c29cb62ad0449380f0abe",
"protocol": "http",
"host": [
"{{HOST}}"
],
"port": "{{PORT}}",
"path": [
"api",
"webhooks",
"647c29cb62ad0449380f0abe"
]
}
},
"response": []
},
{
"name": "Update existing webhook",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript",
"packages": {}
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://{{HOST}}:{{PORT}}/api/webhooks/647c29cb62ad0449380f0abe/trigger",
"protocol": "http",
"host": [
"{{HOST}}"
],
"port": "{{PORT}}",
"path": [
"api",
"webhooks",
"647c29cb62ad0449380f0abe",
"trigger"
]
}
},
"response": []
},
{
"name": "Delete exisiting room",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript",
"packages": {}
}
},
{
"listen": "test",
"script": {
"exec": [
""
],
"type": "text/javascript",
"packages": {}
}
}
],
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "http://{{HOST}}:{{PORT}}/api/webhooks/647c29cb62ad0449380f0abe",
"protocol": "http",
"host": [
"{{HOST}}"
],
"port": "{{PORT}}",
"path": [
"api",
"webhooks",
"647c29cb62ad0449380f0abe"
]
}
},
"response": []
}
],
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
}
]
}
],
"auth": {
Expand Down

0 comments on commit fc1eb7b

Please sign in to comment.