generate swagger docs
All checks were successful
Release and Deploy / build (push) Successful in 1m50s
Release and Deploy / deploy (push) Successful in 21s

This commit is contained in:
Fran Jurmanović
2025-08-05 17:09:05 +02:00
parent 87d4af0bec
commit 1683d5c2f1
3 changed files with 4 additions and 6 deletions

View File

@@ -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",

View File

@@ -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": {

View File

@@ -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: