- koa-simple-template
- koa-project-template
单个用户详情
开发中
GET
/user/{userId}
请求参数
Path 参数
userId
string
必需
示例值:
2
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://localhost:8000/user/2'
返回响应
🟢200成功
application/json
Body
code
integer
必需
msssage
string
必需
data
array [object {6}]
必需
id
integer
可选
username
string
可选
password
string
可选
creatAt
string
可选
updateAt
string
可选
avatar_url
string
可选
示例
{
"code": 0,
"msssage": "单个用户详情成功!",
"data": [
{
"id": 2,
"username": "admin1",
"password": "e10adc3949ba59abbe56e057f20f883e",
"creatAt": "2023-12-01T01:45:31.000Z",
"updateAt": "2023-12-01T03:07:21.000Z",
"avatar_url": "http://localhost:8000/file/2/avatar"
}
]
}
修改于 2023-12-01 04:37:35