diff options
author | 6543 <6543@obermui.de> | 2020-06-04 11:16:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-04 12:16:53 +0300 |
commit | b534a5164fe13dc41aa2996239c2dff4f109dee0 (patch) | |
tree | d790711e74321cb0344eafa33f2eeb594e68cb07 /templates | |
parent | 2842f6cf42ab984a7f533a51a050425ebaa2313b (diff) | |
download | gitea-b534a5164fe13dc41aa2996239c2dff4f109dee0.tar.gz gitea-b534a5164fe13dc41aa2996239c2dff4f109dee0.zip |
[API] Expose allowed Reactions (#11735)
* [API] Expose allowed Reactions
* dont be in soutch a rush
* add TEST
* use ElementsMatch
Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/swagger/v1_json.tmpl | 26 |
1 files changed, 26 insertions, 0 deletions
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": { |