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
Post a Comment