swagger-ui icon indicating copy to clipboard operation
swagger-ui copied to clipboard

how to render Swaggercollection using 2.1.4 verson

Open siddamreddy opened this issue 9 years ago • 4 comments

When reporting an issue, please provide the following details:

  • swagger-ui version V2.1.4
  • a swagger file reproducing the issue--New requirement. swagger collection below is sample one. { "info" : { "version" : "12.0.12", "application" : "Infor App1", "title" : "Infor App1 swagger collection" }, "entityType" : "BusinessObject/OperationID", "entityName" : "Business Object/OperationID", "paging" : { "total" : "7000", "pageSize" : "10", "pageNumber" : "1" }, "swaggerCollection" : { "swagger" : [{ "entity" : "AirportCode", "category":"defined", "swaggerEndpoint" : "/airportcode", "desc":"AirportCode" }, { "entity" : "AMSpecificPlanHR", "category":"defined", "swaggerEndpoint" : "/AMSpecificPlanHR", "desc":"AMSpecificPlanHR" }, { "entity" : "AirportCode3", "category":"custom", "swaggerEndpoint" : "/airportcode3", "desc":"AirportCode3" }, { "entity" : "AirportCode4", "category":"custom", "swaggerEndpoint" : "/airportcode3", "desc":"AirportCode3" } ] } }

I want render in UI like below

image

operation Description category Documentation

siddamreddy avatar Aug 01 '17 15:08 siddamreddy

If you want to render the UI in a completely different structure, you'd need to modify the code yourself to do so. Otherwise, I don't understand what you're asking.

webron avatar Aug 01 '17 16:08 webron

I am expecting some sample articles how to render swagger collection using above sample. i can modify the code according to above structure.

Here my main question is how to render swagger collection? any samples provided it would be great

siddamreddy avatar Aug 01 '17 16:08 siddamreddy

I'm not familiar with specific articles. The version you're using is also a lot harder to customize. You're better off dealing with the latest version.

webron avatar Aug 01 '17 16:08 webron

Closing due to inactivity.

This is simply to keep our issue tracker clean - feel free to comment if there are any further thoughts or concerns, and we'll be happy to reopen this issue.

shockey avatar Aug 07 '17 21:08 shockey