generate swagger docs
This commit is contained in:
@@ -1979,9 +1979,9 @@ const docTemplate = `{
|
|||||||
// SwaggerInfo holds exported Swagger Info so clients can modify it
|
// SwaggerInfo holds exported Swagger Info so clients can modify it
|
||||||
var SwaggerInfo = &swag.Spec{
|
var SwaggerInfo = &swag.Spec{
|
||||||
Version: "1.0",
|
Version: "1.0",
|
||||||
Host: "acc.jurmanovic.com",
|
Host: "acc-api.jurmanovic.com",
|
||||||
BasePath: "/v1",
|
BasePath: "/v1",
|
||||||
Schemes: []string{"http", "https"},
|
Schemes: []string{"https"},
|
||||||
Title: "ACC Server Manager API",
|
Title: "ACC Server Manager API",
|
||||||
Description: "API for managing Assetto Corsa Competizione dedicated servers",
|
Description: "API for managing Assetto Corsa Competizione dedicated servers",
|
||||||
InfoInstanceName: "swagger",
|
InfoInstanceName: "swagger",
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
"schemes": [
|
"schemes": [
|
||||||
"http",
|
|
||||||
"https"
|
"https"
|
||||||
],
|
],
|
||||||
"swagger": "2.0",
|
"swagger": "2.0",
|
||||||
@@ -17,7 +16,7 @@
|
|||||||
},
|
},
|
||||||
"version": "1.0"
|
"version": "1.0"
|
||||||
},
|
},
|
||||||
"host": "acc.jurmanovic.com",
|
"host": "acc-api.jurmanovic.com",
|
||||||
"basePath": "/v1",
|
"basePath": "/v1",
|
||||||
"paths": {
|
"paths": {
|
||||||
"/api/server": {
|
"/api/server": {
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ definitions:
|
|||||||
username:
|
username:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
host: acc.jurmanovic.com
|
host: acc-api.jurmanovic.com
|
||||||
info:
|
info:
|
||||||
contact:
|
contact:
|
||||||
name: ACC Server Manager Support
|
name: ACC Server Manager Support
|
||||||
@@ -1256,7 +1256,6 @@ paths:
|
|||||||
tags:
|
tags:
|
||||||
- system
|
- system
|
||||||
schemes:
|
schemes:
|
||||||
- http
|
|
||||||
- https
|
- https
|
||||||
securityDefinitions:
|
securityDefinitions:
|
||||||
BearerAuth:
|
BearerAuth:
|
||||||
|
|||||||
Reference in New Issue
Block a user