private function getHydraDoc()
{
$hydraDocJson = <<<JSON
{
"hydra:supportedClass": [
{
"@id": "#Dummy",
"hydra:title": "Dummy",
"hydra:supportedOperation": [
{
"hydra:method": "GET",
"hydra:title": "Retrieves Dummy resource.",
"returns": "#Dummy"
},
{
"expects": "#Dummy",
"hydra:method": "PUT",
"hydra:title": "Replaces the Dummy resource.",
"returns": "#Dummy"
},
{
"hydra:method": "DELETE",
"hydra:title": "Deletes the Dummy resource.",
"returns": "owl:Nothing"
}
]
},
{
"@id": "#Entrypoint",
"hydra:supportedProperty": [
{
"hydra:property": {
"@id": "#Entrypoint\\/dummy",
"hydra:supportedOperation": [
{
"hydra:method": "GET",
"hydra:title": "Retrieves the collection of Dummy resources.",
"returns": "hydra:PagedCollection"
},
{
"expects": "#Dummy",
"hydra:method": "POST",
"hydra:title": "Creates a Dummy resource.",
"returns": "#Dummy"
}
]
}
}
]
}
]
}
JSON;
return json_decode($hydraDocJson, true);
}