rest - Naming convention for a RESTful resource that returns a list of entities with most properties hidden? -
we have endpoint, let's call
/items
which returns list of items. endpoint returns properties on items, , ends returning lot of data, since each item pretty heavy json object.
at moment, i'm looking @ creating lightweight varsion of endpoint can used reduce bandwidth, , returns limited number of properties (e.g. item.name , item.year).
is there naming convention such endpoint?
i thinking along lines of
/lightweight-items
or similar.
is there naming convention such endpoint?
not i've heard of. /lightweight-items
implies there resources called 'lightweight-item', not true.
i suggest add query option specify data need, like
/items?properties=name,year
where name,year
ones want have retrieved
Comments
Post a Comment