mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-15 05:10:47 +08:00
add some example code
This commit is contained in:
parent
6a134d9a3e
commit
d76e5ddb60
8
exampleCode/api/interface/del.json
Normal file
8
exampleCode/api/interface/del.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "success",
|
||||
"data": {
|
||||
"n": 1,
|
||||
"ok": 1
|
||||
}
|
||||
}
|
9
exampleCode/api/interface/up.json
Normal file
9
exampleCode/api/interface/up.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "success",
|
||||
"data": {
|
||||
"n": 1,
|
||||
"nModified": 1,
|
||||
"ok": 1
|
||||
}
|
||||
}
|
8
exampleCode/api/user/del.json
Normal file
8
exampleCode/api/user/del.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "success",
|
||||
"data": {
|
||||
"n": 1,
|
||||
"ok": 1
|
||||
}
|
||||
}
|
5
exampleCode/api/user/logout.json
Normal file
5
exampleCode/api/user/logout.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "success",
|
||||
"data": "ok"
|
||||
}
|
11
exampleCode/api/user/reg.json
Normal file
11
exampleCode/api/user/reg.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "success",
|
||||
"data": {
|
||||
"uid": 139,
|
||||
"email": "18500803805@163.com",
|
||||
"add_time": 1499768413,
|
||||
"up_time": 1499768413,
|
||||
"role": "member"
|
||||
}
|
||||
}
|
9
exampleCode/api/user/up.json
Normal file
9
exampleCode/api/user/up.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "success",
|
||||
"data": {
|
||||
"n": 1,
|
||||
"nModified": 1,
|
||||
"ok": 1
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user