mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 11:52:25 -05:00
[feature] Implement types[] param for notifications (#3009)
Counterpart of exclude_types[]. Also updates Swagger spec for types[] to use the correct param name and enumerate possible values. Fixes #3003
This commit is contained in:
parent
7ab404d643
commit
b08c1bd0cb
10 changed files with 459 additions and 13 deletions
|
|
@ -7427,10 +7427,35 @@ paths:
|
|||
in: query
|
||||
name: limit
|
||||
type: integer
|
||||
- in: query
|
||||
- description: Types of notifications to include. If not provided, all notification types will be included.
|
||||
in: query
|
||||
items:
|
||||
enum:
|
||||
- follow
|
||||
- follow_request
|
||||
- mention
|
||||
- reblog
|
||||
- favourite
|
||||
- poll
|
||||
- status
|
||||
- admin.sign_up
|
||||
type: string
|
||||
name: exclude_types
|
||||
name: types[]
|
||||
type: array
|
||||
- description: Types of notifications to exclude.
|
||||
in: query
|
||||
items:
|
||||
enum:
|
||||
- follow
|
||||
- follow_request
|
||||
- mention
|
||||
- reblog
|
||||
- favourite
|
||||
- poll
|
||||
- status
|
||||
- admin.sign_up
|
||||
type: string
|
||||
name: exclude_types[]
|
||||
type: array
|
||||
produces:
|
||||
- application/json
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue