11. Why REST?
When compared to SOAP
(Simple Object Access Protocol),
REST is considered:
lighter weight
easier to use (for the most part)
more flexible
12. REST basics
App architecture style
HTTP request-response model
hence web focused
REpresentational State Transfer
Supports HTTP methods:
GET, POST, PUT, DELETE, OPTIONS
Returns data in different formats
JSON, text, XML, etc.
18. Considerations
"/rest" mapping
can change this by revising the context path for the REST
servlet in web.xml
Metadata in CFCs
Advocates: truly REST
Critics: verbose, confusing
19. Natively available in Railo 4+
Uses separate servlet to run REST
Register your RESTful services
register/manage RESTful aspects in
CFC via metadata