...
URL | HTTP Type | Description |
---|---|---|
/entity?generatedBy={activity id} | POST | Creates a new entity and creates a generatedBy connection to the provided activity.
|
/entity/{id}?generatedBy={activity id} | PUT | Updates the entity and creates a generatedBy connection from the current version of the entity to the provided activity.
|
/entity/{id}/version?generatedBy={activityId} | PUT | Creates a new version of a given version-able entity and creates a generatedBy connection to the provided activity.
|
/entity/bundle?generatedBy={activityId} | POST | Creates a new EntityBundle and creates a generatedBy connection to the provided activity.
|
/entity/bundle?generatedBy={activityId} | PUT | Updates an EntityBundle and creates a generatedBy connection to the provided activity.
|
...
Provenance Additions to the API
Additions to Entity API
The following are new suffixes on the Entity services for Provenance
URL | HTTP Type | Description |
---|---|---|
/entity/{id}/generatedBy | GET | Returns the activity that generated the current version of the entity.
|
/entity/{id}/generatedBy?generatedBy={activityId} | PUT | Updates the activity that generated the current version of the entity. Outside the transaction of entity CRUD.
|
/entity/{id}/generatedBy | DELETE | Removes the generatedBy connection from the current version of the entity. |
/entity/{id}/version/{versionNumber}/generatedBy | GET | Returns the activity that generated the specific version of the entity.
|
/entity/{id}/version/{versionNumber}/generatedBy?generatedBy={activityId} | PUT | Updates the activity that generated the specific version of the entity. Outside the transaction of entity CRUD. |
/entity/{id}/version/{versionNumber}/generatedBy | DELETE | Removes the generatedBy connection from the specific version of the entity. |
...
Activity API
The following table describes the new methods for manipulating the versions of a version-able entity.
...