Help / Events

Events

babylon-projekt/developer articles

The data manipulation event.

can be one of FileUpload, API-Request, Fork

List data-events for a repository

GET /:namespace/repositories/:repo/data/events

Create data-events through the API

POST /:namespace/repositories/:repo/data/events

Example

curl --header "Content-Type: application/json" \
  --header "Authorization: Bearer a7cd8296e36e8ec4b9b2d5f3dc0048e07173313a8e5ca44595426b7baa3aee04" \
  --request POST \
  --data '{
    "note":"initial commit", 
    "commits_attributes":[{"type":"Aggregation::Commit::Legacy", "identifier":{"id":"X005", "type":"bab_rel", "agent":"Tobias Schmidt M.A."}, "payload": {"name":"Hello1", "location":"southern hemnisphere"}}, {"type":"Aggregation::Commit::Legacy", "identifier":{"id":"X006", "type":"bab_rel", "agent":"Tobias Schmidt M.A."}, "payload": {"name":"World1", "location":"northern hemnisphere"}}]}' \
  http://api.dev.local:3000/v1/toboter/repositories/test/data/events