[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Web Services API: URL naming proposal



On Sun, Nov 20, 2011 at 8:02 AM, Nigel Titley <..hidden..> wrote:
> Sorry for the delay in reply... been off sick, back now
>
> On 18/11/11 13:52, Chris Travers wrote:
>> Figure i will wade in here.  Hopefully others will follow.
>>> 1. The base address mentioned by John was something like
>>> 'http://myledger.com/ledgersmb/store/'. However, if we assume that the
>>> login address of the 'http://myledger.com/ledgersmb/login.pl', there
>>> may be an issue with the '/store/' part. Can we support that on all
>>> servers, or does that not matter? Do we allow '/store.pl/' or any
>>> other URL? ie. do we not consider that part of the API, other than
>>> that it is a prefix?
>>
>> i don;t think that would be a problem. I don't like store though
>> because it is pretty unclear.  I would suggest a base path of:
>>
>> http://myhost/ledgersmb/webservices/company_name/
>>
>> Then http auth headers can be used for the rest.
>
> Why wouldn't we use http auth headers to select the "company" (I prefer
> company too, rather than store). Just asking, I don't have strong views
> either way.

I don't understand.  How would auth headers (or any other HTTP headers
other than cookie headers) supply this information?
>

Best Wishes,
Chris Travers