summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2018-06-13 01:23:00 +0200
committertechknowlogick <techknowlogick@users.noreply.github.com>2018-06-12 19:23:00 -0400
commit6efdcaed86565c91a3dc77631372a9cc45a58e89 (patch)
treedbd002fe0f52d8b0bc6aa8cf40ea50e77ff28f7c
parent2b8c0bb5e2010d6691e80919f3e9ea65348162b1 (diff)
downloadgitea-6efdcaed86565c91a3dc77631372a9cc45a58e89.tar.gz
gitea-6efdcaed86565c91a3dc77631372a9cc45a58e89.zip
Fix swagger security parts (#4236)
-rw-r--r--public/swagger.v1.json16
-rw-r--r--routers/api/v1/api.go8
2 files changed, 8 insertions, 16 deletions
diff --git a/public/swagger.v1.json b/public/swagger.v1.json
index 1c381a8297..e0f2a7589a 100644
--- a/public/swagger.v1.json
+++ b/public/swagger.v1.json
@@ -7864,24 +7864,16 @@
},
"security": [
{
- "BasicAuth": [
- "[]"
- ]
+ "BasicAuth": []
},
{
- "Token": [
- "[]"
- ]
+ "Token": []
},
{
- "AccessToken": [
- "[]"
- ]
+ "AccessToken": []
},
{
- "AuthorizationHeaderToken": [
- "[]"
- ]
+ "AuthorizationHeaderToken": []
}
]
} \ No newline at end of file
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go
index eec55cac67..5007a0d56d 100644
--- a/routers/api/v1/api.go
+++ b/routers/api/v1/api.go
@@ -20,10 +20,10 @@
// - text/html
//
// Security:
-// - BasicAuth: []
-// - Token: []
-// - AccessToken: []
-// - AuthorizationHeaderToken: []
+// - BasicAuth :
+// - Token :
+// - AccessToken :
+// - AuthorizationHeaderToken :
//
// SecurityDefinitions:
// BasicAuth: