In the last blog we discussed different types of caches and their use cases.
In this post we will explore how we can leverage caching using HTTP response headers and the support provided by JAX-RS.
Read More »
Tag: REST
Using verbs apart from HTTP verbs(PUT/POST..) in REST URL
As per REST, the URLs should make use of HTTP verbs to expose their REST based services via HTTP. (i.e GET/PUT/POST/DELETE)
So, a resource would be something like
GET ../foods/1 would get you the food with id 1. PUT ../foods/2 would update the food with id 2. POST ../foods will add a new food. DELETE ../foods/1 will delete the food resource with id 1.</span>
But in a real life complex application, we are faced with exposing many services such as approve, reject where it becomes inevitable to add verbs to the URL. What should we do? Should we just have the URLs like ../foods/1/approve ?
What would go wrong if we use verbs in REST URL.
Whether there is some rationale behind it or it just REST dogma..
Apparently, there is :
Read More »
Create RESTful app using JAX-RS
Today we are going to discuss few of the strategies which can be used to make RESTful applications in JAVA.
Introduction :
JSR 311 also called as JAX-RS; is the Java Specification for RESTful web services. The few of the major vendors which implement JAX-RS are :