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 8523081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:18:27+00:00 2026-06-11T07:18:27+00:00

I was at a developer conference where the speaker argued that the following set

  • 0

I was at a developer conference where the speaker argued that the following set of URLs are not RESTful:

/users/username/changepassword
/users/username/resetpassword

The main reason given was that the same URLs might be used in different context and that this didn’t facilitate HATEOAS in a meaningful way.
He then continued to argue that a more viable approach is to use the following URLs:

/account/changepassword
/administration/server/users/username/resetpassword

According to the speaker this latter approach allowed for each use-case to have a specifically tailored (html-)form for each URL, which could then be posted to the same URL. No more problems with the same URL used in different contexts.

I would spontaneously say that neither of these URL sets are RESTful, simply due to the fact that they are both centered around actions (verbs) which in my eyes do not really qualify as resources except for in exceptional cases (like search). I feel like this setup is very RPC-like.

I would have suggested something more noun-like and granular like

 //Change password
 PUT /users/username/account/password
 //Register reset
 POST /users/username/account/password/resets
 //Verify reset
 PUT /users/username/account/password/resets/0/verification_code

What is your opinion? Is the speakers approach RESTful or not, or is there simply not enough information here?

  • 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-11T07:18:29+00:00Added an answer on June 11, 2026 at 7:18 am

    I agree, the whole idea of a RESTful interface (as I understand it) is to allow access to “resources”. So neither of those URL schemes seem very nice to me.

    Having said that REST isn’t set in stone, it is more of a guide than a set of rules. Some things don’t sit that well with it, so you have to get as close as you can just using the HTTP verbs.

    A password reset isn’t a resource, however a password is. So, I would say something along these lines for a password reset operation …

    GET /users/antonyscott/password
    PUT /users/antonyscott/password
    

    With the 2nd call requiring authentication of some sort derived from the first call and passing in the new password. Actually that’s more of a straight password change than a reset. If you’re after a reset (ie – following a link in an email to confirm the reset) then what you had seems okay.

    Obviously designing an API is an iterative process, so I would say have a go and see how it works, then refine it.

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

Sidebar

Related Questions

While developer a client side application I ran into an error that I believe
http://developer.android.com/tools/publishing/app-signing.html I have a keystore that I already have an alias and password for.
http://developer.yahoo.com/yui/button More specifically, I want radio buttons. that can be checked/unchecked.
Developer Documentations doesn't provides fully describe of registerForDraggedTypes method. For example, i want that
Developer tools and software typically do not provide solution suggestions in error messages .
A developer of mine was making an application and came up with the following
Say we have the following case: Jen Ninja (a Developer with an awesome last
A developer that did work for me wrote a Regular expression that checks for
http://developer.android.com/training/basics/firstapp/building-ui.html I have been following this tutorial, but I have two errors, both R
http://developer.android.com/resources/tutorials/views/hello-spinner.html I'm following this ^ tutorial on making a spinner but when I get

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.