Activity › Forums › Salesforce® Discussions › Name important annotations used in JAX-RS API in Salesforce
Tagged: Annotation, JAX-RS, Salesforce APIs
-
Name important annotations used in JAX-RS API in Salesforce
Posted by suniti on July 11, 2018 at 1:24 PMName important annotations used in JAX-RS API in Salesforce
shariq replied 7 years, 8 months ago 4 Members · 3 Replies -
3 Replies
-
Hello Suniti,
Some of the important JAX-RS annotations are:
@Path: used to specify the relative path of class and methods. We can get the URI of a web service by scanning the Path annotation value.
@GET, @PUT, @POST, @DELETE, and @HEAD: used to specify the HTTP request type for a method.
@Produces, @Consumes: used to specify the request and response types.
@PathParam: used to bind the method parameter to path value by parsing it.Thanks.
- [adinserter block='9']
-
@Path: used to get the URI of a web service by scanning the Path annotation value.
@GET, @PUT, @POST, @DELETE, and @HEAD: used to specify the HTTP request type for a method.
@Produces, @Consumes: used to specify the request and response types.
@PathParam: used to bind the method parameter to path value by parsing it.Thanks.
-
Hi,
I found this online :-
- The @Path Annotation and @PathParam
- The @QueryParamter Annotation
- The @Produces Annotation
- The @Consumes Annotation
- The @FormParam Annotation
- The @MatrixParam Annotation
- The @CookieParam Annotation
- The @HeaderParam Annotation
- The @Provider Annotation
Hope this helps.
Log In to reply.