Skip to content

Instantly share code, notes, and snippets.

@hamoungh
Last active August 29, 2015 14:14
Show Gist options
  • Save hamoungh/3e297378ff8d5079e6df to your computer and use it in GitHub Desktop.
Save hamoungh/3e297378ff8d5079e6df to your computer and use it in GitHub Desktop.
projects
document describing what the system does
what the system does
example:
online quiz:
instructor can login
http://quiz.com/
instructor creates a quiz for the class
student tries the quiz
servive endpoints:
GET http://quiz.com/course/
will return list of courses
<courses>
<course id="22">
<name>java</name>
</course>
</courses>
get http://quiz.com/course/{id}
returns detail of course {id}
http://quiz.com/course/22/quiz
list of services that you are going to implement
jax-rs as another way of implementing the services
lab on this (we are going to implement a couple of services)
++++++++++++++
put,post,get,delete
rule: get request usually do not
change the state of a resource
get /course
(listing things)
get /course?startIndex=0&size=5
lists a set of specific courses
get /course/22
(getting the detail of a specific course)
put /course/22 + xml doc that provides details for the course
(updates the resource)
post /course + xml doc that provides details for the course
(creates a new course and returns an xml + generated url for that course )
put /course/22 + xnl with property cancelled=true
post /course/22/cancel
++++++++++++
http://stackoverflow.com/questions/96059/what-are-the-relative-advantages-of-xmlencoder-and-xstream
http://stackoverflow.com/questions/6035223/eclipse-web-xml-editor
http://marketplace.eclipse.org/content/jboss-tools-luna
https://www.youtube.com/watch?v=qmEVsUJh2d8
http://localhost:8080/jaxtest/rest/
monday,wednesday,saturday
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment