Skip to content

Instantly share code, notes, and snippets.

@martkoehler
Created November 13, 2015 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martkoehler/8da188ca918fa1ee429a to your computer and use it in GitHub Desktop.
Save martkoehler/8da188ca918fa1ee429a to your computer and use it in GitHub Desktop.
{
"swagger" : "2.0",
"info" : {
"version" : "1.0-SNAPSHOT",
"title" : "Swagger Maven Plugin Showcase"
},
"tags" : [ {
"name" : "customer"
} ],
"paths" : {
"/customer" : {
"get" : {
"tags" : [ "customer" ],
"summary" : "Find all customers",
"description" : "",
"operationId" : "getCustomers",
"produces" : [ "application/json", "application/xml" ],
"responses" : {
"default" : {
"description" : "successful operation"
}
}
}
},
"/customer/{id}" : {
"get" : {
"tags" : [ "customer" ],
"summary" : "Find customer by id",
"description" : "",
"operationId" : "getCustomer",
"produces" : [ "application/json", "application/xml" ],
"parameters" : [ {
"name" : "id",
"in" : "path",
"required" : true,
"type" : "integer",
"pattern" : "[1-9][0-9]*",
"format" : "int64"
} ],
"responses" : {
"default" : {
"description" : "successful operation"
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment