Skip to content

Instantly share code, notes, and snippets.

@antoniogarrote
Created September 8, 2016 16:25
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/f00ef75c9cec4494751db305bb6567be to your computer and use it in GitHub Desktop.
Save antoniogarrote/f00ef75c9cec4494751db305bb6567be to your computer and use it in GitHub Desktop.
#%RAML 1.0
title: Todos Service
baseUri: http://todosapp.com/api/version_6
mediaType: application/json+ld
types:
URI: string
Operation:
method:
enum: [ GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS ]
expects: Link
returns: Link
Link:
properties:
@id: URI
operations: Operation[]
Context:
properties:
@vocab: URI
Class:
@id: URI
operations: Operation[]
properties:
@id: URI
domain: URI
range: URI
links: Link[]
Resource:
@id: URI
@type: URI
ApiDocumentation:
@id: URI
@type: URI
classes: Class[]
entryPoint: URI
/spec:
get:
description: API specification
200:
body: ApiDocumentation
/:
get:
description: Entry point for the application
responses:
200:
body: Resource
@infitude
Copy link

infitude commented Feb 4, 2017

Just wondering if/how did you get the RAML parser to be happy with the @ prefix to property names?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment