diff --git a/cmd/history-api/main.go b/cmd/history-api/main.go index 5c423cf..d743a0a 100644 --- a/cmd/history-api/main.go +++ b/cmd/history-api/main.go @@ -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 diff --git a/docs/docs.go b/docs/docs.go index 0e6991a..1567f16 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -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", diff --git a/docs/swagger.json b/docs/swagger.json index ae49c81..73f841f 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -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": { diff --git a/docs/swagger.yaml b/docs/swagger.yaml index c9d65c8..413965c 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -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.