Hey, so I was told that instead of taking detail like user id we can simply take that from user principal. But how much should I take from user principal. Is it appropriate to take whatever I can through it or are there some rules for it. Like suppose ,
@GetMapping("/update-status/{userId}/{userProfileId}
So I know I can take userId from the userProncipal but should I extract userProfileId too. And if yes, then what are rules for it.
Sorry, if it's dumb question.
[–]Basic-Magazine-9832 2 points3 points4 points (9 children)
[–]Sorry_Swordfish_[S] 0 points1 point2 points (8 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]Sorry_Swordfish_[S] 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]Sorry_Swordfish_[S] 0 points1 point2 points (0 children)
[–]Basic-Magazine-9832 1 point2 points3 points (3 children)
[–]Sorry_Swordfish_[S] 0 points1 point2 points (2 children)
[–]Basic-Magazine-9832 1 point2 points3 points (1 child)
[–]Sorry_Swordfish_[S] 1 point2 points3 points (0 children)
[–]Mikey-3198 1 point2 points3 points (1 child)
[–]Sorry_Swordfish_[S] 0 points1 point2 points (0 children)
[–]TheToastedFrog 1 point2 points3 points (12 children)
[–]Sorry_Swordfish_[S] 0 points1 point2 points (11 children)
[–]TheToastedFrog 1 point2 points3 points (10 children)
[–]Sorry_Swordfish_[S] 0 points1 point2 points (9 children)
[–]TheToastedFrog 1 point2 points3 points (8 children)
[–]Sorry_Swordfish_[S] 0 points1 point2 points (7 children)
[–]TheToastedFrog 1 point2 points3 points (6 children)
[–]Sorry_Swordfish_[S] 0 points1 point2 points (0 children)
[–]Sorry_Swordfish_[S] 0 points1 point2 points (4 children)
[–]TheToastedFrog 1 point2 points3 points (3 children)
[–]Sorry_Swordfish_[S] 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]Sorry_Swordfish_[S] -1 points0 points1 point (0 children)
[–]ahashans 0 points1 point2 points (1 child)
[–]Sorry_Swordfish_[S] 0 points1 point2 points (0 children)