mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 02:42:24 -05:00
[feature] Add GET endpoint for single notification (#1719)
This commit is contained in:
parent
fdd2487cfb
commit
8b1e2288d8
4 changed files with 145 additions and 0 deletions
|
|
@ -4535,6 +4535,32 @@ paths:
|
|||
summary: Update a media attachment.
|
||||
tags:
|
||||
- media
|
||||
/api/v1/notification/{id}:
|
||||
get:
|
||||
operationId: notification
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: Requested notification.
|
||||
schema:
|
||||
$ref: '#/definitions/notification'
|
||||
"400":
|
||||
description: bad request
|
||||
"401":
|
||||
description: unauthorized
|
||||
"404":
|
||||
description: not found
|
||||
"406":
|
||||
description: not acceptable
|
||||
"500":
|
||||
description: internal server error
|
||||
security:
|
||||
- OAuth2 Bearer:
|
||||
- read:notifications
|
||||
summary: Get a single notification with the given ID.
|
||||
tags:
|
||||
- notifications
|
||||
/api/v1/notifications:
|
||||
get:
|
||||
description: |-
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue