mardi 24 avril 2018

RESTful API Best practice for getting users score

I'm building a RESTful API for my web app.

I need to make a GET request to fetch some users score by his ID.

which one of the following endpoints is considered to be the best practice?

I'm debating between the following two options

Option 1

http://www.example.com/users/:id/score

Option 2

http://www.example.com/scores/users/:id




Aucun commentaire:

Enregistrer un commentaire