Add depot, attendant, jetfire, optimus, ota services with kustomize overlays
This commit is contained in:
21
services/ota_update_go/handlers/docs.go
Normal file
21
services/ota_update_go/handlers/docs.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package handlers
|
||||
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"otaupdate/docs"
|
||||
|
||||
"github.com/fiskerinc/cloud-services/pkg/httphandlers"
|
||||
"github.com/fiskerinc/cloud-services/pkg/utils/envtool"
|
||||
)
|
||||
|
||||
func InitSwaggerDoc() {
|
||||
schemes := envtool.GetEnv("SWAGGER_SCHEMES", "https")
|
||||
|
||||
docs.SwaggerInfo.Title = "Fisker Inc OTA API"
|
||||
docs.SwaggerInfo.Description = "Fisker Inc OTA portals APIs"
|
||||
docs.SwaggerInfo.Version = "1.0"
|
||||
docs.SwaggerInfo.Host = ""
|
||||
docs.SwaggerInfo.BasePath = httphandlers.ServiceBaseURL
|
||||
docs.SwaggerInfo.Schemes = strings.Split(schemes, ",")
|
||||
}
|
||||
Reference in New Issue
Block a user