Skip to content

Instantly share code, notes, and snippets.

@antoniogarrote
Created September 8, 2016 16:15
Show Gist options
  • Save antoniogarrote/f69c516d484570e2df7b7d83cfc14f8a to your computer and use it in GitHub Desktop.
Save antoniogarrote/f69c516d484570e2df7b7d83cfc14f8a to your computer and use it in GitHub Desktop.
#%RAML 1.0
title: Todos Service
baseUri: http://todosapp.com/api/version_3_3
mediaType: [ application/ld+json, application/json, application/xml ]
types:
URI: string
Link:
properties:
@id: URI
Context:
properties:
@vocab: URI
EntryPoint:
@context: Context
@id: URI
users: Link
User:
properties:
@context: Context
@id: URI
email: string
name: string
todos: Link
Todo:
properties:
@context: Context
@id: URI
title: string
description: string
user: Link
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