Created
November 13, 2015 13:20
-
-
Save martkoehler/8da188ca918fa1ee429a 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", | |
"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