Home > Blockchain >  REST API naming for short entity version
REST API naming for short entity version

Time:06-11

For instance, I have a team entity and API to retrieve teams will be like this:

GET \teams

To retrieve a single team

GET \teams\{team_id}

and so on...

What name will be good if I need to return a short version of the team's list that include only id and name - like select options.

The options below feel incorrect...

GET \teams\select and GET \teams\short

CodePudding user response:

GET \teams\list
GET \teams\dropdown-options
GET \teams\options

these options look good

  • Related