mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 10:42:27 -05:00
[feature] Add /api/v1/admin/custom_emojis/{id} endpoint for single emoji GET (#910)
* fix error in prev swagger docs * add GET for single admin emoji
This commit is contained in:
parent
70d65b683f
commit
6a95f5fa67
10 changed files with 455 additions and 172 deletions
|
|
@ -2773,8 +2773,8 @@ paths:
|
|||
in: query
|
||||
name: filter
|
||||
type: string
|
||||
- default: 30
|
||||
description: Number of emojis to return. If below 1, will be set to 1, if greater than 50, will be set to 50.
|
||||
- default: 50
|
||||
description: Number of emojis to return. Less than 1, or not set, means unlimited (all emojis).
|
||||
in: query
|
||||
name: limit
|
||||
type: integer
|
||||
|
|
@ -2861,6 +2861,37 @@ paths:
|
|||
summary: Upload and create a new instance emoji.
|
||||
tags:
|
||||
- admin
|
||||
/api/v1/admin/custom_emojis/{id}:
|
||||
get:
|
||||
operationId: emojiGet
|
||||
parameters:
|
||||
- description: The id of the emoji.
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: A single emoji.
|
||||
schema:
|
||||
$ref: '#/definitions/adminEmoji'
|
||||
"400":
|
||||
description: bad request
|
||||
"401":
|
||||
description: unauthorized
|
||||
"403":
|
||||
description: forbidden
|
||||
"404":
|
||||
description: not found
|
||||
"406":
|
||||
description: not acceptable
|
||||
"500":
|
||||
description: internal server error
|
||||
summary: Get the admin view of a single emoji.
|
||||
tags:
|
||||
- admin
|
||||
/api/v1/admin/domain_blocks:
|
||||
get:
|
||||
operationId: domainBlocksGet
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue