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
version as query option or encoded in URI
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
  3 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
 
Farrukh Najmi  
View profile  
 More options Nov 15 2007, 10:11 am
From: "Farrukh Najmi" <farrukh.n...@gmail.com>
Date: Thu, 15 Nov 2007 10:11:26 -0500
Local: Thurs, Nov 15 2007 10:11 am
Subject: version as query option or encoded in URI
Another FAQ is how to indicate service version desired by a client in
a client request.

Should it be encoded in the path of the URL as in:

/acme/search/1.0?keywords=foo;bar

or should it be an option within the URL as in:

/acme/search?keywords=foo;bar&version=1.0

Is one better than the other and if so why?

--
Regards,
Farrukh


 
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.
Frank Steggink  
View profile  
 More options Nov 16 2007, 10:55 am
From: Frank Steggink <fstegg...@gmail.com>
Date: Fri, 16 Nov 2007 07:55:08 -0800 (PST)
Local: Fri, Nov 16 2007 10:55 am
Subject: Re: version as query option or encoded in URI
On Nov 15, 10:11 am, "Farrukh Najmi" <farrukh.n...@gmail.com> wrote:

The query string is meant to act as a filter on the data. Since the
version parameter is not used for this purpose, but to determine which
service should be accessed, the version can better be encoded in the
URL path. IIRC, this is also done in "RESTFul Web Services".

A version parameter in the query string would be more suitable if you
have different versions of data in the same dataset, and you want to
get a snapshot of a certain moment, or something similar. (This is
like the featureVersion parameter in a WFS-GetFeature request.)

Does it matter to the client which version should be accessed? Is the
interface of version 2.0 different than version 1.0, and no longer
backwards compatible? When you need to distinguish between multiple
versions, it is maybe better to set up some kind of Capabilities
document, in which URL's (resources) are given to the different
versions. This will probably be useful if you need to do version
negotiation. Perhaps it's interesting to discuss how an OpenSearch
description document can be extended this way.

Frank


 
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.
Sean Gillies  
View profile  
 More options Nov 17 2007, 10:55 am
From: Sean Gillies <sean.gill...@gmail.com>
Date: Sat, 17 Nov 2007 08:55:02 -0700
Local: Sat, Nov 17 2007 10:55 am
Subject: Re: [Geo-Web-REST] version as query option or encoded in URI

Farrukh Najmi wrote:
> Another FAQ is how to indicate service version desired by a client in
> a client request.

> Should it be encoded in the path of the URL as in:

> /acme/search/1.0?keywords=foo;bar

> or should it be an option within the URL as in:

> /acme/search?keywords=foo;bar&version=1.0

> Is one better than the other and if so why?

If search were the only resource, there wouldn't be much difference. If
you had several related resources it would be sensible to collect them
under a version, to simplify description and linking if for no other reason.

Cheers,
Sean


 
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 »