为什么当使用springfox和Swagger2时,v2 / api-docs是默认的URL?(Why is v2/api-docs the default URL when using springfox and Swagger2?)
我刚从本指南开始使用招摇,但我发现了一些非常奇怪的东西,这对我来说毫无意义。
据我所知,当你有你的API的版本号为2的文档时,应该使用v2 / api-docs。
所以,默认应该只有api-docs,但由于一些奇怪的原因,我发现默认是v2 / api-docs。
检查图书馆文件,我发现这一点 。
如何覆盖该值,而不会再迟不能使用v2? (当我的API将达到V2,但我也想显示遗留文档)。
或者,也许我的使用V2的概念是错误的? 有人可以帮我弄这个吗?
I'm just starting using swagger following this guide, but I found out something very weird that makes no sense for me.
As far as I remember , the v2/api-docs should be used for when you have docs of the version number 2 of your API.
So, the default should be only api-docs, but for some strange reason I found that the default is v2/api-docs.
Checking the library doc I found this.
How do I override that value without later not being able to use v2? (when my API will reach a v2 but I will also want to show the legacy docs).
Or maybe my concept of using v2 is wrong? Can someone help me with this?
原文:https://stackoverflow.com/questions/39401010
相关问答
更多搜索引擎如何发现平面链接?(How are flat links discovered by a search engine?)
阻止来自搜索引擎的网站 - DuckDuckGo(Block a site from search engine - DuckDuckGo)
从c#中的搜索引擎获取链接(get links from search engines in c#)
搜索引擎忽略元描述内容并显示页脚(Search engines ignoring meta description content and showing footer)
.htaccess密码保护的网站是否隐藏在搜索引擎中?(Is .htaccess password protected site hidden from search engines?)
如何制作简单的搜索引擎?(How to make simple search engine? [closed])
网站正在重定向与文档引用,它破坏了搜索引擎的结果(Website is being redirected with document referrer and it's ruining search engine results)
如何在Google自定义搜索引擎分页链接中显示下一个/上一个链接(How to show next/previous links in Google Custom Search Engine paging links)
可以防止搜索引擎蜘蛛无限爬行搜索结果上的分页链接?(Possible to prevent search engine spiders from infinitely crawling paging links on search results?)
PHP如何显示搜索引擎等搜索结果[关闭](PHP How to show search results like search engine [closed])
相关文章
更多springboot整合Swagger2
jstl c:url教程-jstl输出url标签
nagios微信报警(版本V2)
Swagger UI 快速入门-springmvc 整合Swagger UI 教程
微信支付开发(1) 微信支付URL配置
paip.微信菜单直接跳转url和获取openid流程总结
JS URL编码函数
solr 通过URL删除索引
url编码转换的问题
最新问答
更多获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
如何通过引用返回对象?(How is returning an object by reference possible?)
矩阵如何存储在内存中?(How are matrices stored in memory?)
每个请求的Java新会话?(Java New Session For Each Request?)
css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
xcode语法颜色编码解释?(xcode syntax color coding explained?)
在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
Copyright ©2023 peixunduo.com All Rights Reserved.粤ICP备14003112号
本站部分内容来源于互联网,仅供学习和参考使用,请莫用于商业用途。如有侵犯你的版权,请联系我们(neng862121861#163.com),本站将尽快处理。谢谢合作!