So, trying to catchup with many replies to the REST thread...
+1 on DAS supporting all data access on the REST service side...
Also, trying to get a summary of points here, we are saying
1.We need to provide a REST binding for SCA
2.We would provide a REST service using DAS/SDO and the SCA REST binding
would consume this REST service
3.We would probably create a sample app that would show the usage and
binding of all these (and we need a scenario here)
I could definitely help with 2 and 3... also, I'm finishing up a DAS sample
that, with little change could be transformed as the REST service similar to
what was mentioned by Kevin... (should be in the trunk in the next day or
so)
- Luciano
On 8/23/06, Kevin Williams <[EMAIL PROTECTED]> wrote:
> <snip>
> In the client:
> customers.get("http://my.customer.database.com/customers/1234");
> returns an instance of the Customer XSD complex type
> customers.put("http://my.customer.database.com/customers/1234",
> customerDataObject) updates customer 1234 with a Customer instance.
> customers.get("http://my.customer.database.com/customers/") returns a
> list of URIs to the customers.
>
> On the server, the CustomerResource component implements the Customer
> resource management verbs:
> class CustomerResource {
> DataObject get(string uri);
> void post(string uri, DataObject customer);
> void put(string uri, DataObject customer);
> void delete(string uri);
> list<string> list(string uris);
> }
>
> Also, I was thinking that somehow our REST work should tie in with the
> DAS work that we're doing in Tuscany.
>
> Thoughts?
<snip>
I have spent a little time thinking about DAS and REST ... no epiphany
so far. Some RDB vendors offer URL access to relational data with an
option to return results as xml with something like this:
http://localhost/myDatabase?sql=SELECT+firstname,lastname+FROM+employees+FOR+XML+AUTO
So, this seems quasi-restful although what is returned is really the
results of a query rather than a resource. I suppose this would be more
restful and similar to Sebastien's example if the get returned a list of
urls of Employees that satisfied the query.
I am not sure we would want to embed SQL in the URL but it also does not
seem to make much sense to invent a new query language. Without a
fairly sophisticated query language, how could a client retrieve a graph
of results like: Customers-Orders-LineItems? I am starting to ramble.
I need to think about this a bit more.
--Kevin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
-----------------------------------------------------
Luciano Resende
SOA Opensource - Apache Tuscany
-----------------------------------------------------