I started working on a public API for my project, I thought of making it RESTful.
I keep seeing articles about how some APIs (like twitter's) are not really RESTful and I want to try and make my API as RESTful as possible (it seems that it is not that simple :) )
Currently there is one thing I am contemplating on, lets say there are two resources, users & movies, each user has a list of movies, I want to create a REST api for getting all the movies for the currently connected user, what is the correct way of designing this ?
(XXX is some kind of authentication token - I haven't decided what authentication to implement yet)
- GET /movies?token=XXX
- GET /users/XXX/movies
or maybe something else all together ?
Also if anyone can direct to me to a good reading on the subject, something that will help me create my public API as RESTful as possbile, it would be a great help!