I`m trying to convert an OpenAPI specification to a postman collection using spring boot. So, is there a library or a code segment which I can use to do this task? I searched about this but I found none.
I did this earlier using an npm library. I'll put the code segment below.
var Converter = require('openapi-to-postmanv2'),
openapiData = fileReader.result;
Converter.convert({ type: 'string', data: openapiData },
{}, (err, conversionResult) => {
if (!conversionResult.result) {
console.log('Could not convert', conversionResult.reason);
}
else {
console.log('The collection object is: ', conversionResult.output[0].data);
}
}
);
source: https://www.npmjs.com/package/openapi-to-postmanv2
I need help to do this using spring boot