users@jersey.java.net

[Jersey] Generating Rest client for rest easy GET and POST with same rest URL

From: nagaraj2707 <nagarajhegde.uvce_at_gmail.com>
Date: Wed, 15 Jul 2015 20:56:36 -0700 (MST)

Hi,

I wanted to generate client using Jersey plugin for an interface with GET
and POST method types looks as below:

 @GET
    @Path( "/{vnfdid}/{vnfdversion}/dataset" )
    @Produces( MediaType.APPLICATION_JSON )

@POST
        @Path("/{vnfdid}/{vnfdversion}/dataset")
        @Consumes("multipart/form-data")
        @Produces("application/json")

But when i generate the rest client using jersey plugin its not able to
generate. Since it uses the url to generate the methods, duplicate method
wont be created. It says already the same method name exists.

Could you please let us know is there any other way or appropriate solution
for this?

Regards,
Nagaraj



--
View this message in context: http://jersey.576304.n2.nabble.com/Generating-Rest-client-for-rest-easy-GET-and-POST-with-same-rest-URL-tp7583397.html
Sent from the Jersey mailing list archive at Nabble.com.