This launch an API endpoint that dump information that you need.
518
This launch an API endpoint that dump information that you need.

export FORCE_COLOR=1; DEBUG=app node index.js,npm run debug.npm run debug 2>&1 | cat which will display a ISODate without colors.You can use any tools to send the request, here is some examples:
curl -d '{"good_food":["pizza"]}' -H 'content-type:application/json' "http://localhost:3000"
http PUT localhost:3000 hello=world
http PUT localhost:3000 list:='[1,3,4]'
$ telnet localhost 3000
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET / HTTP/1.1
HTTP/1.1 200 OK
X-Powered-By: Express
Content-Type: text/html; charset=utf-8
Content-Length: 21
ETag: W/"15-pUrt2/ReShVqojLi/HerSHIgoCI"
Date: Tue, 08 Oct 2019 12:38:57 GMT
Connection: keep-alive
Got a GET request at /
Connection closed by foreign host.
docker build -t ponsfrilus/debugapi .
docker run --rm --name debugapi -p 3000:3000 -it ponsfrilus/debugapi
Content type
Image
Digest
Size
105.6 MB
Last updated
over 4 years ago
docker pull ponsfrilus/debugapi