Next: REST Web Service via Servlet Up: Lecture 23 Previous: REST Web Services
REST Web Service Example
Directory manager web service could let users
|add||new resources/directories to existing directories|
|delete||resources/directories in these directories|
|fetch||individual resources in these directories|
|list||resources in directories served by web server|
REST style applications would support these operations using HTTP.
|DELETE||delete resource/directory among web server documents|
|GET||fetch resource or listing of a directory|
|PUT||add directory or resource to web server document space|
2nd generation web service passes data as XML not as HTML.
Friendly service would support dual use by
Directory listing for service's resources in XML might be
giving folders/files in tomcat-docs/config/ in tomcat's webapps/ folder.
|Lecture 23||XHTML 1.0||Slide 5|