Skip to content

Instantly share code, notes, and snippets.

@antoniogarrote
Last active September 8, 2016 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antoniogarrote/0f6423ffe17e6afa9f0639efdd5b93ac to your computer and use it in GitHub Desktop.
Save antoniogarrote/0f6423ffe17e6afa9f0639efdd5b93ac to your computer and use it in GitHub Desktop.
{
"@context": {
"hydra": "http://www.w3.org/ns/hydra/core#"
},
"@id": "http://todosapp.com/api/vocab#self",
"@type": "hydra:ApiDocumentation",
"hydra:entryPoint": { "@id":"http://todosapp.com/api/version_7/#self" },
"hydra:supportedClass": [
{
"@id": "http://todosapp.com/api/vocab#User",
"@type": "hydra:Class",
"hydra:supportedOperation": [
{
"hydra:method": "GET",
"hydra:returns": { "@id": "http://todosapp.com/api/vocab#User" }
},
{
"hydra:method": "DELETE"
}
],
"hydra:supportedProperty": [
{
"hydra:property": {
"@id": "http://todosapp.com/api/vocab#name",
"rdfs:range": "xsd:string"
},
"readonly": false,
"required": false
},
{
"hydra:property": {
"@id": "http://todosapp.com/api/vocab#email",
"rdfs:range": "xsd:string"
},
"readonly": false,
"required": true
},
{
"hydra:property": {
"@id": "http://todosapp.com/api/vocab#todos",
"@type": "hydra:Link",
"hydra:supportedOperation": [
{
"hydra:method": "GET",
"hydra:returns": { "@id": "hydra:Collection" }
},
{
"hydra:method": "POST",
"hydra:expects": { "@id": "http://todosapp.com/api/vocab#Todo" },
"hydra:returns": { "@id": "http://todosapp.com/api/vocab#Todo" }
},
]
}
}
]
},
{
"@id": "http://todosapp.com/api/vocab#Todo",
"@type": "hydra:Class",
"hydra:supportedOperation": [
{
"hydra:method": "GET",
"hydra:returns": { "@id": "http://todosapp.com/api/vocab#Todo" }
},
{
"hydra:method": "DELETE"
}
],
"hydra:supportedProperty": [
{
"hydra:property": {
"@id": "http://todosapp.com/api/vocab#title",
"rdfs:range": "xsd:string"
},
"readonly": false,
"required": true
},
{
"hydra:property": {
"@id": "http://todosapp.com/api/vocab#description",
"rdfs:range": "xsd:string"
},
"readonly": false,
"required": false
},
{
"hydra:property": {
"@id": "http://todosapp.com/api/vocab#user",
"@type": "hydra:Link",
"hydra:supportedOperation": [
{
"hydra:method": "GET",
"hydra:returns": { "@id": "http://todosapp.com/api/vocab#User" }
}
]
}
}
]
},
{
"@id": "http://todosapp.com/api/vocab#EntryPoint",
"@type": "hydra:Class",
"hydra:supportedOperation": [
{
"hydra:method": "GET",
"hydra:returns": { "@id": "http://todosapp.com/api/vocab#EntryPoint" }
}
],
"hydra:supportedProperty": [
{
"hydra:property": {
"@id": "http://todosapp.com/api/vocab#users_url",
"@type": "hydra:Link",
"hydra:supportedOperation": [
{
"hydra:method": "GET",
"hydra:returns": { "@id": "hydra:Collection" }
},
{
"hydra:method": "POST",
"hydra:expects": { "@id": "http://todosapp.com/api/vocab#User" },
"hydra:returns": { "@id": "http://todosapp.com/api/vocab#User" }
},
]
}
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment