- 文章服务
- article-field-controller
- article-field-manage-controller
- article-comment-controller
- article-group-controller
- article-tag-controller
- test-controller
- 信息服务
- channel-controller
- user-notify-controller
- user-private-message-controller
- system-message-controller
- 用户服务
- user-active-controller
- user-collection-controller
- user-collection-group-controller
- user-following-controller
- user-info-controller
- user-points-controller
- user-tag-controller
- user-controller
- 问答服务
- qa-answer-controller
- qa-question-group-controller
- qa-question-field-controller
- qa-question-field-manage-controller
- qa-question-tag-controller
- 数据服务
- 搜索服务
- 圈子服务
- 认证服务
getUserById
GET
/user/info/{id}
user-info-controller
请求参数
Path 参数
id
integer
id
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://m1.apifoxmock.com/m1/2103283-0-default/user/info/'
返回响应
🟢200OK
application/json
Body
createTime
string <date-time>
可选
deleted
boolean
可选
experience
integer <int32>
可选
following
boolean
可选
id
string
可选
lastModifiedTime
string <date-time>
可选
level
integer <int32>
可选
mutually
boolean
可选
nickname
string
可选
userInfo
object (UserInfo_7)
可选
avatar
string
可选
birth
string <date-time>
可选
createTime
string <date-time>
可选
deleted
boolean
可选
gender
enum<string>
可选
枚举值:
MALEFEMALE
id
string
可选
lastModifiedTime
string <date-time>
可选
sign
string
可选
user
object (User_7)
可选
username
string
可选
示例
{
"createTime": "2019-08-24T14:15:22Z",
"deleted": true,
"experience": 0,
"following": true,
"id": "string",
"lastModifiedTime": "2019-08-24T14:15:22Z",
"level": 0,
"mutually": true,
"nickname": "string",
"userInfo": {
"avatar": "string",
"birth": "2019-08-24T14:15:22Z",
"createTime": "2019-08-24T14:15:22Z",
"deleted": true,
"gender": "MALE",
"id": "string",
"lastModifiedTime": "2019-08-24T14:15:22Z",
"sign": "string",
"user": {
"createTime": "2019-08-24T14:15:22Z",
"deleted": true,
"experience": 0,
"following": true,
"id": "string",
"lastModifiedTime": "2019-08-24T14:15:22Z",
"level": 0,
"mutually": true,
"nickname": "string",
"userInfo": {},
"username": "string"
}
},
"username": "string"
}
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
修改于 2022-12-19 15:14:50