Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
multiple hierarchical objects
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
janet smith  
View profile  
 More options Apr 26 2012, 1:07 am
From: janet smith <janetsmith2...@gmail.com>
Date: Wed, 25 Apr 2012 22:07:39 -0700 (PDT)
Local: Thurs, Apr 26 2012 1:07 am
Subject: multiple hierarchical objects

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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
sune jakobsson  
View profile  
 More options Apr 26 2012, 1:54 am
From: sune jakobsson <sune.jakobs...@gmail.com>
Date: Thu, 26 Apr 2012 07:54:21 +0200
Local: Thurs, Apr 26 2012 1:54 am
Subject: Re: multiple hierarchical objects

Slightly moor details please :), wit this limited info I would choose your
latter suggestion.

Sune

On 26 April 2012 07:07, janet smith <janetsmith2...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
JJ Keys  
View profile  
 More options May 18 2012, 7:41 am
From: JJ Keys <jjk...@gmail.com>
Date: Fri, 18 May 2012 04:41:59 -0700 (PDT)
Local: Fri, May 18 2012 7:41 am
Subject: Re: multiple hierarchical objects

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Per Persson  
View profile  
 More options May 21 2012, 9:24 am
From: Per Persson <md2pe...@gmail.com>
Date: Mon, 21 May 2012 06:24:05 -0700 (PDT)
Local: Mon, May 21 2012 9:24 am
Subject: Re: multiple hierarchical objects

Here a report can be created for a single item or for all items. What if
you want to create a report for a selection of items?
Maybe a report shouldn't be a resource but just generated by an extra
parameter (or even a content type)?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »