Activity Types
Type | Description |
---|---|
UNDEFINED | (Default) The user has not specified details for the Activity |
MANUAL | The user manually generated the wasGeneratedBy entities of this Activity |
CODE EXECUTION | The user executed code that generated the wasGeneratedBy entities of this Activity |
Current Entity API
The following table describes how provenance effects the current Entity CRUD API:
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} | POST | Creates a new version of a given version-able entity and creates a generatedBy connection to the provided activity.
|
/entity/{id}/generatedBy | GET | Returns the activity that generated the current version of the specified entity.
|
/entity/{id}/version/{versionNumber}/generatedBy | GET | Returns the activity that generated the specific version of the entity.
|
Provenance Additions to the API
The following table describes the new methods for manipulating the versions of a version-able entity.
URL | HTTP Type | Description |
---|---|---|
/activity | POST | Creates a new activity object. |
/activity/{activityId} | PUT | Updates the specified activity.
|
/activity/{activityId} | GET | Returns the specified activity.
|
/activity/{activityId} | DELETE |
|