Last active
September 8, 2016 16:33
-
-
Save antoniogarrote/0f6423ffe17e6afa9f0639efdd5b93ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@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