For the given route /v2/catalog, our broker will be expected to return the services with these fields
type ServicePlanMetadata struct {
DisplayName string `json:"displayName,omitempty"`
Bullets []string `json:"bullets,omitempty"`
Costs []ServicePlanCost `json:"costs,omitempty"`
AdditionalMetadata map[string]interface{}
}
type ServicePlanCost struct {
UnitID string `json:"unitId"`
Unit string `json:"unit"`
PartNumber string `json:"partNumber"`
}
I know there is an AdditionalMetaData field, but our added fields need to be nested with costs. Is there a way we could implement this custom struct without having to implement our own ServiceBroker interface?
For the given route /v2/catalog, our broker will be expected to return the services with these fields
I know there is an AdditionalMetaData field, but our added fields need to be nested with costs. Is there a way we could implement this custom struct without having to implement our own ServiceBroker interface?