Activity Forums Salesforce® Discussions Name important annotations used in JAX-RS API in Salesforce

  • Avnish Yadav

    Member
    August 2, 2018 at 12:41 pm

    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.

  • Parul

    Member
    September 15, 2018 at 5:09 am

    @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.

  • shariq

    Member
    September 16, 2018 at 9:46 am

    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.

Popular Salesforce Blogs

Popular Salesforce Videos