From b789fe2bc72a1b1bca50da498ae22c10a4e7acc2 Mon Sep 17 00:00:00 2001 From: Vyr Cossont Date: Fri, 14 Jun 2024 01:11:41 -0700 Subject: [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`. --- docs/api/swagger.yaml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'docs/api') diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml index 3f14e41e5..46ed95c82 100644 --- a/docs/api/swagger.yaml +++ b/docs/api/swagger.yaml @@ -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. -- cgit v1.2.3