Rant Image

The Rant

Should ID be given in URL if already secured with JWT containing ID?

Submitted by JoeClark » Mon 11-Dec-2017, 20:16

Subject Area: General

Keywords: Affiliate Marketing Examples

41 member ratings

Hi.

If I wanted to DELETE a user authenticated with a JWT token that contains the user object, should this DELETE handled go under /users or /users/?

It makes sense to have under the /users/ endpoint as you're deleting that specific item.

But also makes sense to have it under /users as then you don't have redundant data and you don't have to enter the every time you want to perform a function on your user when you already have the JWT authentication.

This idea falls to many-to-many objects too, say I wanted to access /users//games//move stripping '/users/' makes it seem like there's not 'user' resource but it makes it less clunky and again less data redundancy.

Which is more 'accepted' or 'right'?

Please Help.

Thanks,

I didn't find the right solution from the internet.
References:https://softwareengineering.stackexchange.com/questions/362060/should-id-be-given-in-url-if-already-secured-with-jwt-containing-id

Affiliate Marketing Examples


279 Comments 

Member Comments

RE: Should ID be given in URL if already secured with JWT containing ID?

Help

By xetheki » Sun 21-Jan-2024, 12:56, My rating: ✭ ✭ ✭ ✭ ✭

Thanks for a very interesting blog. What else may I get that kind of info written in such a perfect approach? I’ve a undertaking that I am simply now operating on, and I have been at the look out for such info lắp đặt camera quận 7 - dịch vụ lắp đặt camera quận tân phú - lắp đặt camera quận 12 - lắp đặt camera quận tân phú - lắp đặt camera quận 1 - lắp đặt camera quận 9 - lắp đặt camera quan sát quận 12 - lắp đặt camera quận 6 - lắp đặt camera quận 8 - lắp đặt camera quận 10 - lắp đặt camera quận 11 - lắp đặt camera quận 2 - lắp đặt camera quan sát quận 2 - lắp đặt camera quận 4 - lắp đặt camera quận 3 - lắp đặt camera quận 5 - lắp đặt camera quan sát quận 4 - lắp đặt camera quan sát quận tân phú - lắp camera quận 7 - lắp đặt camera quan sát quận 1 - lắp đặt camera quan sát quận 3 - lắp đặt camera quan sát quận 11 - lắp đặt camera quan sát quận 7 - lắp đặt camera quan sát quận 10 - lắp đặt camera quận tân bình - lắp đặt camera bình tân - lắp đặt camera hóc môn - lắp đặt camera quận bình tân - lắp camera tại gò vấp

279 Comments  • Page 22 of 279 •        Previous « 1…  20   21   22   23   24  …279 » Next

Email to a friend

Email this Rant to a friend

%0ASee:%0A http://www.chambers.com.au/forum/view_post.php?frm=1%26pstid=232" alt="Email to a friend" />