I have just a simple question, but I could not found any answer.
My ruby on rails 3.2.2 appilcation have a JSON API with a devise session authentication.
My question is: How can I test this API with functional or integration tests - and is there a way to handle a session?
I do not have a front end, just a API that I can do GET. POST. PUT. and DELETE with JSON Body.
Which is the best way to test this automated?
EXAMPLE create new user
POST www.exmaple.com/users
{
"user":{
"email" : "[email protected]",
"password " : "mypass"
}
}