One of the reasons for adding this, is because there was a huge lack of POST/PUT/DELETE/HEAD examples out there, and I thought I should do my part. Although the principles are the same as with GET.
I've been at it for some time now, and for some reason there always seem to be one or two things that go wrong when creating a new REST Service, even though I've created a working REST Service not two days ago. That in itself is kind of frustrating.
Check out Japod's Blog for starters. In order to use more complicated Data Structures in REST, these need to be defined in a derivative of the JAXBContext class.
Personally, I really don't understand why that same cannot be done using simple Annotations, but that's just me.
Then there's the security issue. How to see who the person is that is accessing the webservice. Luckily, I found me some help here.
There seems to be some confusion regarding the mapping of the HTTP calls3, which I've tried to put in the picture above.
Updated 14/09/2014.
References
- [1] Why PUT and DELETE?
- http://www.artima.com/lejava/articles/why_put_and_delete.html
- [2] rfc2616
- http://www.ietf.org/rfc/rfc2616.txt
- [3] Wikipedia - Representational state transfer
- http://en.wikipedia.org/wiki/Representational_state_transfer#Architectural_constraints
No comments:
Post a Comment