cpjit / swagger Goto Github PK
View Code? Open in Web Editor NEW快速生成可测试的web接口文档的类库
License: Apache License 2.0
快速生成可测试的web接口文档的类库
License: Apache License 2.0
@sweetit 最近使用公司古老的框架集成了swagger4j,发现特别好用,唯独缺少一块很重要的部分,就是暂时无法直观的展示接口返回值中各参数具体代表什么含义,希望能够添加返回参数的标注。
文档说要配置<package name="api" namespace="/api" extends="struts-default" >
但我的项目中已经有/api这个路径了,所以现在配置成了<package name="apis" namespace="/apis" extends="struts-default" >
然后通过http://localhost:8080/项目名/apis/index
能访问到一个不完整的页面,后台看报错信息,提示:Could not find action or result: /项目名/api/statics?url=lib/jquery-1.8.0.min.js
从提示看,似乎swagger4j中,写死了api这个路径?怎么才能配置成apis?
06年的老项目要更新,让我整理文档,妈的;
扫描不到其他模块的包.
怎么支持https:
请问下,jdk1.7支持吗??
老哥,我这已经修改完成了。我有个想法,想给param加一个只读参数,我看现在已经有默认值了。您说我的想法怎么样
cpjit/swagger使用起来挺方便的,我们项目一直在使用,给我们团队的接口展示和沟通带来不少帮助。
现在希望可以在@apis的成员中增加description,用以表示这个REST服务类的用途,而不是它的路径,路径罗列出来有时候不是非常直观。希望达到如下图效果就更好了。
springboot 访问404
之后会添加返回参数的注解还有实体bean内部的注解吗
@API(value = "test", summary = "获取用户信息", method = "POST", description = "用户对象", parameters = {
@param(in = "body", name = "user", description = "用户对象", dataType = DataType.ARRAY)
})
大佬 没看见构建 Model 文档的注解呀-- 后期有没有计划加入呀
只是提个建议,对代码的侵入性较大一般公司都不会采用,看看有没有好的优化方向
如题,如果不行的话,请问如何自行更改???万分感谢
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.