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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:37:34+00:00 2026-06-15T12:37:34+00:00

If /users/{username} is an alias of /users/{userId} (one cannot exist without the other) then

  • 0
  • If /users/{username} is an alias of /users/{userId} (one cannot exist without the other) then I am expecting that deleting the former means that you want to delete the latter.
  • If /lists/{listId}/users/{userId} is an reference to /users/{userId} (one can exist without the other) then I’m expecting to be able to delete the reference without affecting the canonical resource.
  • In both cases, invoking HTTP GET will result in HTTP 303 to the canonical resource.

I believe that it is confusing that both types behave the same for HTTP GET but not for HTTP DELETE.

This has led me to the following questions:

  1. What should happen when HTTP DELETE is invoked on an alias?
  2. What is the appropriate way to remove references from a list without removing the actual object they point to?
  • 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-15T12:37:36+00:00Added an answer on June 15, 2026 at 12:37 pm

    5.3.5. DELETE

    The DELETE method requests that the origin server delete the target
    resource. This method MAY be overridden by human intervention (or
    other means) on the origin server. The client cannot be guaranteed
    that the operation has been carried out, even if the status code
    returned from the origin server indicates that the action has been
    completed successfully. However, the server SHOULD NOT indicate
    success unless, at the time the response is given, it intends to
    delete the resource or move it to an inaccessible location.

    **> A successful response SHOULD be 200 (OK) if the response includes a

    representation describing the status, 202 (Accepted) if the action has
    not yet been enacted, or 204 (No Content) if the action has been
    enacted but the response does not include a representation.**

    So:

    If /users/{username} is an alias of /users/{userId} (one cannot exist without the other)
    then > I am expecting that deleting the former means that you want to delete the latter

    What should happen when HTTP DELETE is invoked on an alias?

    "both" resources must to be deleted. as i understand if one can not exist without other they are just different identifiers of same resource, so after deleting one of them following requests must be answered with 404 Not Found for both.

    What is the appropriate way to remove references from a list without removing the actual object they point to?

    UPDATE:

    My question is what HTTP methods should be used to indicate that a client would like to remove references from a list?

    If user(client?) would like to remove reference from a list without removing actual resource there is only one way – client must send PUT request with modified list to the server which means that existing list must be replaced with a new one. If user doesn’t have enough permissions "403 Forbidden" can be returned in response.

    To do the reverse of this(i.e. inform user when list was changed) if resource(i.e. list in this case) is supposed to be cached on client side and removal of some other resource affects this list, only approach i can think to "inform" user is to use caches. For example:

    REQUEST

    GET /list HTTP/1.1
    Host: service.org
    

    RESPONSE

    HTTP/1.1 200 OK
    Content-Type: application/...
    Content-Length: ...
    Cache-Control: private, max-age=0
    ETag: a32lasdf
    

    In the response above Cache-Control header value "private, max-age=0" is an instruction for client that it can cache representation locally though must send following request to the server each time:

    REQUEST

    GET /list HTTP/1.1
    Host: service.org
    If-None-Match: a32lasdf
    

    if /list resource is untouched then ETag value will match "If-None-Match" value, server can respond with "304 Not Modified" and client doesn’t need to do anything. But if previous removal action affected the /list, hash code for ETag will be different from one which is provided with "If-None-Match" header and thus new representation of the /list resource will be returned by server.

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

Sidebar

Related Questions

I want to create App that Make My Device with multi-Users username and password
hope someone can help. I have two tables: Users -UserID -UserName UsersType -UserTypeID -UserID
i have a table that holds my users information like username , password ,
Hy, I have a users table in mysql with username and alias set to
It's located under /Users/username/Library/StickiesDatabase. I've tried to work on it. It seems to be
This doesn't work: INSERT INTO users (username, password) VALUES (Jack,123) WHERE id='1'; Any ideas
I wrote a test program to monitor my Picture folder which points to c:\users[username]\Pictures
Where does TortoiseSVN save password cached files in Windows 7? I found c:\users\USERNAME\AppData\TSVNCache directory,
I have MongoJS query call: db.users.find({username:eleeist},function(err, docs) { console.log(docs); }); The docs variable looks
I have Two tables. 1.Users table (Username , Name) 2.Picture table( ID , Username

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.