Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Swagger UI page unresponsive for large swagger json #94

Closed
nijinillath opened this issue Sep 25, 2018 · 6 comments
Closed

Swagger UI page unresponsive for large swagger json #94

nijinillath opened this issue Sep 25, 2018 · 6 comments

Comments

@nijinillath
Copy link

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
Copy link
Collaborator

mathieuales commented Oct 1, 2018

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

@nijinillath
Copy link
Author

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
Copy link
Collaborator

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

@nijinillath
Copy link
Author

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
Copy link
Collaborator

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
Copy link
Collaborator

duplicate of #77

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants