[READ-ONLY] Mirror of https://github.com/shuuji3/expressjs-json-post-test. Just a simple server that echoes the JSON text same as POSTed data
0

Configure Feed

Select the types of activity you want to include in your feed.

JavaScript 100.0%
1 1 0

Clone this repository

https://git.vm.fail/shuuji3.xyz/expressjs-json-post-test https://git.vm.fail/did:plc:r7t53mgpjoqt5kpnwread3vs
ssh://git@knot1.tangled.sh:2222/shuuji3.xyz/expressjs-json-post-test ssh://git@knot1.tangled.sh:2222/did:plc:r7t53mgpjoqt5kpnwread3vs

For self-hosted knots, clone URLs may differ based on your setup.


README.md

expressjs-json-post-test#

Just POST JSON text to the server returning the same JSON.

Example#

Server#

 > node server.js
 body { x: '1', y: '2' }

Client#

 > curl -H 'Content-Type: application/json' http://localhost:8000/ --data '{"x": "1", "y": "2"}'
 {"x":"1","y":"2"}