Hi Janet,
With the Item Report you could have it two ways
*/items/{item_id}/report
**and/or*
*/reports/item-reports/{item_id}
*
and for the Item Summary Report
*/reports/item-summary-report*
You want to avoid things like: /items/reports for the summary report
because you would normally expect the id of an individual item (e.g
/items/item-9) to come after the /items/.. part of the url.
Cheers
JJ
On Thursday, 26 April 2012 17:07:39 UTC+12, janet smith wrote:
> Hi guys,
> let's say I have 2 different hierarchical tree.
> 1. items (group) - item
> 2. there are report, configration for each item
> should I make my api like this:
> items/report (summarized report)
> item-2/report (individual report)
> or
> report/items
> report/item-3
> Your feedback is appreciated.