Last post May 27, 2020 06:53 AM by yij sun
May 22, 2020 04:09 AM|manoj629|LINK
I am having lot of swaggers at Git Repository , idea is to create a web application displaying the all the swagger under different categories and displaying swagger operation using Redoc.
Any idea to achieve this or any library which can read the swagger from gitlab , categorize and display on Web Page.
Any other approach of doing this will also be helpful . This will help me to avoid visiting gitlab repository every time to look at various swagger operations.
May 25, 2020 07:36 AM|yij sun|LINK
Accroding to your descriptions,I'm guessing that you want to display all of the swagger using redoc.
I suggest you could do:
1. Installing ReDoc.
2.Referencing redoc script in HTML.
3.Adding <redoc> element to your page.
More details,you could refer to below article:
May 25, 2020 08:24 AM|manoj629|LINK
I understood your point on rading yaml and displaying on HTML.
My requirement is I have 10 swaggers , i want to create dashboard displaying all the swagger with different categories.
May 26, 2020 08:05 AM|yij sun|LINK
Accroding to your description,could you tell us why you have 10 swaggers?Do you have 10 projects?
As far as I think,you could use @rebilly/swagger-combine to shallow-merge two or more swagger 2.0 specs into one.
May 26, 2020 08:09 AM|manoj629|LINK
Yes , we have 10 projects , so my dashboard should look like Project Name and Inside Project Name multiple swagger name and then display the swagger as HTML.
May 27, 2020 06:53 AM|yij sun|LINK
Accroding to your description,as far as I think,you could create swaggers for each projects,and then you need to get each swagger yaml file path to Consolidate into one page.
Just like this:
var apis = [
name: 'Google Calendar',