File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,16 @@ const docTemplate = `{
99 "info": {
1010 "description": "{{escape .Description}}",
1111 "title": "{{.Title}}",
12- "contact": {},
12+ "termsOfService": "http://swagger.io/terms/",
13+ "contact": {
14+ "name": "API Support",
15+ "url": "http://www.swagger.io/support",
16+ "email": "support@swagger.io"
17+ },
18+ "license": {
19+ "name": "Apache 2.0",
20+ "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
21+ },
1322 "version": "{{.Version}}"
1423 },
1524 "host": "{{.Host}}",
@@ -1867,17 +1876,29 @@ const docTemplate = `{
18671876 }
18681877 }
18691878 }
1879+ },
1880+ "securityDefinitions": {
1881+ "BotToken": {
1882+ "type": "apiKey",
1883+ "name": "X-Bot-Token",
1884+ "in": "header"
1885+ },
1886+ "CookieAuth": {
1887+ "type": "apiKey",
1888+ "name": "capy_auth",
1889+ "in": "cookie"
1890+ }
18701891 }
18711892}`
18721893
18731894// SwaggerInfo holds exported Swagger Info so clients can modify it
18741895var SwaggerInfo = & swag.Spec {
1875- Version : "" ,
1876- Host : "" ,
1877- BasePath : "" ,
1896+ Version : "1.0 " ,
1897+ Host : "localhost:8080 " ,
1898+ BasePath : "/v1 " ,
18781899 Schemes : []string {},
1879- Title : "" ,
1880- Description : "" ,
1900+ Title : "Capy API " ,
1901+ Description : "API for Capy RPI Club Assistant " ,
18811902 InfoInstanceName : "swagger" ,
18821903 SwaggerTemplate : docTemplate ,
18831904 LeftDelim : "{{" ,
Original file line number Diff line number Diff line change 11{
22 "swagger" : " 2.0" ,
33 "info" : {
4- "contact" : {}
4+ "description" : " API for Capy RPI Club Assistant" ,
5+ "title" : " Capy API" ,
6+ "termsOfService" : " http://swagger.io/terms/" ,
7+ "contact" : {
8+ "name" : " API Support" ,
9+ "url" : " http://www.swagger.io/support" ,
10+ "email" : " support@swagger.io"
11+ },
12+ "license" : {
13+ "name" : " Apache 2.0" ,
14+ "url" : " http://www.apache.org/licenses/LICENSE-2.0.html"
15+ },
16+ "version" : " 1.0"
517 },
18+ "host" : " localhost:8080" ,
19+ "basePath" : " /v1" ,
620 "paths" : {
721 "/auth/google" : {
822 "get" : {
18561870 }
18571871 }
18581872 }
1873+ },
1874+ "securityDefinitions" : {
1875+ "BotToken" : {
1876+ "type" : " apiKey" ,
1877+ "name" : " X-Bot-Token" ,
1878+ "in" : " header"
1879+ },
1880+ "CookieAuth" : {
1881+ "type" : " apiKey" ,
1882+ "name" : " capy_auth" ,
1883+ "in" : " cookie"
1884+ }
18591885 }
18601886}
Original file line number Diff line number Diff line change 1+ basePath : /v1
12definitions :
23 dto.AddMemberRequest :
34 properties :
@@ -222,8 +223,19 @@ definitions:
222223 uid :
223224 type : string
224225 type : object
226+ host : localhost:8080
225227info :
226- contact : {}
228+ contact :
229+ email : support@swagger.io
230+ name : API Support
231+ url : http://www.swagger.io/support
232+ description : API for Capy RPI Club Assistant
233+ license :
234+ name : Apache 2.0
235+ url : http://www.apache.org/licenses/LICENSE-2.0.html
236+ termsOfService : http://swagger.io/terms/
237+ title : Capy API
238+ version : " 1.0"
227239paths :
228240 /auth/google :
229241 get :
@@ -1188,4 +1200,13 @@ paths:
11881200 summary : List user's organizations
11891201 tags :
11901202 - users
1203+ securityDefinitions :
1204+ BotToken :
1205+ in : header
1206+ name : X-Bot-Token
1207+ type : apiKey
1208+ CookieAuth :
1209+ in : cookie
1210+ name : capy_auth
1211+ type : apiKey
11911212swagger : " 2.0"
You can’t perform that action at this time.
0 commit comments