I have a method that requires both formData and path parameters. How can I set the data in the request?
I am using swagger-js v2.
Let's say the example below requires 3 parameters:
ResetPassword
is a path parameterpassword
is a formData parameterrepeat_password
is a formData parameter
swagger_client.apis.users.resetPassword(<HELP!!>,
function(response) {
// success
}, function(err) {
// failure
});
I'm not sure if this is still relevant for you but I stucked at the same problem and found a solution.
Define your parameter object like this:
then call with