Skip to content

POST hook {hook_id}

Igor Balos edited this page Jun 19, 2018 · 1 revision

Endpoint

/hook/{hook_id} - POST

Description

This endpoint accepts POST data requests.

Example

Request

curl -X POST 'http://localhost:8888/hook/20bf06f7-aa94-a3ec-89cd-7710f1e1fc83 -d {"{'Data':'Hello1'}"}'
curl -X POST 'http://localhost:8888/hook/20bf06f7-aa94-a3ec-89cd-7710f1e1fc83 -d {"{'Data':'Hello2'}"}'

Each time you send a request, it is stored. Array of stored responses is returned.

Response

[
 {"Data":"Hello1"}
 {"Data":"Hello2"}
]