Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8941285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:15:52+00:00 2026-06-15T11:15:52+00:00

I started working on a public API for my project, I thought of making

  • 0

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)

  1. GET /movies?token=XXX
  2. 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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T11:15:54+00:00Added an answer on June 15, 2026 at 11:15 am

    I really liked Restful Web Services by Leonard Richardson. He explains REST, how some sites misuse it, how to use it correctly, when to use query strings versus putting the info in the URI path. He also covers authentication, but he’s kind of brief on that topic. He spends a good bit of time explaining why REST is better than SOAP — I enjoyed it, but other reviewers seem to feel it was excessive. He uses Ruby/Rails in most of his examples.

    Out of your two examples, I prefer “GET /users/XXX/movies” over the first. Using the query string is good for searches or optional parameters. Something like google.com/?q=batman or /users/XXX/movies?page=2. Since you are looking at the movies of a particular user, it makes sense for the URI to match that structure, and option 2 does that.

    Some sites aren’t truly RESTful because they provide methods like

    GET /GetUser?token=XXX
    GET /SaveUser?token=XXX&name=YYY
    

    A truly RESTful service would obey the existing HTTP commands and operate on resources, not functions. According to the book, if you following the HTTP protocol, you usually don’t need words like “get” or “save” in your service names — they are provided by HTTP.

    GET /user/XXX
    PUT /user
    

    Hope this helps. I don’t have any good web resources, but I’d recommend giving that book a try.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I started working on a project which uses Net_URL_Mapper from PEAR (php) as the
I started working on CodeIgniter recently and I'm having some issues with the .htaccess
I started working on a project in the mid. We are using Zend Framework,
I'm working on a project and I need to create an API. I am
I just started working on a new project that already contains a .svn folder
I started a gwt spring 3 project thought spring roo. Then I took roo
Recently I have started working with Codeigniter framework in order to develop RESTFul web
I have just started working on a project using Fluent NHibernate. What is the
I just started working on a sample application that only calls some tables on
I have recently started working with android in eclipse. I have to keep within

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.