restify example TODO server not sending responses -
i'm new @ , developing first api server. wanted see example of post request installed restify 3.0.3 , tried run todo server example. see requests logged @ server no response sent. i'm using sample curl requests provided , server running on cloud9. curl running on windows 7.
for example, i've tried:
- curl -iss http://test-atk9.c9.io | json
- curl -iss http://test-atk9.c9.io/todo -x post -d name=demo -d task="buy milk"
can help?
i saw same behavior when using postman exercise example.
setting postman header accept:text/plain
or accept:application/json
worked me.
btw: if set accept:text/html
, should receive helpful response:
{ "code": "notacceptableerror", "message": "server accepts: application/todo,application/json,text/plain,application/octet-stream,application/javascript" }
hope helps.
Comments
Post a Comment