0

I'm new at this and developing my first API server. I wanted to see an example of a POST request so I installed restify 3.0.3 and tried to run the TODO server example. I see the requests logged at the server but no response is sent. I'm using the sample curl requests provided and the server is running on Cloud9. Curl is running on windows 7.

For example, I've tried:

Can anyone help?

daveo
  • 3
  • 2

1 Answers1

0

I saw the same behavior when using PostMan to exercise the example.

Setting the PostMan Header Accept:text/plain or Accept:application/json worked for me.

BTW: if you set Accept:text/html, you should receive a helpful response:

{
  "code": "NotAcceptableError",
  "message": "Server accepts: application/todo,application/json,text/plain,application/octet-stream,application/javascript"
}

Hope this helps.

Arulkumar
  • 12,966
  • 14
  • 47
  • 68
ArlisD
  • 16