Suppose a completely theoretical path. I've alway wondered what would be the correct URL, from a REST-ful point of view?
/users/{userId}/details
OR
/users/details/{userId}
I highly incline on the first one, but just to make sure...
/users/{userId}/details
makes more sense.
You can refer as some famous API ( Spotify for example )
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.