Created
September 8, 2016 16:16
-
-
Save antoniogarrote/3b63afe4aa2df4d5486be4bbab3bd36b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#%RAML 1.0 | |
title: Todos Service | |
baseUri: http://todosapp.com/api/version_4 | |
mediaType: [ application/ld+json, application/json, application/xml ] | |
types: | |
URI: string | |
Type: string | |
Operation: | |
method: | |
enum: [ GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS ] | |
expects: Type | |
returns: Type | |
Link: | |
properties: | |
@id: URI | |
operations: Operation[] | |
Context: | |
properties: | |
@vocab: URI | |
EntryPoint: | |
@context: Context | |
@id: URI | |
users: Link | |
UserTemplate: | |
properties: | |
name?: string | |
email: string | |
User: | |
properties: | |
@context: Context | |
@id: URI | |
email: string | |
name: string | |
todos: Link | |
Todo: | |
properties: | |
@context: Context | |
@id: URI | |
title: string | |
description: string | |
user: Link | |
TodoTemplate: | |
properties: | |
title: string | |
description?: string | |
Collection: | |
properties: | |
@context: Context | |
@id: URI | |
members: Link[] | |
/: | |
get: | |
description: Entry point for the application | |
responses: | |
200: | |
body: EntryPoint |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment