Last active
September 30, 2015 19:31
-
-
Save yhaskell/fbb3d89bdd3ee00c6794 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 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: | |
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
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