From b08c1bd0cbf6986e59247deefbabb150db83aadd Mon Sep 17 00:00:00 2001 From: Vyr Cossont Date: Mon, 17 Jun 2024 12:50:50 -0700 Subject: [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 --- docs/api/swagger.yaml | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) (limited to 'docs/api') diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml index 46ed95c82..4dfddd8f3 100644 --- a/docs/api/swagger.yaml +++ b/docs/api/swagger.yaml @@ -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: 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 + name: exclude_types[] type: array produces: - application/json -- cgit v1.2.3