JAX-RS has annotations for HTTP verbs such as GET
(@GET
) and POST
(@POST
) but there is no @PATCH
annotation. How
JAX-RS API 2.0.1 doesn't have PATCH. But, looking at JAX-RS API 2.2-SNAPSHOT code, PATCH is now included. The code is:
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@HttpMethod(HttpMethod.PATCH)
@Documented
public @interface PATCH {
}
Here is the link.
You might use the same codes for remedy until 2.2 is out. For HttpMethod.PATCH, just replace it with "PATCH".