init
All checks were successful
Build and Release / release (push) Successful in 45s

This commit is contained in:
2026-03-25 23:40:37 +07:00
parent 3053c1f29c
commit 92d44bb00c
4 changed files with 13 additions and 5 deletions

View File

@@ -106,8 +106,9 @@ func StartServer() {
// @license.name Apache 2.0
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html
// @host localhost:3344
// @host history-api.kain.id.vn
// @BasePath /
// @schemes https http
// @securityDefinitions.apikey BearerAuth
// @in header

View File

@@ -306,9 +306,9 @@ const docTemplate = `{
// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{
Version: "1.0",
Host: "localhost:3344",
Host: "history-api.kain.id.vn",
BasePath: "/",
Schemes: []string{},
Schemes: []string{"https", "http"},
Title: "History API",
Description: "This is a sample server for History API.",
InfoInstanceName: "swagger",

View File

@@ -1,4 +1,8 @@
{
"schemes": [
"https",
"http"
],
"swagger": "2.0",
"info": {
"description": "This is a sample server for History API.",
@@ -15,7 +19,7 @@
},
"version": "1.0"
},
"host": "localhost:3344",
"host": "history-api.kain.id.vn",
"basePath": "/",
"paths": {
"/auth/refresh": {

View File

@@ -41,7 +41,7 @@ definitions:
status:
type: boolean
type: object
host: localhost:3344
host: history-api.kain.id.vn
info:
contact:
email: support@swagger.io
@@ -193,6 +193,9 @@ paths:
summary: Get tile metadata
tags:
- Tile
schemes:
- https
- http
securityDefinitions:
BearerAuth:
description: Type "Bearer " followed by a space and JWT token.