From b534a5164fe13dc41aa2996239c2dff4f109dee0 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Thu, 4 Jun 2020 11:16:53 +0200 Subject: [API] Expose allowed Reactions (#11735) * [API] Expose allowed Reactions * dont be in soutch a rush * add TEST * use ElementsMatch Co-authored-by: Lauris BH --- templates/swagger/v1_json.tmpl | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'templates') diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 1f159d64a0..687a6bc5e4 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -8343,6 +8343,23 @@ } } }, + "/settings/allowed_reactions": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "miscellaneous" + ], + "summary": "Returns string array of allowed reactions", + "operationId": "getAllowedReactions", + "responses": { + "200": { + "$ref": "#/responses/StringSlice" + } + } + } + }, "/signing-key.gpg": { "get": { "produces": [ @@ -15042,6 +15059,15 @@ } } }, + "StringSlice": { + "description": "StringSlice", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, "Tag": { "description": "Tag", "schema": { -- cgit v1.2.3