php - Restful Approach -


just general question how best structure restful api.

i have set of categories different picture galleries in each. have:

/api/{category}/{gallery-name} 

e.g.

/api/photographs/dogs /api/food/desserts 

if don't specify gallery-name list of galleries in category. if don't specify category or gallery-name, list of categories.

note: food , photographs not key words - category ids.

i'm wondering.. should have pluralised section listings? /api/categories/ list categories , /api/categories/food/galleries list galleries? think strange if navigate site , see sort of api.


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -