Search the web
Sign In
New User? Sign Up
rest-discuss · REST Discussion Mailing List
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
REST Resource Discovery   Message List  
Reply | Forward Message #3284 of 14029 |
RE: [rest-discuss] REST Resource Discovery

Roger,
 
I'm curious about the need for these extension headers you propose.  Isn't that what the OPTIONS method is for?  Shouldn't you be able to do an OPTIONS request on the resource itself and have whatever meta information returned?  That way there's no need for two resources with links back to each other.
 
- Jeff
-----Original Message-----
From: Roger L. Costello [mailto:costello@...]
Sent: Tuesday, January 21, 2003 2:11 PM
To: rest-discuss
Subject: Re: [rest-discuss] REST Resource Discovery

Hi Folks,

See here for a discussion of discovering a resource's metadata, and
vice-versa:

   http://www.xfront.com/dist-reg/distributed-registry.html

/Roger


"S. Mike Dierken" wrote:
>
> ----- Original Message -----
> From: "S. Alexander Jacobson" <alex@...>
>
> > Questions that I think need to be answered:
> > 1. How do you know what MIME-types one may POST or
> > PUT to a given resource?
> >
> > My proposal is that servers return accept-POST and
> > accept-PUT headers in response to GET requests,
> > however these headers are not actually defined
> > in any standard so perhaps there is another
> > approach.
>
> I would like a solution to this problem also, I think it would help promote
> REST oriented applications.
> There has been some discussion on this list in the past, here is a summary
> of the approaches I've heard:
>
> 1 Metadata within response content.
> This works for HTML, but isn't suitable for unforgiving content like JPG,
> GIF, PDF, MS-Word, schema-bound XML, etc.
> For a custom app with your own content types, you could use a <meta> or
> <head> element to provide the needed info.
> Ideally, the metadata would be available via a HEAD method as well, and this
> approach doesn't work with that.
>
> 2 Metadata within response headers
> This is your proposal, to have something like Accept-POST and Accept-PUT
> response headers for GET and HEAD.
>
> 3 Metadata in a separate resource known to original resource
> 3.1 Identified by response content
> The content can provide the location of the metadata, rather than the
> metadata itself. Same problems as #1 (doesn't work for all content types,
> etc.)
>
> 3.2 Identified by response header
> This would be a header something like Meta-Location and would be availble
> via GET or HEAD.
> Putting metadata in a separate resource allows for content negotiation to
> happen on the description of the resource, so we don't get stuck with not
> enough metadata in the headers.
>
> 4 Metadata in a separate resource but unknown to original resource
> This inverts the problem - you have the URL to a resource definition, but
> you don't know what the resources are that it applies to. However, you could
> explicitly list those resources, or provide a pattern that matches the URI
> of the resources the defintion applies to. If you gather enough descriptions
> you probably could do the lookup...
>
>
> To unsubscribe from this group, send an email to:
> rest-discuss-unsubscribe@yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/



To unsubscribe from this group, send an email to:
rest-discuss-unsubscribe@yahoogroups.com



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


Tue Jan 21, 2003 7:24 pm

kimberliewinter
Offline Offline
Send Email Send Email

Forward
Message #3284 of 14029 |
Expand Messages Author Sort by Date

Hi Folks, See here for a discussion of discovering a resource's metadata, and vice-versa: http://www.xfront.com/dist-reg/distributed-registry.html /Roger...
Roger L. Costello
costello@...
Send Email
Jan 21, 2003
7:11 pm

Roger, I'm curious about the need for these extension headers you propose. Isn't that what the OPTIONS method is for? Shouldn't you be able to do an OPTIONS...
Jeffrey Winter
kimberliewinter
Offline Send Email
Jan 21, 2003
7:24 pm

Roger, I'm curious about the need for these extension headers you propose. Isn't that what the OPTIONS method is for? Shouldn't you be able to do an OPTIONS...
jeffreywinter@...
kimberliewinter
Offline Send Email
Jan 21, 2003
7:44 pm

... From: <jeffreywinter@...> ... that ... request ... way ... Huh. I thought I looked at OPTIONS and it wasn't appropriate... don't know what I was...
S. Mike Dierken
mdierken
Offline Send Email
Jan 21, 2003
8:57 pm

... OPTIONS can report the allowed methods by responding with the correct "Allow" header for the resource. Nic Ferrier...
Nic Ferrier
nferrier_tap...
Offline Send Email
Jan 21, 2003
9:40 pm

... Interesting idea. RFC2616 is incredibly vague about exactly how you use OPTIONS. It is so vague so as to be unusable as is. That being said, I like the...
S. Alexander Jacobson
shop2it
Offline Send Email
Jan 21, 2003
8:59 pm

Hi Jeff, I am not clear on what you are expecting the HTTP OPTIONS method to return. For example suppose that this is the URL to a Web service resource that...
Roger L. Costello
costello@...
Send Email
Jan 21, 2003
9:09 pm

... Could you not return the link to the service in a "Location" header on the response? rfc2616 says: The Location response-header field is used to redirect...
Nic Ferrier
nferrier_tap...
Offline Send Email
Jan 21, 2003
10:52 pm

From: "S. Mike Dierken" <mdierken@...> ... Hmm... When the RFC says the response is not cachable, I am wondering if they have proxies, etc. in mind....
Seairth Jacobs
seairthjacobs
Offline Send Email
Jan 22, 2003
2:49 am

... I guess that's the point of OPTIONS, I don't know exactly what I'd get back. If it's a WSDL, there are tools that can parse it directly; if it's a text...
Jeffrey Winter
kimberliewinter
Offline Send Email
Jan 22, 2003
4:27 am

... This brings up a question, can you do content negotiation when doing OPTIONS? That way you could support multiple file formats for describing web services....
Joe Gregorio
JCGregorio
Offline Send Email
Jan 22, 2003
12:41 pm

According to the spec, yes: "The response body, if any, SHOULD also include information about the communication options. The format for such a body is not...
Jeffrey Winter
kimberliewinter
Offline Send Email
Jan 22, 2003
1:27 pm

Hi Jeff, I don't have a lot of time, but I'll make a few, quick comments. 1. Consider a movie. Is it worth seeing? If Gene Siskel gives it a "two thumbs up",...
Roger L. Costello
costello@...
Send Email
Jan 22, 2003
1:30 pm

... I think we are mixing two very separate concepts of metadata. One type of metadata describes the what or why of a resource. This class of metadata is...
S. Alexander Jacobson
shop2it
Offline Send Email
Jan 22, 2003
3:02 pm

... From: "Roger L. Costello" <costello@...> ... For some forms of metadata, you want the authoritative source to be the resource itself - like what the...
S. Mike Dierken
mdierken
Offline Send Email
Jan 22, 2003
5:31 pm

OPTIONS requests can respond with a "303 See Other" which could point to a cacheable stand-alone, metadata document. ... From: Seairth Jacobs...
Jeffrey Winter
kimberliewinter
Offline Send Email
Jan 22, 2003
5:44 pm

Hi Alex, ... I believe that you are missing my point. Let me quote David Jacobs: "Metadata about a web service goes beyond a WSDL file, XML Schemas and a ...
Roger L. Costello
costello@...
Send Email
Jan 22, 2003
6:16 pm

Why not access all of the various functionality of a service by specifying different ACCEPT values on the request? So, if I want the service's response in XML...
Jay Zylstra <jayz@...>
jwzylstra
Offline Send Email
Feb 14, 2003
3:24 am

Hi Mike, ... If I understand you correctly, you are saying that a Web service should have an "authoritative service description". I agree! The Meta-Location...
Roger L. Costello
costello@...
Send Email
Jan 22, 2003
6:27 pm

MessageTrue, but I'm not seeing how this relates to my comments below... ... Seairth Jacobs seairth@... ... From: Jeffrey Winter To: Seairth Jacobs ;...
Seairth Jacobs
seairthjacobs
Offline Send Email
Jan 22, 2003
7:06 pm

Sorry, what I meant was that if there was some concern that since OPTIONS can't be cached and it would be possible that the metadata could be out of date by...
Jeffrey Winter
kimberliewinter
Offline Send Email
Jan 22, 2003
7:50 pm

... the ... are. ... should ... Instead of introducing a new header for this, couldn't you just stick with the standard OPTIONS method? If you have one...
Jeffrey Winter
kimberliewinter
Offline Send Email
Jan 22, 2003
8:11 pm

MessageTrue. However, I feel that the caching limitation only applies to intermediaries. Otherwise, the verb would be practically useless. You could...
Seairth Jacobs
seairthjacobs
Offline Send Email
Jan 22, 2003
9:10 pm

... It is only non-cacheable by default. Use cache-control to change that. The Web had a notion of external links, but nobody could agree on the HTTP syntax...
Roy T. Fielding
roy_fielding
Offline Send Email
Jan 22, 2003
10:31 pm

Ahh! That all makes sense. However, I don't know that I would agree that the added header would increase latency since it would be an optional header. The...
Seairth Jacobs
seairthjacobs
Offline Send Email
Jan 23, 2003
2:43 am

Hi Jeff, ... "standard OPTIONS method"? There is no such thing. Don't be under the illusion that you are using something "that already exists". You are ...
Roger L. Costello
costello@...
Send Email
Jan 23, 2003
7:19 am

Roger, ... the ... is ... I completely agree that very, very few, if any, are using OPTIONS in this way currently; but the same could be said of the headers...
Jeffrey Winter
kimberliewinter
Offline Send Email
Jan 23, 2003
5:30 pm

Roy, I noticed in your WAKA ApacheCon presentation that you discuss the ability to include metadata about the resource and representation along with the...
Jeffrey Winter
kimberliewinter
Offline Send Email
Jan 23, 2003
5:34 pm

... Yes, it includes external links with role attributes. It also allows metadata to be interleaved with the response data, thus removing the issue regarding...
Roy T. Fielding
roy_fielding
Offline Send Email
Jan 23, 2003
6:18 pm

... There are two basic issues, the most fundamental of which is that the metadata should be a standalone resource with it's own URI so that all normal HTTP...
Jeffrey Winter
kimberliewinter
Offline Send Email
Feb 14, 2003
2:03 pm
 First  |  |  Last 
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help