Tag Info

Hot answers tagged


First of all, having get in your URL is not RESTful, GET is implied by the HTTP method. If you're requesting a collection like GET api/movies return a 200 OK with an empty array []. If you're requesting a specific movie like GET api/movies/1 (where 1 is the id) and it doesn't exist, return a 404 Not Found. Why? You are requesting resources. When you are ...

Only top voted, non community-wiki answers of a minimum length are eligible