dyne / restroom-mw

🛠 Easy REST API builder executing Zencode
https://restroom.dyne.org
GNU Affero General Public License v3.0
3 stars 11 forks source link

[http] Allow POST calls #75

Closed puria closed 2 years ago

puria commented 2 years ago

STATEMENT: Given I connect to 'endpoint' and pass it the content of 'myDataToPOST' and save the output into 'dataFromEndpoint'

With the following DATA:

"myDataToPOST": {
  "id": "XXXXXXXXXXXXXXXXXXXXXXXXX",
  "recurseLimit": 2
 },

with the endpoint:

{
"endpoint": "http://reflow-demo.dyne.org:4000/api/json/trace"
}

acting like:

curl -XPOST -Hcontent-type:application/json -d'{"id": "XXXXXXXXXXXXXXXXXXXXXXXXX", "recurseLimit": 2}' -k http://reflow-demo.dyne.org:4000/api/json/trace