Skip to content

Instantly share code, notes, and snippets.

@SeanSilke

SeanSilke/api.raml Secret

Created Nov 11, 2016
Embed
What would you like to do?
#%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