Skip to content

Instantly share code, notes, and snippets.

@antoniogarrote
Created September 8, 2016 16:20
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/0be0ccba1ac907f73d0b446c38ad372d to your computer and use it in GitHub Desktop.
Save antoniogarrote/0be0ccba1ac907f73d0b446c38ad372d to your computer and use it in GitHub Desktop.
#%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