E2C: Resources table refactor (#85585)

* E2C: Resources table refactor

* update swagger spec with enums

* use native resource item type, rather than our mock type

* unit tests for resources table

* update spec
This commit is contained in:
Josh Hunt
2024-04-05 10:08:42 +01:00
committed by GitHub
parent c033a15aaa
commit 5ce8b60878
17 changed files with 534 additions and 233 deletions

View File

@@ -143,6 +143,7 @@ type Base64HGInstance struct {
// dtos for cms api
// swagger:enum MigrateDataType
type MigrateDataType string
const (
@@ -162,6 +163,7 @@ type MigrateDataRequestItemDTO struct {
Data interface{} `json:"data"`
}
// swagger:enum ItemStatus
type ItemStatus string
const (
@@ -175,8 +177,11 @@ type MigrateDataResponseDTO struct {
}
type MigrateDataResponseItemDTO struct {
Type MigrateDataType `json:"type"`
RefID string `json:"refId"`
Status ItemStatus `json:"status"`
Error string `json:"error,omitempty"`
// required:true
Type MigrateDataType `json:"type"`
// required:true
RefID string `json:"refId"`
// required:true
Status ItemStatus `json:"status"`
Error string `json:"error,omitempty"`
}