Add depot, attendant, jetfire, optimus, ota services with kustomize overlays
This commit is contained in:
23
services/ota_update_go/handlers/manifest_migrate_version.go
Normal file
23
services/ota_update_go/handlers/manifest_migrate_version.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package handlers
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/fiskerinc/cloud-services/pkg/utils"
|
||||
)
|
||||
|
||||
// HandleManifestMigrateVersion godoc
|
||||
// @Summary Return the version of manifest migrate that this service is running
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param Authorization header string false "Bearer <ID token>"
|
||||
// @Param Api-Key header string false "<API token>"
|
||||
// @Param data body ManifestMigrateBody true "The manifest to migrate"
|
||||
// @Success 200 {object} ManifestMigrateVersion
|
||||
// @Failure 400 {object} common.JSONError "Bad request"
|
||||
// @Failure 401 {object} common.JSONError "Unauthorized"
|
||||
// @Failure 503 {object} common.JSONError "Service unavailable"
|
||||
// @Router /manifestmigrate-version [get]
|
||||
func HandleUpdateManifestMigrateVersion(w http.ResponseWriter, r *http.Request) {
|
||||
utils.RespJSON(w, http.StatusOK, ManifestMigrateVersion{Version: MIGRATION_VERSION})
|
||||
}
|
||||
Reference in New Issue
Block a user