Orange-OpenSource / angular-swagger-ui

An angularJS implementation of Swagger UI
http://orange-opensource.github.io/angular-swagger-ui/
MIT License
135 stars 74 forks source link

Swagger UI page unresponsive for large swagger json #94

Closed nijinillath closed 5 years ago

nijinillath commented 6 years ago

Hi Team,

I have the swagger json with multiple complex model elements and services collectively sized almost 1.7MB. The swagger generated code is in jersey 2.0. I am using the latest angular-swagger-ui which is deployed with my server under webapps, but while loading the services from swagger ui the ui page is getting unresponsive, is there any performance improvement can be done for larger swagger json ?

Thanks

mathieuales commented 6 years ago

Hi ! Do you mind giving an access to your swagger json so i can see what's happening? Regards

nijinillath commented 6 years ago

Sure @mathieuales As this is hosted in a secured proxy server, is there any way i can share this modified json file via email or other options ?

mathieuales commented 6 years ago

You can attach files to github comments using drag'n'drop

nijinillath commented 6 years ago

Hi @mathieuales , Sorry for the delay in the response.

Attaching the swagger json we are facing performance issue specifically while loading services having complex models elements like "/complete" , "/rates".

swagger.txt

Thanks in advance..

mathieuales commented 6 years ago

Hi! Unfortunately there is not much to do, your models are very huge!! I tried different things and got it a bit better but nothing acceptable. Generating samples and models takes time and generates large HTML which takes time to render with angularJS. The result is the same or maybe worse using official swaggerUI as it is unable to render models. My advise is you should maybe consider redesigning your API as exposing such huge models does not seem to be a good pratice. Regards

mathieuales commented 5 years ago

duplicate of #77