[deepamehta-devel] Question: How to check via REST if an association is ..

Jörg Richter jri at deepamehta.de
Tue Feb 23 20:36:24 CET 2016


On Feb 22, 2016, at 21:34, Malte Reissig wrote:

> i am currently in search of a HTTP Resource in DeepaMehta 4 which tells me
> 
> a) to which workspace an association (i have the ID of the Association) and/or

To get the workspace a topic/association is assigned to:

	GET /workspace/object/1234

Here 1234 is the ID of a topic or an association.

The response is the workspace topic as JSON:

	{
	  "id": 4029,
	  "uri": "crowd.workspace",
	  "type_uri": "dm4.workspaces.workspace",
	  "value": "CROWD",
	  "childs": {...}
	}

If no workspace is assigned the response is 204 No Content.

If the caller has no READ access to the workspace the response is 401 Unauthorized.

> b) if an assoc is assigned to a specific workspace (of which i also have the ID)

Use the same request as in a)

> Ok, Thanks for your support!

You're welcome!

Cheers,
Jörg



More information about the devel mailing list