EntityService
Entity management operations. An entity is an instance of a type. Entities conform to the definition of the type that they they correspond to. The following resources are available:
/entities
POST | Submits the entity definitions (instances). The body contains the JSONArray of entity json. The service takes care of de-duping the entities based on any unique attribute for the give type. | ||||
Response Body |
|
PUT | Completely updates a set of entities. Unspecified values are replaced with null and removed. Adds or updates the entities specified by GUID or a unique attribute. | ||||
Response Body |
|
DELETE | Deletes entities from the repository identified by their GUIDs (including their composite references), or deletes a single entity identified by its type and unique attribute (including composite references). | ||||||||||||||||||||
Parameters |
| ||||||||||||||||||||
Response Body |
Response payload as json -- includes guids of entities (including composite references from that entity) that were deleted. |
GET | Fetches the list of entities for an entity type. | ||||||||
Parameters |
| ||||||||
Response Body |
|
/entities/{guid}
GET | Fetches the complete definition of the entity identified by the GUID. | ||||||||
Parameters |
| ||||||||
Response Body |
|
POST | Updates an entity identified by its GUID. Supports partial update of an entity -- adds/updates any new values specified. Does not support removal of attribute values. | ||||||||||||
Parameters |
| ||||||||||||
Response Body |
Response payload as JSON. |
/entities/{guid}/audit
GET | Returns the entity audit events for a given entity GUID. The events are returned in decreasing order based on timestamp. | ||||||||||||||||
Parameters |
| ||||||||||||||||
Response Body |
A list of trait names for the entity that is identified by the GUID. |
/entities/{guid}/traits
GET |
Gets the list of trait names for the entity that is represented by the GUID. | ||||||||
Parameters |
| ||||||||
Response Body |
A list of trait names for the entity that is identified by the GUID. |
POST |
Submits a new trait to an existing entity that is represented by the GUID. | ||||||||
Parameters |
| ||||||||
Response Body |
|
/entities/{guid}/traits/{traitName}
DELETE | Deletes a trait from the entity that is represented by the GUID. | ||||||||||||
Parameters |
| ||||||||||||
Response Body |
|
/entities/qualifiedName
POST |
Adds or Updates a given entity identified by its unique attribute (entityType, attributeName and value). Updates support only partial update of an entity -- adds or updates any new values specified. Updates do not support removal of attribute values. | ||||||||||||||||
Parameters |
| ||||||||||||||||
Response Body |
Response payload as json – The body contains the JSONArray of entity json. The service takes care of de-duping the entities based on any unique attribute for the give type. |