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 » Mon 01-Apr-2024, 18:01, My rating: ✭ ✭ ✭ ✭ ✭

The i9bet website will answer the questions asked in the above article. There are articles in this that make better sense. Please click this link for more details Readmore: i9bet

Thông tin liên hệ:

Website: https://i9bet.shop/

Email: i9betshopp@gmail.com

Phone: 0358212567

Hastag: #i9bet #i9betshop #trangchui9bet #caccuoctructuyen

Map: 278 Đ. Gò Dầu, Tân Quý, Tân Phú, Thành phố Hồ Chí Minh Việt Nam

Readmore:

nhà cái i9bet

trang chủ i9bet

tải app i9bet

nạp tiền i9bet

rút tiền i9bet

đăng ký i9bet

Social:

- Instagram: https://www.instagram.com/i9betshopp/

- Facebook: https://www.facebook.com/i9betshopp

- Twitter: https://twitter.com/i9betshop

- Pinterest: https://www.pinterest.com/i9betshopp/

- Reddit: https://www.reddit.com/user/i9betshopp/

- Youtube: https://www.youtube.com/@i9betshopp/about

- Google Site: https://sites.google.com/view/i9betshopp/home

- Behance: https://www.behance.net/i9betshop

- 500px: https://500px.com/p/i9betshopp

- Gravatar: https://gravatar.com/i9betshopp

- Twitch: https://www.twitch.tv/i9betshopp

- Github: https://github.com/i9betshopp

- Ko-fi: https://ko-fi.com/i9betshopp

- Gta5: https://www.gta5-mods.com/users/i9betshopp

279 Comments  • Page 12 of 279 •        Previous « 1…  10   11   12   13   14  …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" />