add(system): login/logout api, rename PK fields
This commit is contained in:
@@ -11,14 +11,14 @@
|
||||
"method": "GET",
|
||||
"title": "Check JWT token",
|
||||
"path": "/check",
|
||||
"parameters": []
|
||||
"parameters": {}
|
||||
},
|
||||
{
|
||||
"name": "logout",
|
||||
"method": "DELETE",
|
||||
"title": "Delete JWT token (Sign Out)",
|
||||
"path": "/check",
|
||||
"parameters": []
|
||||
"parameters": {}
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -381,6 +381,35 @@
|
||||
}
|
||||
],
|
||||
"apis": [
|
||||
{
|
||||
"name": "login",
|
||||
"method": "POST",
|
||||
"title": "Login user",
|
||||
"path": "/login",
|
||||
"parameters": {
|
||||
"post": [
|
||||
{
|
||||
"name": "username",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"title": "Username"
|
||||
},
|
||||
{
|
||||
"name": "password",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"title": "Password"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "logout",
|
||||
"method": "GET",
|
||||
"title": "Delete JWT token (Sign Out)",
|
||||
"path": "/logout",
|
||||
"parameters": {}
|
||||
},
|
||||
{
|
||||
"name": "list",
|
||||
"method": "GET",
|
||||
|
||||
@@ -13,14 +13,14 @@
|
||||
"Method": "GET",
|
||||
"Title": "Check JWT token",
|
||||
"Path": "/check",
|
||||
"Parameters": null
|
||||
"Parameters": {}
|
||||
},
|
||||
{
|
||||
"Name": "logout",
|
||||
"Method": "DELETE",
|
||||
"Title": "Delete JWT token (Sign Out)",
|
||||
"Path": "/check",
|
||||
"Parameters": null
|
||||
"Parameters": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -17,6 +17,35 @@
|
||||
],
|
||||
"Path": "/users",
|
||||
"APIs": [
|
||||
{
|
||||
"Name": "login",
|
||||
"Method": "POST",
|
||||
"Title": "Login user",
|
||||
"Path": "/login",
|
||||
"Parameters": {
|
||||
"post": [
|
||||
{
|
||||
"name": "username",
|
||||
"required": true,
|
||||
"title": "Username",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "password",
|
||||
"required": true,
|
||||
"title": "Password",
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "logout",
|
||||
"Method": "GET",
|
||||
"Title": "Delete JWT token (Sign Out)",
|
||||
"Path": "/logout",
|
||||
"Parameters": {}
|
||||
},
|
||||
{
|
||||
"Name": "list",
|
||||
"Method": "GET",
|
||||
|
||||
Reference in New Issue
Block a user