Hi, I'm creating a RESTful web service (actually AtomPub). ../projects/ returns an Atom feed ../projects/{project} returns an Atom entry with a DOAP...
Erling, You could simply encode the doap:homepage address, e.g. .../projects/http%3A%2F%2Fexample%2Ecom%2Fprojectname or if you prefer something more opaque,...
For my AtomPub client (which tries to be a RESTful web service itself; it's kind of a proxy that bridges application/x-www-form-urlencoded and ...
Brendan Taylor
whateley@...
Aug 2, 2008 7:10 pm
11100
... Aah, I hadn't thought about that - keep it simple =) ... That keeps the urls a bit shorter, which is good, but I'm wondering, can a client deduce the...
... Hi, Thanks for the example, I don't think that would work so good for my service as I would like to have URLs like projecs/{project-url}/repositories ...
Erling, ... No, in general they cannot. Most hash functions are intended to be preimage-resistant, which means that one of their goals is that given hash(X)...
... That is what I suspected. I'll start with encoding my URLs with the application/x-www-form-urlencoded MIME format then. Thanks a lot guys, - Erling ... --...
I got asked an interesting question a while back, for which I did not have a snappy answer - why aren't html forms a basis for an API? Other than the early...
... Bill> I got asked an interesting question a while back, for which I Bill> did not have a snappy answer - why aren't html forms a basis Bill> for an API?...
I guess I am puzzled by the question a bit. An HTML form is just a server-supplied hypermedia, and I don't see how the form itself can be an API. Does it...
... Because forms are expressed using HTML, and HTML deals with presentation and content, which is clearly different from what APIs are about. Now, before we...
Better than "API" is a scheme to populate certain well known form fields, as they do in [1]. I always thought Atompub should have done that [2]. [1]...
... Oh, I think that's what you meant by "well known query params". Well, I can't say why there hasn't been more uptake, but my browser does know how to...
... Blog entries consist of up to 4 or so unstructured text blobs. That’s not very hard to do with `application/x-www-url-encoded`. For data that’s...
... When the query params are well known, what do you need the form for? You really only need an annotated link, like a `rel` attribute on a generic link...
... Easy integration with a lot of deployed software. ... And also the essence of opensearch, if I understand you properly. ... My suspicion is that it's to a...
... This is one thing I'm wondering about - the tradeoff between domain specific posting protocols and a generic carries-anything one like AtomPub. It seems in...
... If you mean that browsers are the deployed software, true, and that's the intent of hypermedia where the server itself is providing the forms. Once the...
... If it already exists and is widely used, why not extract it? I think it would be closer to microformats: looking at common use cases that are already out...
... Indeed forms cannot solve all the problems, but they do solve a large number of problems very well. That's how I understood Bill's question, and the...
Hi all, I'm curious to know what are doing to allow clients to request different views of a resource? For example, say I had this resource: /team/cubs I'd...
... These are different representations of the same resource, and this use case is better addressed via content negotiation (i.e. via Accept headers). You may...
... Do both. When the parameter is present, use it to select the media type. When it is not, then fall back to standard conneg. A reasonable way to think...
... If you have time, I agree with Justin, and ideally you define a ladder (as some frameworks do for making locale decisions). HTTP Accept doesn't always...
... Another reason, if you have a CSV (or JSON or XML or whatever) view and you know the URL you can check out the output with your Web browser (or curl or...
one thing to keep in mind is that the 'parameterized' URLs are now new items in any cache. That means *invalidating* the /team/cubs?view=csv URL will not...