Hydra + JSON-LD design question

Hi,

I m looking for a way to specify an operation on a particular resource instance: the operation's URL and HTTP method should be specifiable. Example (please check the last 3 lines):

{
  "@context":"https://contexts.dictionary.mycompany-group.com/person.jsonld",
  "@id":"https://myapi.mycompany.com/persons/BE14A7269802498F992813885546D058",
  "@type":"https://schema.org/Person",
  "name": "Mustermann",
  "operation"
    : [
      {"@type": "DeleteResourceOperation","method": "DELETE"},
      {"@type": "ReplaceResourceOperation","method": "PUT"}
      ],

	// now how would one specify this with JSON-LD augmented by HYDRA?
{"@type": "some_special_operation","method": "POST", URL:"https://myapi.mycompany.com/persons/BE14A7269802498F992813885546D058/some_special_operation"}
}
Kind regards,

Jay

Received on Thursday, 15 December 2016 13:32:47 UTC