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.name Apache 2.0
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html // @license.url http://www.apache.org/licenses/LICENSE-2.0.html
// @host localhost:3344 // @host history-api.kain.id.vn
// @BasePath / // @BasePath /
// @schemes https http
// @securityDefinitions.apikey BearerAuth // @securityDefinitions.apikey BearerAuth
// @in header // @in header

View File

@@ -306,9 +306,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: "localhost:3344", Host: "history-api.kain.id.vn",
BasePath: "/", BasePath: "/",
Schemes: []string{}, Schemes: []string{"https", "http"},
Title: "History API", Title: "History API",
Description: "This is a sample server for History API.", Description: "This is a sample server for History API.",
InfoInstanceName: "swagger", InfoInstanceName: "swagger",

View File

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

View File

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