Skip to content

Instantly share code, notes, and snippets.

{
"@context": { "@vocab": "http://todosapp.com/api/vocab#" },
"@id": "http://todosapp.com/api/version_4/users/1#self",
"name": "John Doo",
"email": "[email protected]",
"todos": {
"@id": "http://todosapp.com/api/version_4/todos#self",
"operations": [
{
"method": "GET",
SELECT ?resource ?method
WHERE {
?resource <http://todosapp.com/api/vocab#oerations> ?operation .
?operation <http://todosapp.com/api/vocab#method> ?method .
}
ORDER BY(?resource)
| ?resource | ?method |
|-------------------------------------------------|------------|
| <http://todosapp.com/api/version_4/todos#self> | GET |
| <http://todosapp.com/api/version_4/todos#self> | POST |
|-------------------------------------------------|------------|
#%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:
{
"@context": { "@vocab": "http://todosapp.com/api/vocab#" },
"@id": "http://todosapp.com/api/version_5/users/1#self",
"resource_type": "User",
"name": "John Doo",
"email": "[email protected]",
"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_6
mediaType: application/json+ld
types:
URI: string
Operation:
method:
{
"@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" }
}
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/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_7/