Feed /{ressource-type}/{ressource-id}/feed

The feed of a ressource.

Reading

GET /{ressource-type}/{ressource-id}/feed HTTP/1.1
Host: localhost:3000

Permissions

  • The applied permissions to retrieve the parent ressource are required.

Fields

An array of Post objects attached to the parent ressource and whose its retrieve permissions are granted.

Publishing

POST /{ressource-type}/{ressource-id}/feed HTTP/1.1
Host: localhost:3000

Permissions

  • An access token (pointing to an user) with workspace_speaking and publish_speaking permissions is required.
  • At least one of the following criteria must be met :
    • The parent ressource is owned by the current person.
    • The parent ressource is shared (with SPEAK or MANAGE permission) with the current person.
    • The current person is an admin (with MANAGE permission) of the workspace at witch is attached the parent ressource.

Fields

Name Description Type

message

The message of the post.

string

subject

The subject of the post.
Must be a subject belonging to the Group subjects.

string

Response

If successful :

{
    "success" : true,
    "_id" : "..."
}

Otherwise a relevant error message will be returned.

Updating

You can update posts by using the /post edge.

Deleting

You can delete posts by using the /post edge.