Skip to content

Instantly share code, notes, and snippets.

@augensalat
Created March 5, 2019 11:50
Show Gist options
  • Save augensalat/f0d47ed8bb02b42fb79665c3b68ea38a to your computer and use it in GitHub Desktop.
Save augensalat/f0d47ed8bb02b42fb79665c3b68ea38a to your computer and use it in GitHub Desktop.
{
"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