Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Resources map[string]Resource
Functions ¶
This section is empty.
Types ¶
type CrudEntityAttribute ¶
type CrudEntityInfo ¶
type Resource ¶
type Resource struct {
// The type as far as the EPCC CLI is concerned.
Type string
// A link to the generic documentation page about a type in the EPCC API
Docs string `yaml:"docs"`
// The type that should be used in the JSON API.
JsonApiType string `yaml:"json-api-type"`
// Some resources (e.g., PCM, accelerator svc, bury most attributes under the attributes key). This is considered "compliant", other services just bury attributes under data, this is "legacy.
JsonApiFormat string `yaml:"json-api-format"`
// Information about how to get a collection
GetCollectionInfo *CrudEntityInfo `yaml:"get-collection"`
// Information about how to get a single object.
GetEntityInfo *CrudEntityInfo `yaml:"get-entity"`
// Information about how to create an entity.
CreateEntityInfo *CrudEntityInfo `yaml:"create-entity"`
// Information about how to update an entity.
UpdateEntityInfo *CrudEntityInfo `yaml:"update-entity"`
// Information about how to delete an entity.
DeleteEntityInfo *CrudEntityInfo `yaml:"delete-entity"`
Attributes map[string]*CrudEntityAttribute `yaml:"attributes"`
}
Click to show internal directories.
Click to hide internal directories.