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