mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 12:52:27 -05:00
[feature] filter API v2: Restore keywords_attributes and statuses_attributes (#2995)
These filter API v2 features were cut late in development because the form encoding version is hard to implement correctly and because I thought no clients actually used `keywords_attributes`. Unfortunately, Phanpy does use `keywords_attributes`.
This commit is contained in:
parent
ee6e9b2795
commit
b789fe2bc7
8 changed files with 656 additions and 40 deletions
|
|
@ -9245,6 +9245,27 @@ paths:
|
|||
in: formData
|
||||
name: filter_action
|
||||
type: string
|
||||
- collectionFormat: multi
|
||||
description: Keywords to be added (if not using id param) or updated (if using id param).
|
||||
in: formData
|
||||
items:
|
||||
type: string
|
||||
name: keywords_attributes[][keyword]
|
||||
type: array
|
||||
- collectionFormat: multi
|
||||
description: Should each keyword consider word boundaries?
|
||||
in: formData
|
||||
items:
|
||||
type: boolean
|
||||
name: keywords_attributes[][whole_word]
|
||||
type: array
|
||||
- collectionFormat: multi
|
||||
description: Statuses to be added to the filter.
|
||||
in: formData
|
||||
items:
|
||||
type: string
|
||||
name: statuses_attributes[][status_id]
|
||||
type: array
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
|
|
@ -9360,6 +9381,27 @@ paths:
|
|||
name: title
|
||||
required: true
|
||||
type: string
|
||||
- collectionFormat: multi
|
||||
description: Keywords to be added to the created filter.
|
||||
in: formData
|
||||
items:
|
||||
type: string
|
||||
name: keywords_attributes[][keyword]
|
||||
type: array
|
||||
- collectionFormat: multi
|
||||
description: Should each keyword consider word boundaries?
|
||||
in: formData
|
||||
items:
|
||||
type: boolean
|
||||
name: keywords_attributes[][whole_word]
|
||||
type: array
|
||||
- collectionFormat: multi
|
||||
description: Statuses to be added to the newly created filter.
|
||||
in: formData
|
||||
items:
|
||||
type: string
|
||||
name: statuses_attributes[][status_id]
|
||||
type: array
|
||||
- collectionFormat: multi
|
||||
description: |-
|
||||
The contexts in which the filter should be applied.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue