Skip to content

Instantly share code, notes, and snippets.

{
"@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": [
{
curl -X GET "http://todosapp.com/api/version_7/spec#EntryPoint
{
"@context": { "@vocab": "http://todosapp.com/api/vocab#" },
"@id": "http://todosapp.com/api/version_7/#self",
"@type": "http://todosapp.com/api/vocab#EntryPoint",
"users_url": { "@id": "http://todosapp.com/api/version_7/users#self" }
}
curl -X GET "http://todosapp.com/api/version_7/
{
"@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": [
{
curl -X GET "http://todosapp.com/api/version_6/spec#EntryPoint
{
"@context": { "@vocab": "http://todosapp.com/api/vocab#" },
"@id": "http://todosapp.com/api/version_6/#self",
"@type": "http://todosapp.com/api/version_6/spec#EntryPoint",
"users_url": { "@id": "http://todosapp.com/api/version_6/users#self" }
}
#%RAML 1.0
title: Todos Service
baseUri: http://todosapp.com/api/version_6
mediaType: application/json+ld
types:
URI: string
Operation:
method:
{
"@context": { "@vocab": "http://todosapp.com/api/vocab#" },
"@id": "http://todosapp.com/api/version_5/users/1#self",
"resource_type": "User",
"name": "John Doo",
"email": "john.doo@test.com",
"described_by": { "@id": "http://todosapp.com/api/version_5/spec.raml" },
"todos": {
"@id": "http://todosapp.com/api/version_4/todos#self",
"operations": [
#%RAML 1.0
title: Todos Service
baseUri: http://todosapp.com/api/version_5
mediaType: [ application/ld+json, application/json, application/xml ]
types:
URI: string
Type: string
Operation: