X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=pkg%2Frestful%2Ftypes.go;h=7d395f45d8fa96348a06b1fc33334ca8679460d1;hb=d872630f520b3883e5cfb1815c36aa60862623f7;hp=fbbf294e1588deaaee2d54d159aa70268446f99f;hpb=f8b9966cb19eeeffc0100b8bb3a0b66937e51aba;p=ric-plt%2Fappmgr.git diff --git a/pkg/restful/types.go b/pkg/restful/types.go index fbbf294..7d395f4 100755 --- a/pkg/restful/types.go +++ b/pkg/restful/types.go @@ -47,3 +47,29 @@ type Restful struct { rh *resthook.Resthook ready bool } + +//Taken from xapp-frame models +type ConfigMetadata struct { + + // The type of the content + // Required: true + // Enum: [json xml other] + ConfigType *string `json:"configType"` + + // Name of the xApp + // Required: true + XappName *string `json:"xappName"` +} + +type XAppConfig struct { + + // Configuration in JSON format + // Required: true + Config interface{} `json:"config"` + + // metadata + // Required: true + Metadata *ConfigMetadata `json:"metadata"` +} + +type XappConfigList []*XAppConfig