Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

URL

HTTP Type

Description

/entity

POST

Creates a new entity and links it to a new UNDEFINED activity.

/entity?activityId={activity id}POSTCreate a new entity and links it to the provided activity.

/entity/{id}

PUT

Updates the entity. If the entity is version-able and the update results in a new version then a new UNDEFINED activity is created and linked with the new version.

/entity/{id}?activityId={activity id}PUTUpdates the entity and links the current version of the entity to the provided activity.

/entity/{id}/version

POST

Creates a new version of a given version-able entity and links it to a new UNDEFINED activity.

/entity/{id}/version?activityId={activityId}POSTCreates a new version of a given version-able entity and links it to the provided activity.
/entity/{id}/activityGETReturns the activity that generated (aka links to) the current version of the specified entity.
/entity/{id}/version/{versionNumber}/activityGETReturns the activity that generated (aka links to) the specific version of the entity.
OR

The following table describes how provenance effects the current Entity CRUD API:

URL

HTTP Type

Description

/entity/{id}/activityPOSTCreates a new activity and links it to this entity.
/entity/{id}/activityPUTLinks the specified entity to the provided activityactivity to this entity.
/entity/{id}/version/{versionNumber}/activityPOSTCreates a new activity and links it to this version of the entity
/entity/{id}/version/activityPUTLinks the specified activity to this version of the entity
/entity to the provided activity/{id}/activityGETReturns the activity linked to the current version of the specified entity.
/entity/{id}/version/{versionNumber}/activityGETReturns the activity linked to this specific version of the entity.
Provenance Additions to the API

...