Skip to content

Instantly share code, notes, and snippets.

@SeanSilke
Created November 11, 2016 20:00
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 SeanSilke/e5a2f7673ad4aa2aa43ba800c9aec31b to your computer and use it in GitHub Desktop.
Save SeanSilke/e5a2f7673ad4aa2aa43ba800c9aec31b to your computer and use it in GitHub Desktop.
#%RAML 0.8
title: simple API
baseUri: http://localhost:3000
/song:
get:
responses:
200:
body:
application/json:
schema: !include schema.json
example: |
{
"songId": "e29b",
"songTitle": "The song",
"albumId": "18310"
}
{
"type": "string"
}
{
"$schema": "http://json-schema.org/draft-03/schema",
"type": "object",
"properties":{
"songId": {"$ref": "fref.json"}
},
"required": ["songId", "albumId", "songTitle"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment