Created
September 8, 2016 16:25
-
-
Save antoniogarrote/f00ef75c9cec4494751db305bb6567be 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_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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just wondering if/how did you get the RAML parser to be happy with the @ prefix to property names?