Skip to content

Instantly share code, notes, and snippets.

@CodeLenny
Last active March 16, 2017 19:50
Show Gist options
  • Save CodeLenny/5a7a82357a07b09f8d6d2b05a764f2fe to your computer and use it in GitHub Desktop.
Save CodeLenny/5a7a82357a07b09f8d6d2b05a764f2fe to your computer and use it in GitHub Desktop.
REST API Endpoint
{
"document": {
"$ref": "document.json"
},
"value": {
"$ref": "document.json#bar/baz"
}
}
document:
"$ref": "document.yml"
value:
"$ref": "document.yml#bar/baz"
{
"foo": 1,
"bar": {
"baz": 5
},
"arr": ["one", "two"]
}
foo: 1
bar:
baz: 5
arr:
- one
- two
{
"$ref": "simple.json"
}
"$ref": "simple.yml"
{
"foo": 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment