We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As described in the official website, I can edit the Request body。
Request-body can't be edited in debug page
public class User { private Integer userId; /** * 用户姓名 */ private String userName; /** * 性别,1-男,2-女 */ private Integer sex; /** * 年龄 */ private Integer age; // ignore getter, setter and constructor }
/** * 用户管理 * * @author abing * @since 2023-08-06 21:18:29 */ @RestController @RequestMapping("user") public class UserController { /** * 通过主键查询单条数据 * * @param id 主键 * @return 单条数据 */ @GetMapping("{id}") public User queryById(@PathVariable("id") Integer id) { return null; } /** * 新增数据 * * @param user 实体 * @return 新增结果 */ @PostMapping public User add(@RequestBody User user) { return null; } }
smart-doc.json
{ "outPath": "src/main/resources/static/doc", "allInOne": true, "projectName": "用户管理", "allInOneDocFileName": "index.html", "createDebugPage": true, "serverUrl": "http://localhost:8080" }
pom.xml
<plugin> <groupId>com.github.shalousun</groupId> <artifactId>smart-doc-maven-plugin</artifactId> <version>2.7.4</version> <configuration> <!-- 指定smart-doc配置文件 --> <configFile>./src/main/resources/smart-doc.json</configFile> </configuration> </plugin>
mvn -Dfile.encoding=UTF-8 smart-doc:html
5 result
The path-parameters is editable.
the request-body is not editable
This bug is serious and blocks debug
The text was updated successfully, but these errors were encountered:
@abing22333 https://smart-doc-group.github.io/#/zh-cn/diy/integrated?id=smart-doc%e8%b0%83%e8%af%95%e9%a1%b5%e9%9d%a2
Sorry, something went wrong.
It's just that Firefox doesn't support editing.
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/contenteditable
No branches or pull requests
Your Environment(您的使用环境)
Expected Behavior(您期望的结果)
As described in the official website, I can edit the Request body。
Current Behavior(当前结果)
Request-body can't be edited in debug page
Possible Solution(bug解决建议)
Steps to Reproduce (Bug产生步骤,请尽量提供用例代码)
smart-doc.json
pom.xml
5 result
The path-parameters is editable.
the request-body is not editable
Context(Bug影响描述)
This bug is serious and blocks debug
The text was updated successfully, but these errors were encountered: