Notifications Events:
For every resource whose state is changed as a result of an HTTP operation, there must be a corresponding notification made available describing that change.
Examples
Code Block |
---|
title | A minimal notification |
---|
|
{
"@context": "https://www.w3.org/ns/activitystreams",
"id": "urn:uuid:3c834a8f-5638-4412-aa4b-35ea80416a18",
"type": "Create",
"name": "Resource Creation",
"actor": "http://example.org/agent/fedoraAdmin",
"object": {
"id": "http://example.org/fcrepo/rest/resource/path",
"type": [
"ldp:Container",
"ldp:RDFSource"
]
}
} |
Code Block |
---|
title | A basic notification with some additional detail |
---|
|
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"isPartOf": {
"@id": "http://purl.org/dc/terms/isPartOf",
"@type": "@id"
}
}
],
"id": "urn:uuid:be29ae69-2134-f1b0-34be-2f91b6d1f029",
"type": "Update",
"name": "Resource Modification",
"published": "2016-07-04T13:46:39Z",
"inbox": "http://example.org/ldn/inbox/path",
"actor": [
{
"id": "#actor0",
"type": "Person",
"name": "fedo raAdmin"
},
{
"id": "#actor1",
"type": "Service",
"name": "APIX-core/0.1"
}
],
"object": {
"id": "http://example.org/fcrepo/rest/resource/path",
"updated": "2016-07-04T13:44:39Z",
"type": [
"ldp:Container",
"ldp:RDFSource",
"http://example.org/type/CustomType"
],
"isPartOf": "http://example.org/fcrepo/rest/"
}
} |
Info |
---|
Stay tuned for content... 2016-06-01 |