mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-17 11:59:30 +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:
parent
2842f6cf42
commit
b534a5164f
5 changed files with 75 additions and 0 deletions
|
@ -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": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue