tag:blogger.com,1999:blog-11807812.post111567895786435751..comments2023-05-29T08:58:13.381-04:00Comments on Recycled Knowledge: ResedelJohn Cowanhttp://www.blogger.com/profile/11452247999156925669noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-11807812.post-60124490151503674052007-03-14T11:02:00.000-04:002007-03-14T11:02:00.000-04:00Hi all,Not sure whether this is of any interest no...Hi all,<BR/><BR/>Not sure whether this is of any interest now, anyway, I have tried to describe the Yahoo news search with Resedel. Probably there are some bugs in the description, however, given the rather minimalistic docs, I did what I could...<BR/><BR/><I><BR/><?xml version="1.0" encoding="UTF-8"?><BR/><resedel version="0.2" xmlns="http://www.ccil.org/~cowan/resedel/ns"><BR/> <type id="Yahoo Search"<BR/> flavor="xsd"<BR/> href="http://search.yahooapis.com/ [...] /V1/NewsSearchResponse.xsd"<BR/> /><BR/> <service id="News Search"<BR/> uri="http://search.yahooapis.com/NewsSearchService/V1/newsSearch"<BR/> operation="read"<BR/> ><BR/> <request soap="false"><BR/> <parameter name="appid" /><BR/> <parameter name="query " /><BR/> <parameter name="type" default="all" /><BR/> <parameter name="results" typref="xsd:integer" default="10" /><BR/> <parameter name="start" typeref="xsd:integer" default="1" /><BR/> <parameter name="sort" default="rank" /><BR/> <parameter name="language" /><BR/> <parameter name="site" default="" /><BR/> <parameter name="output" default="xml" /><BR/> <parameter name="callback" /><BR/> </request><BR/> <response><BR/> <language uri="urn:yahoo:yn"><BR/> <schema flavor="xsd" root="ResultSet" href="NewsSearchResponse.xsd" /><BR/> </language><BR/> <fault name="Bad Req" status="400" /><BR/> <fault name="Forbidden" status="403" /><BR/> <fault name="Service Unavailable" status="503" /><BR/> </response><BR/> </service><BR/></resedel><BR/></I>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-11807812.post-1115814837769381082005-05-11T08:33:00.000-04:002005-05-11T08:33:00.000-04:00Hi,I think the abstraction between the operation (...Hi,<BR/><BR/>I think the abstraction between the operation (CRUD) and the HTTP method is not necessary. It can even become not best-practice HTTP. Like the other comment says: PUT is like InsertOrUpdate and POST is flexible to <BR/>make a partial update (for examle to update a collection by inserting an element). So I would prefer to directly declare the HTTP method to use instead of CRUD.<BR/><BR/>OlliAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-11807812.post-1115764350886772722005-05-10T18:32:00.000-04:002005-05-10T18:32:00.000-04:00Tim: The example is on its way. Naturally, I'm go...Tim: The example is on its way. Naturally, I'm going to steal yours (and maybe Norm's too) and rewrite it.<BR/><BR/>Mike: I avoided using HTTP methods because sometimes you have to use POST to do what's underlyingly a read, for mechanical reasons to do with maximum URI lengths. I don't follow the distinction you're making here: can you explicate further to help me out?<BR/><BR/>wolf550e: Yes, it's a joke, and not even my joke. The credit goes to Jeff Rafter, when I told him I was looking to merge Tim and Norm (meaning their languages, of course).John Cowanhttps://www.blogger.com/profile/11452247999156925669noreply@blogger.comtag:blogger.com,1999:blog-11807812.post-1115740944502507282005-05-10T12:02:00.000-04:002005-05-10T12:02:00.000-04:00It's Norm Walsh and Tim Bray, or is that some kind...It's <B>Norm</B> Walsh and <B>Tim</B> Bray, or is that some kind of in-joke?Wolf550ehttps://www.blogger.com/profile/01589558437133485141noreply@blogger.comtag:blogger.com,1999:blog-11807812.post-1115704390371094412005-05-10T01:53:00.000-04:002005-05-10T01:53:00.000-04:00The differences between create/update in a CRUD mo...The differences between create/update in a CRUD model and post/put in a REST model is confusingly conflated in this description language.<BR/><BR/>The CRUD model assumes the client knows the past state of the server and chooses create or update accordingly - clients send requests to perform a particular action. <BR/><BR/>The REST model does not assume the client knows the state of the server, but the client knows the desired state of the server - clients send requests to set the state of a resource.<BR/><BR/>Some SQL systems use 'upsert' to support clients managing data without needing to know the current state of the server - that operation is equivalent to 'put' in a REST model.Mike Dierkenhttps://www.blogger.com/profile/02406913273929110651noreply@blogger.comtag:blogger.com,1999:blog-11807812.post-1115682248926103592005-05-09T19:44:00.000-04:002005-05-09T19:44:00.000-04:00I can't construct instances from schemas in my hea...I can't construct instances from schemas in my head. How about some examples? -TimAnonymousnoreply@blogger.com