[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

REST made more concrete still


wsdl rest
I had a much better idea of how to do static service declarations (as
per IDL or WSDL) for REST web services:

http://www.prescod.net/wrdl.html

It reflects the underlying Web Architecture much more clearly than my
old proposal did. It is consequently simpler. 

It has first-class concepts of "resource", "representation", "method",
"input" and "output". Methods are HTTP methods like PUT, GET, DELETE,
YOURMETHOD. Inputs are like HTTP method inputs: headers, query params
and body (the URI is implied by the resource!). Outputs are like HTTP
outputs: status code, headers and body. Resources know what
representations they support and you can navigate from resource to
resource through hyperlinks without worrying about the XML or HTML
syntax of the representation (unless you want to). Following a hyperlink
is a type-safe operation.

That's about all the concepts in it.

A rough proposal for an API (Java-ish syntax to prove it isn't biased
towards dynamic languages) is provided. Everything is statically type
checked just as with IDL or WSDL. Of course in Python everything would
be done at runtime and thus save a build step.

When I implement it I think it will be a really cool tool. Until then, I
think it is a useful pedagogic tool for those working on REST Zen. If
*you* want to implement it before I get around to it, in whatever
language, please do. I'll work with you to clear up any fuzzy parts of
the spec.

 Paul Prescod

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.