Created
September 8, 2016 16:20
-
-
Save antoniogarrote/0be0ccba1ac907f73d0b446c38ad372d 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
#%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: | |
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 | |
described_by: Link | |
resource_type: Type | |
users: Link | |
UserTemplate: | |
properties: | |
name: string | |
email?: string | |
User: | |
properties: | |
@context: Context | |
@id: URI | |
described_by: Link | |
resource_type: Type | |
email: string | |
name: string | |
todos: Link | |
Todo: | |
properties: | |
@context: Context | |
@id: URI | |
described_by: Link | |
resource_type: Type | |
title: string | |
description: string | |
user: Link | |
TodoTemplate: | |
properties: | |
title: string | |
description?: string | |
Collection: | |
properties: | |
@context: Context | |
@id: URI | |
described_by: Link | |
resource_type: Type | |
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