swaggo / gin-swagger

gin middleware to automatically generate RESTful API documentation with Swagger 2.0.
MIT License
3.76k stars 270 forks source link

feat: config for html title #180

Closed link-duan closed 2 years ago

link-duan commented 2 years ago

Describe the PR config for html title

ubogdan commented 2 years ago

I guess there is no open issue for this. Before you follow the requested changes please describe your use case so we can better understand the need.

codecov[bot] commented 2 years ago

Codecov Report

Merging #180 (49630de) into master (301224e) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #180   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           87        91    +4     
=========================================
+ Hits            87        91    +4     
Impacted Files Coverage Δ
swagger.go 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 301224e...49630de. Read the comment docs.

ubogdan commented 2 years ago

Can you please give us some insights regarding the use case?

link-duan commented 2 years ago

Can you please give us some insights regarding the use case?

The title of swagger web page (/swagger/index.html) is "Swagger UI". If we open multiple "Swagger UI" pages, it's hard to find the one we want from browser tabs. So I think it's a good idea to support the customization of page title.