diff options
author | 2023-04-29 18:29:51 +0200 | |
---|---|---|
committer | 2023-04-29 17:29:51 +0100 | |
commit | 8b1e2288d80a723a0c51770f0427fb6c7e07a366 (patch) | |
tree | 93970e7138dffdc320e8bb28671548be88d44001 /docs/api | |
parent | [bugfix] add From to email header (#1717) (diff) | |
download | gotosocial-8b1e2288d80a723a0c51770f0427fb6c7e07a366.tar.xz |
[feature] Add GET endpoint for single notification (#1719)
Diffstat (limited to 'docs/api')
-rw-r--r-- | docs/api/swagger.yaml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml index 55d7a3402..ab54bebdb 100644 --- a/docs/api/swagger.yaml +++ b/docs/api/swagger.yaml @@ -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: |- |