Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the Swagger UI #292

Closed
0zAND1z opened this issue Jan 29, 2019 · 3 comments · Fixed by #435
Closed

Update the Swagger UI #292

0zAND1z opened this issue Jan 29, 2019 · 3 comments · Fixed by #435
Labels

Comments

@0zAND1z
Copy link

0zAND1z commented Jan 29, 2019

Hi team,

CONTEXT: This is one of those feature requests that focuses on the small things that makes Swagger perfect tool for documenting APIs..

PROPOSAL: As we know, https://petstore.swagger.io/ now has an updated Swagger UI. Can we migrate our current UI screen from this
image

to that

image

?

Would also love to know if I can contribute for the same.. Just need some directions on changing the Swagger UI boilerplate code..

Looking forward to your response. Cheers!

@pei0804
Copy link
Member

pei0804 commented Mar 20, 2019

Yes. You can change to new UI.
eg: https://github.com/swaggo/gin-swagger

If you have motivation. Welcome to PR.
If I have my time. I change to new UI.

@Nerzal
Copy link
Contributor

Nerzal commented May 12, 2019

I just cannot find the referenced css file, which is used in order to update it.
@pei0804 can you give a hint?

@easonlin404
Copy link
Member

@Nerzal we used embedded files that generated by fileb0x, and there are some projects like gin-swagger imported embedded files in their project base:

import "github.com/swaggo/gin-swagger/swaggerFiles" // swagger embed files

some imported by swaggo/files repo like:
https://github.com/swaggo/http-swagger/blob/79126c07518e87da94d8fff0c33c5e185746f51d/swagger.go#L10

so you can update this embedded files by using fileb0x. Besides, also can add new method that can specify swagger files directory path since some issues.

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

Successfully merging a pull request may close this issue.

4 participants