Interactions-HSG / yggdrasil

A framework for programming distributed hypermedia environments for autonomous agents.
https://interactions-hsg.github.io/yggdrasil/
Apache License 2.0
7 stars 8 forks source link

Down with a RPC-like workspace API! #39

Open cake-lier opened 8 months ago

cake-lier commented 8 months ago

Context

As the documentation goes, joining and leaving a workspace create and delete, respectively, an artifact in the said workspace, which represents the body of the agent that did that particular action. Moreover, following this idea, the endpoint for joining a workspace returns the body RDF representation in Turtle format.

Proposed change

These two operations should be offered by two endpoints referring to the agent's body resource: the joining would be done by a POST request on the resource (or on the collection of resources) and the leaving by a DELETE request on the resource.

Pros

Cons