mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
[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>
This commit is contained in:
@@ -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": {
|
||||
|
Reference in New Issue
Block a user