Comments (2)
感谢您反馈的真实体验
1、example参数现在确实没有体现,之后会加上
2、参数的填充,后期准备实现mock的功能
3、现在的网页内容都是js请求的,所以url都一样,后续可以通过锚点或其他形式来实现
4、排序问题:因为swagger的position参数无效了,生成的json文件没有排序字段,所以没办法自定义排序,现在是默认按path名字排序的。
(如果后续自定义的需求较多但受限与swagger的话,可以考虑改进swagger注解,新增一些参数)
from swagger-ui-layer.
ApiOperation的position被废弃后接口排序默认确实只能按url排序。
我说一下目前项目中的采用的处理方式以供参考。修改springfox-swagger-ui的springfox.js
window.swaggerUi = new SwaggerUi({
...
apisSorter: "alpha",
operationsSorter : "method"
});
后可支持按@ApiOperation的notes排序(开头用数字编号)
期待后续版本的完善,持续关注中
from swagger-ui-layer.
Related Issues (20)
- 请问有没有swagger ui layer demo的源码? HOT 1
- 没有原生的Authorize这个鉴权的东西,能否添加呢
- requestbody是对象的话,dataType中显示为空 HOT 1
- 建議請求失敗時,將返回內容顯示在頁面中 HOT 1
- 请问一下怎么将swagger-ui-layer打包成jar 我是下载的zip我想打包成jar HOT 2
- RequestMethod的类型为post以及put的restful接口其Responses为空白? HOT 1
- lombok使用@Data,@ApiModelProperty 实体类第一个field 的 value会丢失
- 导航栏的tags 应该展示description对应的介绍,名称用于引用
- GET请求,debug调试时,url只拼上了第一个参数,后面的参数没拼不上 HOT 1
- Blank page after renderring jsonData
- 多层次嵌套不能正常解析返回???? HOT 1
- 对于分组的swagger不能显示
- 是否考虑升级,使用的layui版本 HOT 1
- 能否json格式请求也支持添加queryString
- 请问支持 openapi 3.0.1 么?
- Controller太多,如何进行分组?
- springboot项目整合后发现被拦截器拦截 HOT 1
- 默认值没有显示
- 嵌套对象不能显示 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swagger-ui-layer.