Hello,
I have just started using Swagger and am running into issues with the
generated client code not sending formdata parameters. The REST service
receives null instead of the value passed in.
I have a REST Service defined as:
@POST
@Produces("text/xml")
public Response post( @FormParam(value = "id") @ApiParam(required=
true, value = "Member ID") String id ) {
// some logic
}
I use the Swagger Codegen tool to generate a Java client for the service.
I used the generated client invoke the service:
String id = "1234588";
try {
api.doVHRXML(id);
}
catch (ApiException ex){
System.out.println(ex.getMessage());
throw ex;
}
I am using Codegen version 2.2.2 and swagger-jaxrs 1.5.0.
I have found some a similar post[1] that indicates that is it fixed in
Swagger-UI, but how about Codegen?
[1] - https://github.com/swagger-api/swagger-ui/issues/838
Thank you!
--
You received this message because you are subscribed to the Google Groups
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.