[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Web services revisited
- Subject: Re: Web services revisited
- From: Chris Travers <..hidden..>
- Date: Tue, 22 May 2012 19:06:19 -0700
On Tue, May 22, 2012 at 12:27 PM, John Locke <..hidden..> wrote:
> Possible Index handler:
> GET /rest/1.0/my_company/ar_transactions/?invoice_id=N499216
I had a thought about this one. Suppose we allow a by= field to
specify a non-standard id key? In that case, your URL would look like
The desired result would then be to get a redirect to the the cannonical URL.
I am thinking that this avoids issues like:
In that case instead you'd do:
Capture the redirect address
You could then either do a redirect and add the extension or pursue
the redirect with the content type header.
Note, by would only be valid where the field is a valid secondary key.
The modules would be responsible for enforcing this.