aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2023-09-05 17:21:02 +0200
committerGitHub <noreply@github.com>2023-09-05 15:21:02 +0000
commita99b96cbcd10e4cad3194c142a0fffe371959455 (patch)
treefcd68e70ecced060c20c43b08414ae4c97fe8d38 /templates
parente9f50676535216b74a467fab4623daf6d0c39fce (diff)
downloadgitea-a99b96cbcd10e4cad3194c142a0fffe371959455.tar.gz
gitea-a99b96cbcd10e4cad3194c142a0fffe371959455.zip
Refactor secrets modification logic (#26873)
- Share code between web and api - Add some tests
Diffstat (limited to 'templates')
-rw-r--r--templates/swagger/v1_json.tmpl22
1 files changed, 14 insertions, 8 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index 94955c5fd7..03beca3f73 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -1634,8 +1634,8 @@
"400": {
"$ref": "#/responses/error"
},
- "403": {
- "$ref": "#/responses/forbidden"
+ "404": {
+ "$ref": "#/responses/notFound"
}
}
},
@@ -1671,8 +1671,11 @@
"204": {
"description": "delete one secret of the organization"
},
- "403": {
- "$ref": "#/responses/forbidden"
+ "400": {
+ "$ref": "#/responses/error"
+ },
+ "404": {
+ "$ref": "#/responses/notFound"
}
}
}
@@ -3283,8 +3286,8 @@
"400": {
"$ref": "#/responses/error"
},
- "403": {
- "$ref": "#/responses/forbidden"
+ "404": {
+ "$ref": "#/responses/notFound"
}
}
},
@@ -3327,8 +3330,11 @@
"204": {
"description": "delete one secret of the organization"
},
- "403": {
- "$ref": "#/responses/forbidden"
+ "400": {
+ "$ref": "#/responses/error"
+ },
+ "404": {
+ "$ref": "#/responses/notFound"
}
}
}