You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to api-...@googlegroups.com
Hi APICrafters,
I am wondering what would be the best design approch regarding a REST API where I need to get resources grouped by type.
Let me explain with this exemple:
GET /cars : return an array of all cars
GET /cars?groupBy=brand : return an array of brands. Each brand contains an array of cars
How does it sound to you ?
Would you recommend an other approch ?
Thanks, Bruno
bruno roussel
unread,
May 18, 2015, 2:35:32 PM5/18/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to api-...@googlegroups.com
Forgot the second approch :
GET /brands?field=cars : return an array of brands. Each brand contains an array of cars.
Chris Mullins
unread,
May 18, 2015, 3:50:26 PM5/18/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
There may be some good ideas, or even the exact syntax, you can use. Their thinking around aggregation, roll ups, and grouping is interesting and hopefully helpful.