When I follow the code samples in the book and use RSpec for testing the basic CRUD API works fine.
However when I try to use Advanced REST Client in Chrome for testing either the POST or the PUT then I ran into some issues.
If I e.g. POST the following JSON:
to http://localhost:4567/bookmarks using Content-Type: application/json then the params is empty.
After doing some research I was able to solve this by adding the following line at the start of the POST handler.
params = JSON.parse(request.body.read)
This works all good and well with my REST Client, but it breaks RSpec.
Does anybody have any clues on what I am doing wrong?