On Fri, Jun 20, 2008 at 04:36:46PM -0400, Grazi, Victor wrote:
>
> So for example, a client could call for
> "/resources/companies/IBM/scenarios/default" which would return the
> default scenario for IBM.
>
> Most applications would not need all 50,000 data points for a scenario,
> and those would take up over 5MB which would be overkill to return on
> each call.
How about this: create a resource like
/resources/companies/IBM/scenarios
that one POSTS a list of datapoints that they want. They get back a
unique ID that represents their request that they can then use in a GET
query.
I've seen this in action on a wiki server we're using. They present a
form that lists all the areas that you can be notified of any updates.
After filling out the form they give you a unique id that you put into
an RSS reader.
So the steps would be
POST /resources/companies/IBM/scenarios
scenario1
scenario6
scenario61239
They get back
{ id: adslj148714dasjla08252 }
Then use
GET /resources/companies/IBM/scenarios/adslj148714dasjla08252
Chris