Created
March 5, 2019 11:50
-
-
Save augensalat/f0d47ed8bb02b42fb79665c3b68ea38a 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
{ | |
"swagger" : "2.0", | |
"x-bundled" : { | |
"__definitions_DefaultResponse" : { | |
"type" : "object", | |
"properties" : { | |
"errors" : { | |
"items" : { | |
"type" : "object", | |
"required" : [ | |
"message" | |
], | |
"properties" : { | |
"path" : { | |
"type" : "string" | |
}, | |
"message" : { | |
"type" : "string" | |
} | |
} | |
}, | |
"type" : "array" | |
} | |
}, | |
"required" : [ | |
"errors" | |
] | |
} | |
}, | |
"schemes" : [ | |
"http" | |
], | |
"basePath" : "/api", | |
"host" : "127.0.0.1:3000", | |
"definitions" : { | |
"DefaultResponse" : { | |
"required" : [ | |
"errors" | |
], | |
"properties" : { | |
"errors" : { | |
"type" : "array", | |
"items" : { | |
"type" : "object", | |
"properties" : { | |
"path" : { | |
"type" : "string" | |
}, | |
"message" : { | |
"type" : "string" | |
} | |
}, | |
"required" : [ | |
"message" | |
] | |
} | |
} | |
}, | |
"type" : "object" | |
} | |
}, | |
"info" : { | |
"version" : "0.8", | |
"title" : "Pets" | |
}, | |
"paths" : { | |
"/echo" : { | |
"post" : { | |
"x-mojo-name" : "echo", | |
"responses" : { | |
"404" : { | |
"description" : "Default response.", | |
"schema" : { | |
"$ref" : "#/x-bundled/__definitions_DefaultResponse" | |
} | |
}, | |
"400" : { | |
"schema" : { | |
"$ref" : "#/x-bundled/__definitions_DefaultResponse" | |
}, | |
"description" : "Default response." | |
}, | |
"501" : { | |
"description" : "Default response.", | |
"schema" : { | |
"$ref" : "#/x-bundled/__definitions_DefaultResponse" | |
} | |
}, | |
"200" : { | |
"schema" : { | |
"type" : "object" | |
}, | |
"description" : "Echo response" | |
}, | |
"500" : { | |
"description" : "Default response.", | |
"schema" : { | |
"$ref" : "#/x-bundled/__definitions_DefaultResponse" | |
} | |
}, | |
"401" : { | |
"description" : "Default response.", | |
"schema" : { | |
"$ref" : "#/x-bundled/__definitions_DefaultResponse" | |
} | |
} | |
}, | |
"parameters" : [ | |
{ | |
"in" : "body", | |
"name" : "body", | |
"schema" : { | |
"type" : "object" | |
} | |
} | |
] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment