API DocsAPI Docs
get/api/group/{groupId}/images
get/api/group/{groupId}/images
获取小组图片列表
Basic Information
Request Method:
get
Request URL:
https://www.lycoo.com/api/group/{groupId}/images
Tags:
小组图片管理
Description
获取指定小组的图片列表。用户需要是小组成员才能查看图片列表。
用途:
- 浏览小组的图片库
- 在编辑文章时选择图片
Path Parameters
Path Parameters Explanation
Path parameters are variables in the URL path, for example:
https://www.lycoo.com/api/group/:groupId/images
Parameter Name | Type | Required | Example Value | Description |
---|---|---|---|---|
groupId | string | Required | example | 小组ID |
Query Parameters
Query Parameters Explanation
Query parameters are added at the end of the URL, starting with a question mark, for example:
https://www.lycoo.com/api/group/{groupId}/images?page=10&pageSize=10
Parameter Name | Type | Required | Example Value | Description |
---|---|---|---|---|
page | integer | Optional | 10 | 页码,默认为1 |
pageSize | integer | Optional | 10 | 每页数量,默认为20,最大50 |
Header Parameters
Header Parameters Explanation
Header parameters are used to pass additional information, such as authentication credentials, content type, etc.
Parameter Name | Type | Required | Example Value | Description |
---|---|---|---|---|
Authorization | string | Required | Bearer sha_1234567890abcdef... | The authentication header is used to verify the identity of API requests, containing an access token Format: Bearer {token} |
Response Example
200成功获取图片列表
{
"success": true
}
401
403用户不是小组成员,无权查看图片
{
"success": false,
"message": "您不是该小组成员,无权查看图片"
}
404小组不存在
{
"success": false,
"message": "小组不存在或已被删除"
}
500