Skip to content

Instantly share code, notes, and snippets.

@yhaskell
Last active September 30, 2015 19:31
Show Gist options
  • Save yhaskell/fbb3d89bdd3ee00c6794 to your computer and use it in GitHub Desktop.
Save yhaskell/fbb3d89bdd3ee00c6794 to your computer and use it in GitHub Desktop.
#%RAML 0.8
title: New API
version: v1
baseUri: http://api.samplehost.com
/helloWorld:
get:
responses:
200:
body:
application/json:
example: |
{
"message" : "Hello World"
}
/first:
get:
post:
responses:
200:
body:
application/json:
example: |
{
"message": "Hello World!"
}
/second:
put:
/fstest:
get:
var node = manager.ast // get root ast node somehow
var method = node.elementsOfKind("resources")[1].elementsOfKind("methods")
if (!node || !node.parent()) return false;
var parent = node.parent();
parent.remove(node);
var vstart = parent.lowLevel().valueStart() // raises exception
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment