We have had an api “swagger-to-apimodel” .. with 4.16.05 version of developer portal it is not working. its creates a model but when I try open it on developer portal it give error and does not render properly.
Step before calling this API is to generate swagger for proxy, using api-to-swagger.
For your reference I have attached the swagger-to-apimodel proxy.
Working on the support ticket, we found that this issue was specific to API models created via the API call and the ones that were created via the UI worked fine. The error logged indicated the problem to be due to a missing template. The workaround is to upload the template after the API model is created. API call to do this would be :
This has solved the problem I had. So the steps are now 1. call api to generate swagger..2. second api to generate model…3. api to call add template to newly created model.