Tomasz, Hydra, , . , , , Hydra JSON-LD:
{
"@context": {
"schema": "http://schema.org",
"ex": "http://example.com/myvocab#"
},
"@id": "/users/123",
"@type": [ "schema:Person", "hydra:Resource" ],
"name": "Jon Snow",
"ex:link": { "@id": "/another-resource" }
}
"self" (@id ), , ex:link. , http://example.com/myvocab#link, "href" /another-resource. /, , , , ( ):
{
"@context": {
"ex": "http://example.com/myvocab#",
"hydra": "http://www.w3.org/ns/hydra#"
},
"@id": "ex:link",
"@type": "hydra:Link",
"hydra:title": "My new link relation",
"hydra:supportedOperation": [
{
"@type": "hydra:Operation",
"hydra:method": "POST",
"hydra:expects": ....
}
]
}
Btw. Hydra vocab, . , , .
- . , . , HydraBundle . . , , . , , .
Hydra W3C. .
: Hydra Hydra W3C.