mirror of
				https://github.com/superseriousbusiness/gotosocial
				synced 2025-06-05 21:59:39 +02: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:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user