Skip to content

Instantly share code, notes, and snippets.

@ponelat
Last active August 29, 2015 14:20
Show Gist options
  • Save ponelat/b2a06fe3000c9ff3a442 to your computer and use it in GitHub Desktop.
Save ponelat/b2a06fe3000c9ff3a442 to your computer and use it in GitHub Desktop.
External $ref in path
{
"swagger": "2.0",
"basePath": "http://localhost:3000/s/",
"host": "petstore.swagger.wordnik.com",
"info": {
"title": "swagger-ui#1234",
"title": "Describe your issue here",
"version": "1.0.0"
},
"paths": {
"/road": {
"$ref": "http://localhost:3000/s/ui-1093.paths.json"
},
"/street": {
"$ref": "ui-1093.paths.json"
}
}
}
{
"get": {
"parameters": [
{
"in": "body",
"name": "josh",
"schema": {
"properties": {
"Favorite": {
"type": "boolean"
}
},
"type": "object"
}
}
],
"responses": {
"200": {
"description": "Successful response",
"schema": {
"type": "string"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment