Skip to content

Instantly share code, notes, and snippets.

@antoniogarrote
Last active September 8, 2016 16:29
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/2a09881ec3f6ec596ffcfd5f7a798b2a to your computer and use it in GitHub Desktop.
Save antoniogarrote/2a09881ec3f6ec596ffcfd5f7a798b2a to your computer and use it in GitHub Desktop.
{
"@context": { "@vocab": "http://todosapp.com/api/vocab#" },
"@id": "http://todosapp.com/api/version_6/spec#self",
"@type": "http://todosapp.com/api/version_6/spec#ApiDocumentation",
"entryPoint": { "@id":"http://todosapp.com/api/version_6/#self" },
"classes": [
{
"@id": "http://todosapp.com/api/version_6/spec#EntryPoint",
"operations": [
{
"method": "GET",
"returns": { "@id": "http://todosapp.com/api/vocab#EntryPoint" }
}
],
"links": [
{
"@id": "http://todosapp.com/api/vocab#users_url",
"operations": [
{
"method": "GET",
"returns": { "@id": "http://todosapp.com/api/vocab#Collection" }
},
{
"method": "POST",
"expects": {
"@type": "http://todosapp.com/api/vocab#Class",
"properties": [
{
"@id": "http://todosapp.com/api/vocab#name",
"range": { "@id": "http://www.w3.org/2001/XMLSchema#String" }
},
{
"@id": "http://todosapp.com/api/vocab#email",
"range": { "@id": "http://www.w3.org/2001/XMLSchema#String" }
}
]
},
"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