cytoscape / cyREST

Core App: REST API module for Cytoscape
https://github.com/cytoscape/cyREST/wiki
MIT License
30 stars 13 forks source link

Update Swagger UI #42

Open dotasek opened 6 years ago

dotasek commented 6 years ago

The Swagger UI hasn't been updated to the latest release, primarily because their paragraph formatting is inconsistent in the ApiOperation notes annotation.

However, after some haphazard rooting around in their css, I found a workaround: First, find this block in the css:

.swagger-ui .opblock-description-wrapper p,.swagger-ui .opblock-external-docs-wrapper p,.swagger-ui .opblock-title_normal p

Within the definitions following, instead of the default margin:0 value they have, put something to the tune of margin-bottom:10px. This appears to restore normal paragraph spacing.

Since the new Swagger UI supports many cool features that would be really helpful to users, CyREST should import the new Swagger UI dist.