update swagger base path
All checks were successful
Release and Deploy / build (push) Successful in 1m48s
Release and Deploy / deploy (push) Successful in 22s

This commit is contained in:
Fran Jurmanović
2025-08-05 14:39:44 +02:00
parent ac61ba5223
commit 5324a41e05
12 changed files with 100 additions and 100 deletions

View File

@@ -22,7 +22,7 @@ const docTemplate = `{
"host": "{{.Host}}",
"basePath": "{{.BasePath}}",
"paths": {
"/v1/api/server": {
"/api/server": {
"get": {
"security": [
{
@@ -113,7 +113,7 @@ const docTemplate = `{
}
}
},
"/v1/auth/login": {
"/auth/login": {
"post": {
"description": "Authenticate a user and receive a JWT token",
"consumes": [
@@ -178,7 +178,7 @@ const docTemplate = `{
}
}
},
"/v1/auth/me": {
"/auth/me": {
"get": {
"security": [
{
@@ -218,7 +218,7 @@ const docTemplate = `{
}
}
},
"/v1/lookup/car-models": {
"/lookup/car-models": {
"get": {
"security": [
{
@@ -272,7 +272,7 @@ const docTemplate = `{
}
}
},
"/v1/lookup/cup-categories": {
"/lookup/cup-categories": {
"get": {
"security": [
{
@@ -323,7 +323,7 @@ const docTemplate = `{
}
}
},
"/v1/lookup/driver-categories": {
"/lookup/driver-categories": {
"get": {
"security": [
{
@@ -377,7 +377,7 @@ const docTemplate = `{
}
}
},
"/v1/lookup/session-types": {
"/lookup/session-types": {
"get": {
"security": [
{
@@ -431,7 +431,7 @@ const docTemplate = `{
}
}
},
"/v1/lookup/tracks": {
"/lookup/tracks": {
"get": {
"security": [
{
@@ -482,7 +482,7 @@ const docTemplate = `{
}
}
},
"/v1/membership": {
"/membership": {
"get": {
"security": [
{
@@ -609,7 +609,7 @@ const docTemplate = `{
}
}
},
"/v1/membership/roles": {
"/membership/roles": {
"get": {
"security": [
{
@@ -658,7 +658,7 @@ const docTemplate = `{
}
}
},
"/v1/membership/{id}": {
"/membership/{id}": {
"get": {
"security": [
{
@@ -837,7 +837,7 @@ const docTemplate = `{
}
}
},
"/v1/server": {
"/server": {
"get": {
"security": [
{
@@ -989,7 +989,7 @@ const docTemplate = `{
}
}
},
"/v1/server/{id}": {
"/server/{id}": {
"get": {
"security": [
{
@@ -1189,7 +1189,7 @@ const docTemplate = `{
}
}
},
"/v1/server/{id}/config": {
"/server/{id}/config": {
"get": {
"security": [
{
@@ -1259,7 +1259,7 @@ const docTemplate = `{
}
}
},
"/v1/server/{id}/config/{file}": {
"/server/{id}/config/{file}": {
"get": {
"security": [
{
@@ -1419,7 +1419,7 @@ const docTemplate = `{
}
}
},
"/v1/server/{id}/service/restart": {
"/server/{id}/service/restart": {
"post": {
"security": [
{
@@ -1498,7 +1498,7 @@ const docTemplate = `{
}
}
},
"/v1/server/{id}/service/start": {
"/server/{id}/service/start": {
"post": {
"security": [
{
@@ -1583,7 +1583,7 @@ const docTemplate = `{
}
}
},
"/v1/server/{id}/service/stop": {
"/server/{id}/service/stop": {
"post": {
"security": [
{
@@ -1668,7 +1668,7 @@ const docTemplate = `{
}
}
},
"/v1/server/{id}/service/{service}": {
"/server/{id}/service/{service}": {
"get": {
"security": [
{
@@ -1737,7 +1737,7 @@ const docTemplate = `{
}
}
},
"/v1/state-history": {
"/state-history": {
"get": {
"description": "Return StateHistorys",
"tags": [
@@ -1757,7 +1757,7 @@ const docTemplate = `{
}
}
},
"/v1/state-history/statistics": {
"/state-history/statistics": {
"get": {
"description": "Return StateHistorys",
"tags": [
@@ -1777,7 +1777,7 @@ const docTemplate = `{
}
}
},
"/v1/system/health": {
"/system/health": {
"get": {
"description": "Return service control status",
"tags": [
@@ -1980,7 +1980,7 @@ const docTemplate = `{
var SwaggerInfo = &swag.Spec{
Version: "1.0",
Host: "https://acc.jurmanovic.com",
BasePath: "/api/v1",
BasePath: "/v1",
Schemes: []string{"http", "https"},
Title: "ACC Server Manager API",
Description: "API for managing Assetto Corsa Competizione dedicated servers",

View File

@@ -18,9 +18,9 @@
"version": "1.0"
},
"host": "https://acc.jurmanovic.com",
"basePath": "/api/v1",
"basePath": "/v1",
"paths": {
"/v1/api/server": {
"/api/server": {
"get": {
"security": [
{
@@ -111,7 +111,7 @@
}
}
},
"/v1/auth/login": {
"/auth/login": {
"post": {
"description": "Authenticate a user and receive a JWT token",
"consumes": [
@@ -176,7 +176,7 @@
}
}
},
"/v1/auth/me": {
"/auth/me": {
"get": {
"security": [
{
@@ -216,7 +216,7 @@
}
}
},
"/v1/lookup/car-models": {
"/lookup/car-models": {
"get": {
"security": [
{
@@ -270,7 +270,7 @@
}
}
},
"/v1/lookup/cup-categories": {
"/lookup/cup-categories": {
"get": {
"security": [
{
@@ -321,7 +321,7 @@
}
}
},
"/v1/lookup/driver-categories": {
"/lookup/driver-categories": {
"get": {
"security": [
{
@@ -375,7 +375,7 @@
}
}
},
"/v1/lookup/session-types": {
"/lookup/session-types": {
"get": {
"security": [
{
@@ -429,7 +429,7 @@
}
}
},
"/v1/lookup/tracks": {
"/lookup/tracks": {
"get": {
"security": [
{
@@ -480,7 +480,7 @@
}
}
},
"/v1/membership": {
"/membership": {
"get": {
"security": [
{
@@ -607,7 +607,7 @@
}
}
},
"/v1/membership/roles": {
"/membership/roles": {
"get": {
"security": [
{
@@ -656,7 +656,7 @@
}
}
},
"/v1/membership/{id}": {
"/membership/{id}": {
"get": {
"security": [
{
@@ -835,7 +835,7 @@
}
}
},
"/v1/server": {
"/server": {
"get": {
"security": [
{
@@ -987,7 +987,7 @@
}
}
},
"/v1/server/{id}": {
"/server/{id}": {
"get": {
"security": [
{
@@ -1187,7 +1187,7 @@
}
}
},
"/v1/server/{id}/config": {
"/server/{id}/config": {
"get": {
"security": [
{
@@ -1257,7 +1257,7 @@
}
}
},
"/v1/server/{id}/config/{file}": {
"/server/{id}/config/{file}": {
"get": {
"security": [
{
@@ -1417,7 +1417,7 @@
}
}
},
"/v1/server/{id}/service/restart": {
"/server/{id}/service/restart": {
"post": {
"security": [
{
@@ -1496,7 +1496,7 @@
}
}
},
"/v1/server/{id}/service/start": {
"/server/{id}/service/start": {
"post": {
"security": [
{
@@ -1581,7 +1581,7 @@
}
}
},
"/v1/server/{id}/service/stop": {
"/server/{id}/service/stop": {
"post": {
"security": [
{
@@ -1666,7 +1666,7 @@
}
}
},
"/v1/server/{id}/service/{service}": {
"/server/{id}/service/{service}": {
"get": {
"security": [
{
@@ -1735,7 +1735,7 @@
}
}
},
"/v1/state-history": {
"/state-history": {
"get": {
"description": "Return StateHistorys",
"tags": [
@@ -1755,7 +1755,7 @@
}
}
},
"/v1/state-history/statistics": {
"/state-history/statistics": {
"get": {
"description": "Return StateHistorys",
"tags": [
@@ -1775,7 +1775,7 @@
}
}
},
"/v1/system/health": {
"/system/health": {
"get": {
"description": "Return service control status",
"tags": [

View File

@@ -1,4 +1,4 @@
basePath: /api/v1
basePath: /v1
definitions:
error_handler.ErrorResponse:
properties:
@@ -124,7 +124,7 @@ info:
title: ACC Server Manager API
version: "1.0"
paths:
/v1/api/server:
/api/server:
get:
consumes:
- application/json
@@ -180,7 +180,7 @@ paths:
summary: List all servers (API format)
tags:
- Server
/v1/auth/login:
/auth/login:
post:
consumes:
- application/json
@@ -222,7 +222,7 @@ paths:
summary: User login
tags:
- Authentication
/v1/auth/me:
/auth/me:
get:
consumes:
- application/json
@@ -247,7 +247,7 @@ paths:
summary: Get current user details
tags:
- Authentication
/v1/lookup/car-models:
/lookup/car-models:
get:
consumes:
- application/json
@@ -281,7 +281,7 @@ paths:
summary: Get available car models
tags:
- Lookups
/v1/lookup/cup-categories:
/lookup/cup-categories:
get:
consumes:
- application/json
@@ -313,7 +313,7 @@ paths:
summary: Get cup categories
tags:
- Lookups
/v1/lookup/driver-categories:
/lookup/driver-categories:
get:
consumes:
- application/json
@@ -347,7 +347,7 @@ paths:
summary: Get driver categories
tags:
- Lookups
/v1/lookup/session-types:
/lookup/session-types:
get:
consumes:
- application/json
@@ -382,7 +382,7 @@ paths:
summary: Get session types
tags:
- Lookups
/v1/lookup/tracks:
/lookup/tracks:
get:
consumes:
- application/json
@@ -414,7 +414,7 @@ paths:
summary: Get available tracks
tags:
- Lookups
/v1/membership:
/membership:
get:
consumes:
- application/json
@@ -495,7 +495,7 @@ paths:
summary: Create a new user
tags:
- User Management
/v1/membership/{id}:
/membership/{id}:
delete:
consumes:
- application/json
@@ -610,7 +610,7 @@ paths:
summary: Update user
tags:
- User Management
/v1/membership/roles:
/membership/roles:
get:
consumes:
- application/json
@@ -641,7 +641,7 @@ paths:
summary: Get all roles
tags:
- User Management
/v1/server:
/server:
get:
consumes:
- application/json
@@ -736,7 +736,7 @@ paths:
summary: Create a new ACC server
tags:
- Server
/v1/server/{id}:
/server/{id}:
delete:
consumes:
- application/json
@@ -865,7 +865,7 @@ paths:
summary: Update an ACC server
tags:
- Server
/v1/server/{id}/config:
/server/{id}/config:
get:
consumes:
- application/json
@@ -910,7 +910,7 @@ paths:
summary: List available configuration files
tags:
- Server Configuration
/v1/server/{id}/config/{file}:
/server/{id}/config/{file}:
get:
consumes:
- application/json
@@ -1014,7 +1014,7 @@ paths:
summary: Update server configuration file
tags:
- Server Configuration
/v1/server/{id}/service/{service}:
/server/{id}/service/{service}:
get:
consumes:
- application/json
@@ -1058,7 +1058,7 @@ paths:
summary: Get service status
tags:
- Service Control
/v1/server/{id}/service/restart:
/server/{id}/service/restart:
post:
consumes:
- application/json
@@ -1108,7 +1108,7 @@ paths:
summary: Restart a Windows service
tags:
- Service Control
/v1/server/{id}/service/start:
/server/{id}/service/start:
post:
consumes:
- application/json
@@ -1162,7 +1162,7 @@ paths:
summary: Start a Windows service
tags:
- Service Control
/v1/server/{id}/service/stop:
/server/{id}/service/stop:
post:
consumes:
- application/json
@@ -1216,7 +1216,7 @@ paths:
summary: Stop a Windows service
tags:
- Service Control
/v1/state-history:
/state-history:
get:
description: Return StateHistorys
responses:
@@ -1229,7 +1229,7 @@ paths:
summary: Return StateHistorys
tags:
- StateHistory
/v1/state-history/statistics:
/state-history/statistics:
get:
description: Return StateHistorys
responses:
@@ -1242,7 +1242,7 @@ paths:
summary: Return StateHistorys
tags:
- StateHistory
/v1/system/health:
/system/health:
get:
description: Return service control status
responses: