Giter Site home page Giter Site logo

Comments (2)

caspar-chen avatar caspar-chen commented on July 30, 2024

感谢您反馈的真实体验
1、example参数现在确实没有体现,之后会加上
2、参数的填充,后期准备实现mock的功能
3、现在的网页内容都是js请求的,所以url都一样,后续可以通过锚点或其他形式来实现
4、排序问题:因为swagger的position参数无效了,生成的json文件没有排序字段,所以没办法自定义排序,现在是默认按path名字排序的。
(如果后续自定义的需求较多但受限与swagger的话,可以考虑改进swagger注解,新增一些参数)

from swagger-ui-layer.

wwjjkk avatar wwjjkk commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.