How to provide a file with json data to api2swagger

@Anil

Hi,

We have a very big complex json data as request payload. As data may be having spaces, manually editing the content to escape special characters and removing spaces is becoming difficult.

Could you please let us know if there is a way we can input the file containing json payload to api2swagger?

Curl accepts --data-binary command to send the json payload in the file as input.

0 2 292
2 REPLIES 2

I tried specgen. Since we are trying to generate spec for backend api ( not opened for public) , we are unable to invoke the API to generate the specs.

Also, for one public API we tried specgen. It generated specs successfully but in View Docs tab, when we tried "Try now" by providing correct values, response code shows -1 and response content as "no content".

Is there a way to install this (similar to api2swagger) in local and generate the specs?