Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
apidoc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
apidoc
Commits
ac2eb0d4
Commit
ac2eb0d4
authored
Apr 09, 2020
by
duanledexianxianxian
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生成markdown api文档
parent
14f303d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
apidoc-springmvc/src/test/java/com/kim/apidoc/example/spring/advanced/KimUserController.java
...kim/apidoc/example/spring/advanced/KimUserController.java
+9
-9
No files found.
apidoc-springmvc/src/test/java/com/kim/apidoc/example/spring/advanced/KimUserController.java
View file @
ac2eb0d4
...
@@ -2,15 +2,16 @@ package com.kim.apidoc.example.spring.advanced;
...
@@ -2,15 +2,16 @@ package com.kim.apidoc.example.spring.advanced;
import
com.kim.apidoc.example.annotation.KimController
;
import
com.kim.apidoc.example.annotation.KimController
;
import
com.kim.apidoc.example.common.Query
;
import
com.kim.apidoc.example.common.Query
;
import
com.kim.apidoc.example.common.ResultData
;
import
com.kim.apidoc.example.common.User
;
import
com.kim.apidoc.example.common.User
;
import
com.kim.apidoc.example.common.ResultData
;
import
com.kim.apidoc.example.common.ResultData
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
/**
/**
*
kim接口
*
The type Kim user controller.
*
*
* @author duanledexianxianxian
* @author duanledexianxianxian
* @version 1.0.0
* @version 1.0.0
...
@@ -22,26 +23,25 @@ import org.springframework.web.bind.annotation.RequestMapping;
...
@@ -22,26 +23,25 @@ import org.springframework.web.bind.annotation.RequestMapping;
@RequestMapping
(
"/api/v1"
)
@RequestMapping
(
"/api/v1"
)
public
class
KimUserController
{
public
class
KimUserController
{
/**
/**
* 用户详情信息
* Detail user.
* 主动根据id获取用户的信息
*
*
* @param id the id
* @param id the id
* @param query the query
* @param query the query
* @return
result data
* @return
用户对象 user
*/
*/
@GetMapping
(
value
=
"/{id}"
)
@GetMapping
(
value
=
"/{id}"
)
public
ResultData
<
User
>
detail
(
@PathVariable
String
id
,
Query
query
)
{
public
User
detail
(
@PathVariable
String
id
,
Query
query
)
{
User
user
=
new
User
();
User
user
=
new
User
();
return
ResultData
.
ok
(
user
)
;
return
user
;
}
}
/**
/**
* Add integer.
* Add integer.
*
*
* @return the integer
* @return integer integer
* @return
*/
*/
@PostMapping
@PostMapping
public
Integer
add
()
{
public
Integer
add
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment