Add depot, attendant, jetfire, optimus, ota services with kustomize overlays

This commit is contained in:
Chris Rai
2026-01-31 15:35:07 -05:00
parent a0ec642ca1
commit 9a5cb2f547
404 changed files with 38817 additions and 16 deletions

View 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, ",")
}