Re: [rest-discuss] Resources with read-only and read-write parts
On Jul 6, 2009, at 11:42 AM, mike amundsen wrote:
> Keeping in mind that a proliferation of custom media types limits the
> usability of a system, I tend to lean on the side of URIs when
> identifying
> interesting items.
I don't blame custom media types for that. Proliferation of custom
means of expressing semantics limits the usability of the system. A
media type is one of the ways of expressing semantics.
However, this is a contradiction in itself, since most non-browser
applications have custom/non-standard semantics that do not completely
fit standard definitions.
Hi, everyone, I'm a newbie here (though not to REST in general), and the list archives have been a great help in clarifying my understanding of a lot of REST...
Jim, Typically you would express the overall writeability of a resource via OPTIONS (e.g. if you can only GET it's read only), but if you've got, say, a ...
Representations in a request (e.g. PUT or POST) and representations in a response (e.g. GET or a PUT) need not be absolutely the same. HTTP servers are not...
... The way I read the RFC is "*The PUT method requests that the enclosed entity be stored [as is] under the supplied Request-URI*", which is obvious for ...
Well, the "[as is]" isn't actually part of the RFC. The body of the PUT request is simply a *representation* of the state. Consider a resource that could...
On Mon, Jul 6, 2009 at 7:51 PM, Moore, Jonathan (CIM) < ... Right, which is why I said "The way I read the RFC is..." ... Which brings me to a question I...
Sounds like the fingerprint, portrait, and scan could all be subordinate resources. Maybe http://example.com/person/123 returns an HTML or XML document with...
On Mon, Jul 6, 2009 at 8:38 PM, Moore, Jonathan (CIM) < ... resources. Maybe http://example.com/person/123 returns an HTML or XML document with several links...
... I don't blame custom media types for that. Proliferation of custom means of expressing semantics limits the usability of the system. A media type is one of...
I agree with the inefficiency (it is an inconvenience, to be accurate) part. That is why, there is no need to require clients to supply the immutable parts....
I'll certainly admit to my thinking being influenced by past schema-driven projects. I suppose I've also been thinking of GET/PUT formats being the same as a...
I worked on one project where the OPTIONS call returned documentation for that URI. This document detailed the methods, accept-types (GET), content-types (POST...
Jim: I am addressing the security portion of your post. Hopefully this will give you some ideas. <snip> there are some elements that are modifiable or not...
The most complicated resource of this type is an Administrator account. The current representation is: <admin> <uid>{id}</uid> <status>{status string}</status>...
Hey Jim, ... IMO, you seem to be confusing between the state of the resource and its representation. GET and PUT allow you to retrieve and set the state of the...
Sandeep Shetty
sandeep.shetty@...
Jul 4, 2009 10:03 pm
Ah. That makes a lot of sense, but I don't think I've seen it expressed that way before. Are there content-type definitions that make that explicit? (I suppose...
Hey Jim, ... A form (POST) that accepts only the values that represent the state of the resource is one way to make it explicit (sigh... if only I could say...