-
Notifications
You must be signed in to change notification settings - Fork 181
Generated file upload api takes MimeMultipart instead of FormDataMultipart #105
Comments
This said I don't think the |
Hi, @sumveds As @ddossot has said, generator should produce But you can make it produce whatever you want by means of so called Generator Extensions. First, create a class similar to the following one:
Then add this class as an extension to the generator plugin configuration iside
Please, pull the latest commits from 1.3.4-SNAPSHOT and make sure that your extension class is passed into the plugins classpath. Regards, |
Sorry for the late response. Do I also need to add a dependency in my pom file? I am unable to find the below classes in the classpath:
I am trying to write this custom extension class in my project itself. Is this way correct? Regards, |
Hi, @sumveds Does the project which contains your extension has the folowing dependency:
? Regards, Konstantin |
Changing Regards, |
My plugin configuration looks something like below:
|
This is how my photo upload API spec looks like:
When I run the raml-to-jaxrs plugin, it generates the interface which takes MimeMultipart as the body object.
When I run fire this api from the client, then it gives me 415 Unsupported media type response and the following is the exception:
Is it possible to generate interface method with FormDataMultipart instead of MimeMultipart?
Regards,
Sumved
The text was updated successfully, but these errors were encountered: