Created
March 15, 2017 13:56
-
-
Save DavidBiesack/f635d3504320cba1701f2e35ad9379d3 to your computer and use it in GitHub Desktop.
swagger-codegen 2.2.2-SNAPSHOT output using -debugOperations
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
[ { | |
"importPath" : ".PersonalPet", | |
"licenseUrl" : "http://www.apache.org/licenses/LICENSE-2.0.html", | |
"appVersion" : "1.0.0", | |
"generatorClass" : "io.swagger.codegen.languages.StaticHtml2Generator", | |
"modelPackage" : "", | |
"sortParamsByRequiredFlag" : true, | |
"groupId" : "io.swagger", | |
"hasMore" : "true", | |
"licenseInfo" : "Apache 2.0", | |
"invokerPackage" : "io.swagger.client", | |
"classVarName" : "personalPet", | |
"hasImport" : true, | |
"generateModelTests" : true, | |
"basePathWithoutHost" : "/v2", | |
"generateApiTests" : true, | |
"classFilename" : "PersonalPetApi", | |
"operations" : { | |
"classname" : "PersonalPetApi", | |
"operation" : [ { | |
"responseHeaders" : [ ], | |
"hasAuthMethods" : true, | |
"hasConsumes" : true, | |
"hasProduces" : true, | |
"hasParams" : true, | |
"hasOptionalParams" : false, | |
"returnTypeIsPrimitive" : false, | |
"returnSimpleType" : false, | |
"subresourceOperation" : false, | |
"isMapContainer" : false, | |
"isListContainer" : false, | |
"isMultipart" : false, | |
"hasMore" : true, | |
"isResponseBinary" : false, | |
"isResponseFile" : false, | |
"hasReference" : false, | |
"isRestfulIndex" : false, | |
"isRestfulShow" : false, | |
"isRestfulCreate" : false, | |
"isRestfulUpdate" : false, | |
"isRestfulDestroy" : false, | |
"isRestful" : false, | |
"path" : "/pet", | |
"operationId" : "addPet", | |
"httpMethod" : "post", | |
"summary" : "Add a new pet to the store", | |
"unescapedNotes" : "", | |
"notes" : "", | |
"baseName" : "PersonalPet", | |
"consumes" : [ { | |
"hasMore" : "true", | |
"mediaType" : "application/json" | |
}, { | |
"hasMore" : null, | |
"mediaType" : "application/xml" | |
} ], | |
"produces" : [ { | |
"hasMore" : "true", | |
"mediaType" : "application/xml" | |
}, { | |
"hasMore" : null, | |
"mediaType" : "application/json" | |
} ], | |
"bodyParam" : { | |
"isBodyParam" : true, | |
"baseName" : "body", | |
"paramName" : "body", | |
"dataType" : "Pet", | |
"description" : "Pet object that needs to be added to the store", | |
"unescapedDescription" : "Pet object that needs to be added to the store", | |
"baseType" : "Pet", | |
"jsonSchema" : "{\n \"in\" : \"body\",\n \"name\" : \"body\",\n \"description\" : \"Pet object that needs to be added to the store\",\n \"required\" : true,\n \"schema\" : {\n \"$ref\" : \"#/definitions/Pet\"\n }\n}", | |
"isBinary" : false, | |
"isEnum" : false, | |
"vendorExtensions" : { | |
"x-codegen-hasMoreRequired" : false | |
}, | |
"required" : true | |
}, | |
"allParams" : [ { | |
"isBodyParam" : true, | |
"baseName" : "body", | |
"paramName" : "body", | |
"dataType" : "Pet", | |
"description" : "Pet object that needs to be added to the store", | |
"unescapedDescription" : "Pet object that needs to be added to the store", | |
"baseType" : "Pet", | |
"jsonSchema" : "{\n \"in\" : \"body\",\n \"name\" : \"body\",\n \"description\" : \"Pet object that needs to be added to the store\",\n \"required\" : true,\n \"schema\" : {\n \"$ref\" : \"#/definitions/Pet\"\n }\n}", | |
"isBinary" : false, | |
"isEnum" : false, | |
"vendorExtensions" : { | |
"x-codegen-hasMoreRequired" : false | |
}, | |
"required" : true | |
} ], | |
"bodyParams" : [ { | |
"isBodyParam" : true, | |
"baseName" : "body", | |
"paramName" : "body", | |
"dataType" : "Pet", | |
"description" : "Pet object that needs to be added to the store", | |
"unescapedDescription" : "Pet object that needs to be added to the store", | |
"baseType" : "Pet", | |
"jsonSchema" : "{\n \"in\" : \"body\",\n \"name\" : \"body\",\n \"description\" : \"Pet object that needs to be added to the store\",\n \"required\" : true,\n \"schema\" : {\n \"$ref\" : \"#/definitions/Pet\"\n }\n}", | |
"isBinary" : false, | |
"isEnum" : false, | |
"vendorExtensions" : { }, | |
"required" : true | |
} ], | |
"pathParams" : [ ], | |
"queryParams" : [ ], | |
"headerParams" : [ ], | |
"formParams" : [ ], | |
"authMethods" : [ { | |
"name" : "petstore_auth", | |
"type" : "oauth2", | |
"hasMore" : false, | |
"isBasic" : false, | |
"isOAuth" : true, | |
"isApiKey" : false, | |
"isKeyInQuery" : false, | |
"isKeyInHeader" : false, | |
"flow" : "implicit", | |
"authorizationUrl" : "http://petstore.swagger.io/oauth/dialog", | |
"scopes" : [ { | |
"scope" : "write:pets", | |
"hasMore" : "true", | |
"description" : "modify pets in your account" | |
}, { | |
"scope" : "read:pets", | |
"hasMore" : null, | |
"description" : "read your pets" | |
} ], | |
"isCode" : false, | |
"isPassword" : false, | |
"isApplication" : false, | |
"isImplicit" : true | |
} ], | |
"tags" : [ "PersonalPet" ], | |
"responses" : [ { | |
"headers" : [ ], | |
"code" : "405", | |
"message" : "Invalid input", | |
"hasMore" : false, | |
"isDefault" : false, | |
"simpleType" : true, | |
"primitiveType" : true, | |
"isMapContainer" : false, | |
"isListContainer" : false, | |
"isBinary" : false, | |
"isFile" : false, | |
"jsonSchema" : "{\n \"description\" : \"Invalid input\"\n}", | |
"vendorExtensions" : { }, | |
"wildcard" : false | |
} ], | |
"imports" : [ "Pet" ], | |
"vendorExtensions" : { | |
"x-codegen-hasRequiredParams" : true | |
}, | |
"nickname" : "addPet", | |
"operationIdLowerCase" : "addpet", | |
"restfulShow" : false, | |
"restfulIndex" : false, | |
"restfulCreate" : false, | |
"restfulUpdate" : false, | |
"restfulDestroy" : false, | |
"restful" : false, | |
"hasBodyParam" : true, | |
"hasHeaderParams" : false, | |
"hasPathParams" : false, | |
"hasFormParams" : false, | |
"hasExamples" : false, | |
"hasQueryParams" : false | |
}, { | |
"responseHeaders" : [ ], | |
"hasAuthMethods" : true, | |
"hasConsumes" : false, | |
"hasProduces" : true, | |
"hasParams" : true, | |
"hasOptionalParams" : true, | |
"returnTypeIsPrimitive" : false, | |
"returnSimpleType" : false, | |
"subresourceOperation" : false, | |
"isMapContainer" : false, | |
"isListContainer" : false, | |
"isMultipart" : false, | |
"hasMore" : true, | |
"isResponseBinary" : false, | |
"isResponseFile" : false, | |
"hasReference" : false, | |
"isRestfulIndex" : false, | |
"isRestfulShow" : false, | |
"isRestfulCreate" : false, | |
"isRestfulUpdate" : false, | |
"isRestfulDestroy" : false, | |
"isRestful" : false, | |
"path" : "/pet/{petId}", | |
"operationId" : "deletePet", | |
"httpMethod" : "delete", | |
"summary" : "Deletes a pet", | |
"unescapedNotes" : "", | |
"notes" : "", | |
"baseName" : "PersonalPet", | |
"produces" : [ { | |
"hasMore" : "true", | |
"mediaType" : "application/xml" | |
}, { | |
"hasMore" : null, | |
"mediaType" : "application/json" | |
} ], | |
"allParams" : [ { | |
"isPathParam" : true, | |
"hasMore" : true, | |
"isPrimitiveType" : true, | |
"baseName" : "petId", | |
"paramName" : "petId", | |
"dataType" : "Long", | |
"dataFormat" : "int64", | |
"description" : "Pet id to delete", | |
"unescapedDescription" : "Pet id to delete", | |
"example" : "789", | |
"jsonSchema" : "{\n \"name\" : \"petId\",\n \"in\" : \"path\",\n \"description\" : \"Pet id to delete\",\n \"required\" : true,\n \"type\" : \"integer\",\n \"format\" : \"int64\"\n}", | |
"isLong" : true, | |
"isEnum" : false, | |
"vendorExtensions" : { | |
"x-codegen-hasMoreRequired" : false | |
}, | |
"required" : true | |
}, { | |
"isHeaderParam" : true, | |
"secondaryParam" : true, | |
"isPrimitiveType" : true, | |
"baseName" : "api_key", | |
"paramName" : "apiKey", | |
"dataType" : "String", | |
"example" : "apiKey_example", | |
"jsonSchema" : "{\n \"name\" : \"api_key\",\n \"in\" : \"header\",\n \"required\" : false,\n \"type\" : \"string\"\n}", | |
"isString" : true, | |
"isEnum" : false, | |
"vendorExtensions" : { | |
"x-codegen-hasMoreOptional" : false | |
} | |
} ], | |
"bodyParams" : [ ], | |
"pathParams" : [ { | |
"isPathParam" : true, | |
"baseName" : "petId", | |
"paramName" : "petId", | |
"dataType" : "Long", | |
"dataFormat" : "int64", | |
"description" : "Pet id to delete", | |
"unescapedDescription" : "Pet id to delete", | |
"example" : "789", | |
"jsonSchema" : "{\n \"name\" : \"petId\",\n \"in\" : \"path\",\n \"description\" : \"Pet id to delete\",\n \"required\" : true,\n \"type\" : \"integer\",\n \"format\" : \"int64\"\n}", | |
"isLong" : true, | |
"isEnum" : false, | |
"vendorExtensions" : { }, | |
"required" : true | |
} ], | |
"queryParams" : [ ], | |
"headerParams" : [ { | |
"isHeaderParam" : true, | |
"baseName" : "api_key", | |
"paramName" : "apiKey", | |
"dataType" : "String", | |
"example" : "apiKey_example", | |
"jsonSchema" : "{\n \"name\" : \"api_key\",\n \"in\" : \"header\",\n \"required\" : false,\n \"type\" : \"string\"\n}", | |
"isString" : true, | |
"isEnum" : false, | |
"vendorExtensions" : { } | |
} ], | |
"formParams" : [ ], | |
"authMethods" : [ { | |
"name" : "petstore_auth", | |
"type" : "oauth2", | |
"hasMore" : false, | |
"isBasic" : false, | |
"isOAuth" : true, | |
"isApiKey" : false, | |
"isKeyInQuery" : false, | |
"isKeyInHeader" : false, | |
"flow" : "implicit", | |
"authorizationUrl" : "http://petstore.swagger.io/oauth/dialog", | |
"scopes" : [ { | |
"scope" : "write:pets", | |
"hasMore" : "true", | |
"description" : "modify pets in your account" | |
}, { | |
"scope" : "read:pets", | |
"hasMore" : null, | |
"description" : "read your pets" | |
} ], | |
"isCode" : false, | |
"isPassword" : false, | |
"isApplication" : false, | |
"isImplicit" : true | |
} ], | |
"tags" : [ "PersonalPet" ], | |
"responses" : [ { | |
"headers" : [ ], | |
"code" : "400", | |
"message" : "Invalid ID supplied", | |
"hasMore" : true, | |
"isDefault" : false, | |
"simpleType" : true, | |
"primitiveType" : true, | |
"isMapContainer" : false, | |
"isListContainer" : false, | |
"isBinary" : false, | |
"isFile" : false, | |
"jsonSchema" : "{\n \"description\" : \"Invalid ID supplied\"\n}", | |
"vendorExtensions" : { }, | |
"wildcard" : false | |
}, { | |
"headers" : [ ], | |
"code" : "404", | |
"message" : "Pet not found", | |
"hasMore" : false, | |
"isDefault" : false, | |
"simpleType" : true, | |
"primitiveType" : true, | |
"isMapContainer" : false, | |
"isListContainer" : false, | |
"isBinary" : false, | |
"isFile" : false, | |
"jsonSchema" : "{\n \"description\" : \"Pet not found\"\n}", | |
"vendorExtensions" : { }, | |
"wildcard" : false | |
} ], | |
"imports" : [ "string", "long" ], | |
"vendorExtensions" : { | |
"x-codegen-hasRequiredParams" : true | |
}, | |
"nickname" : "deletePet", | |
"operationIdLowerCase" : "deletepet", | |
"restfulShow" : false, | |
"restfulIndex" : false, | |
"restfulCreate" : false, | |
"restfulUpdate" : false, | |
"restfulDestroy" : false, | |
"restful" : false, | |
"hasBodyParam" : false, | |
"hasHeaderParams" : true, | |
"hasPathParams" : true, | |
"hasFormParams" : false, | |
"hasExamples" : false, | |
"hasQueryParams" : false | |
}, { | |
"responseHeaders" : [ ], | |
"hasAuthMethods" : true, | |
"hasConsumes" : false, | |
"hasProduces" : true, | |
"hasParams" : true, | |
"hasOptionalParams" : false, | |
"returnTypeIsPrimitive" : false, | |
"returnSimpleType" : true, | |
"subresourceOperation" : false, | |
"isMapContainer" : false, | |
"isListContainer" : false, | |
"isMultipart" : false, | |
"hasMore" : true, | |
"isResponseBinary" : false, | |
"isResponseFile" : false, | |
"hasReference" : true, | |
"isRestfulIndex" : false, | |
"isRestfulShow" : false, | |
"isRestfulCreate" : false, | |
"isRestfulUpdate" : false, | |
"isRestfulDestroy" : false, | |
"isRestful" : false, | |
"path" : "/pet/{petId}", | |
"operationId" : "getPetById", | |
"returnType" : "Pet", | |
"httpMethod" : "get", | |
"returnBaseType" : "Pet", | |
"summary" : "Find pet by ID", | |
"unescapedNotes" : "Returns a single pet", | |
"notes" : "Returns a single pet", | |
"baseName" : "PersonalPet", | |
"defaultResponse" : "null", | |
"produces" : [ { | |
"hasMore" : "true", | |
"mediaType" : "application/xml" | |
}, { | |
"hasMore" : null, | |
"mediaType" : "application/json" | |
} ], | |
"allParams" : [ { | |
"isPathParam" : true, | |
"isPrimitiveType" : true, | |
"baseName" : "petId", | |
"paramName" : "petId", | |
"dataType" : "Long", | |
"dataFormat" : "int64", | |
"description" : "ID of pet to return", | |
"unescapedDescription" : "ID of pet to return", | |
"example" : "789", | |
"jsonSchema" : "{\n \"name\" : \"petId\",\n \"in\" : \"path\",\n \"description\" : \"ID of pet to return\",\n \"required\" : true,\n \"type\" : \"integer\",\n \"format\" : \"int64\"\n}", | |
"isLong" : true, | |
"isEnum" : false, | |
"vendorExtensions" : { | |
"x-codegen-hasMoreRequired" : false | |
}, | |
"required" : true | |
} ], | |
"bodyParams" : [ ], | |
"pathParams" : [ { | |
"isPathParam" : true, | |
"baseName" : "petId", | |
"paramName" : "petId", | |
"dataType" : "Long", | |
"dataFormat" : "int64", | |
"description" : "ID of pet to return", | |
"unescapedDescription" : "ID of pet to return", | |
"example" : "789", | |
"jsonSchema" : "{\n \"name\" : \"petId\",\n \"in\" : \"path\",\n \"description\" : \"ID of pet to return\",\n \"required\" : true,\n \"type\" : \"integer\",\n \"format\" : \"int64\"\n}", | |
"isLong" : true, | |
"isEnum" : false, | |
"vendorExtensions" : { }, | |
"required" : true | |
} ], | |
"queryParams" : [ ], | |
"headerParams" : [ ], | |
"formParams" : [ ], | |
"authMethods" : [ { | |
"name" : "api_key", | |
"type" : "apiKey", | |
"hasMore" : false, | |
"isBasic" : false, | |
"isOAuth" : false, | |
"isApiKey" : true, | |
"keyParamName" : "api_key", | |
"isKeyInQuery" : false, | |
"isKeyInHeader" : true, | |
"isCode" : false, | |
"isPassword" : false, | |
"isApplication" : false, | |
"isImplicit" : false | |
} ], | |
"tags" : [ "PersonalPet" ], | |
"responses" : [ { | |
"headers" : [ ], | |
"code" : "200", | |
"message" : "successful operation", | |
"hasMore" : true, | |
"dataType" : "Pet", | |
"baseType" : "Pet", | |
"isDefault" : true, | |
"simpleType" : true, | |
"primitiveType" : false, | |
"isBinary" : false, | |
"isFile" : false, | |
"schema" : { | |
"$ref" : "#/definitions/Pet" | |
}, | |
"jsonSchema" : "{\n \"description\" : \"successful operation\",\n \"schema\" : {\n \"$ref\" : \"#/definitions/Pet\"\n }\n}", | |
"vendorExtensions" : { }, | |
"wildcard" : false | |
}, { | |
"headers" : [ ], | |
"code" : "400", | |
"message" : "Invalid ID supplied", | |
"hasMore" : true, | |
"isDefault" : false, | |
"simpleType" : true, | |
"primitiveType" : true, | |
"isMapContainer" : false, | |
"isListContainer" : false, | |
"isBinary" : false, | |
"isFile" : false, | |
"jsonSchema" : "{\n \"description\" : \"Invalid ID supplied\"\n}", | |
"vendorExtensions" : { }, | |
"wildcard" : false | |
}, { | |
"headers" : [ ], | |
"code" : "404", | |
"message" : "Pet not found", | |
"hasMore" : false, | |
"isDefault" : false, | |
"simpleType" : true, | |
"primitiveType" : true, | |
"isMapContainer" : false, | |
"isListContainer" : false, | |
"isBinary" : false, | |
"isFile" : false, | |
"jsonSchema" : "{\n \"description\" : \"Pet not found\"\n}", | |
"vendorExtensions" : { }, | |
"wildcard" : false | |
} ], | |
"imports" : [ "Pet", "long" ], | |
"examples" : [ { | |
"contentType" : "application/xml", | |
"example" : "<Pet>\n <id>123456</id>\n <name>doggie</name>\n <photoUrls>\n <photoUrls>string</photoUrls>\n </photoUrls>\n <tags>\n </tags>\n <status>string</status>\n</Pet>" | |
}, { | |
"contentType" : "application/json", | |
"example" : "{\n \"photoUrls\" : [ \"aeiou\" ],\n \"name\" : \"doggie\",\n \"id\" : 123456789,\n \"category\" : {\n \"name\" : \"aeiou\",\n \"id\" : 123456789\n },\n \"tags\" : [ {\n \"name\" : \"aeiou\",\n \"id\" : 123456789\n } ],\n \"status\" : \"aeiou\"\n}" | |
} ], | |
"vendorExtensions" : { | |
"x-codegen-hasRequiredParams" : true | |
}, | |
"nickname" : "getPetById", | |
"operationIdLowerCase" : "getpetbyid", | |
"restfulShow" : false, | |
"restfulIndex" : false, | |
"restfulCreate" : false, | |
"restfulUpdate" : false, | |
"restfulDestroy" : false, | |
"restful" : false, | |
"hasBodyParam" : false, | |
"hasHeaderParams" : false, | |
"hasPathParams" : true, | |
"hasFormParams" : false, | |
"hasExamples" : true, | |
"hasQueryParams" : false | |
}, { | |
"responseHeaders" : [ ], | |
"hasAuthMethods" : true, | |
"hasConsumes" : true, | |
"hasProduces" : true, | |
"hasParams" : true, | |
"hasOptionalParams" : false, | |
"returnTypeIsPrimitive" : false, | |
"returnSimpleType" : false, | |
"subresourceOperation" : false, | |
"isMapContainer" : false, | |
"isListContainer" : false, | |
"isMultipart" : false, | |
"hasMore" : true, | |
"isResponseBinary" : false, | |
"isResponseFile" : false, | |
"hasReference" : false, | |
"isRestfulIndex" : false, | |
"isRestfulShow" : false, | |
"isRestfulCreate" : false, | |
"isRestfulUpdate" : false, | |
"isRestfulDestroy" : false, | |
"isRestful" : false, | |
"path" : "/pet", | |
"operationId" : "updatePet", | |
"httpMethod" : "put", | |
"summary" : "Update an existing pet", | |
"unescapedNotes" : "", | |
"notes" : "", | |
"baseName" : "PersonalPet", | |
"consumes" : [ { | |
"hasMore" : "true", | |
"mediaType" : "application/json" | |
}, { | |
"hasMore" : null, | |
"mediaType" : "application/xml" | |
} ], | |
"produces" : [ { | |
"hasMore" : "true", | |
"mediaType" : "application/xml" | |
}, { | |
"hasMore" : null, | |
"mediaType" : "application/json" | |
} ], | |
"bodyParam" : { | |
"isBodyParam" : true, | |
"baseName" : "body", | |
"paramName" : "body", | |
"dataType" : "Pet", | |
"description" : "Pet object that needs to be added to the store", | |
"unescapedDescription" : "Pet object that needs to be added to the store", | |
"baseType" : "Pet", | |
"jsonSchema" : "{\n \"in\" : \"body\",\n \"name\" : \"body\",\n \"description\" : \"Pet object that needs to be added to the store\",\n \"required\" : true,\n \"schema\" : {\n \"$ref\" : \"#/definitions/Pet\"\n }\n}", | |
"isBinary" : false, | |
"isEnum" : false, | |
"vendorExtensions" : { | |
"x-codegen-hasMoreRequired" : false | |
}, | |
"required" : true | |
}, | |
"allParams" : [ { | |
"isBodyParam" : true, | |
"baseName" : "body", | |
"paramName" : "body", | |
"dataType" : "Pet", | |
"description" : "Pet object that needs to be added to the store", | |
"unescapedDescription" : "Pet object that needs to be added to the store", | |
"baseType" : "Pet", | |
"jsonSchema" : "{\n \"in\" : \"body\",\n \"name\" : \"body\",\n \"description\" : \"Pet object that needs to be added to the store\",\n \"required\" : true,\n \"schema\" : {\n \"$ref\" : \"#/definitions/Pet\"\n }\n}", | |
"isBinary" : false, | |
"isEnum" : false, | |
"vendorExtensions" : { | |
"x-codegen-hasMoreRequired" : false | |
}, | |
"required" : true | |
} ], | |
"bodyParams" : [ { | |
"isBodyParam" : true, | |
"baseName" : "body", | |
"paramName" : "body", | |
"dataType" : "Pet", | |
"description" : "Pet object that needs to be added to the store", | |
"unescapedDescription" : "Pet object that needs to be added to the store", | |
"baseType" : "Pet", | |
"jsonSchema" : "{\n \"in\" : \"body\",\n \"name\" : \"body\",\n \"description\" : \"Pet object that needs to be added to the store\",\n \"required\" : true,\n \"schema\" : {\n \"$ref\" : \"#/definitions/Pet\"\n }\n}", | |
"isBinary" : false, | |
"isEnum" : false, | |
"vendorExtensions" : { }, | |
"required" : true | |
} ], | |
"pathParams" : [ ], | |
"queryParams" : [ ], | |
"headerParams" : [ ], | |
"formParams" : [ ], | |
"authMethods" : [ { | |
"name" : "petstore_auth", | |
"type" : "oauth2", | |
"hasMore" : false, | |
"isBasic" : false, | |
"isOAuth" : true, | |
"isApiKey" : false, | |
"isKeyInQuery" : false, | |
"isKeyInHeader" : false, | |
"flow" : "implicit", | |
"authorizationUrl" : "http://petstore.swagger.io/oauth/dialog", | |
"scopes" : [ { | |
"scope" : "write:pets", | |
"hasMore" : "true", | |
"description" : "modify pets in your account" | |
}, { | |
"scope" : "read:pets", | |
"hasMore" : null, | |
"description" : "read your pets" | |
} ], | |
"isCode" : false, | |
"isPassword" : false, | |
"isApplication" : false, | |
"isImplicit" : true | |
} ], | |
"tags" : [ "PersonalPet" ], | |
"responses" : [ { | |
"headers" : [ ], | |
"code" : "400", | |
"message" : "Invalid ID supplied", | |
"hasMore" : true, | |
"isDefault" : false, | |
"simpleType" : true, | |
"primitiveType" : true, | |
"isMapContainer" : false, | |
"isListContainer" : false, | |
"isBinary" : false, | |
"isFile" : false, | |
"jsonSchema" : "{\n \"description\" : \"Invalid ID supplied\"\n}", | |
"vendorExtensions" : { }, | |
"wildcard" : false | |
}, { | |
"headers" : [ ], | |
"code" : "404", | |
"message" : "Pet not found", | |
"hasMore" : true, | |
"isDefault" : false, | |
"simpleType" : true, | |
"primitiveType" : true, | |
"isMapContainer" : false, | |
"isListContainer" : false, | |
"isBinary" : false, | |
"isFile" : false, | |
"jsonSchema" : "{\n \"description\" : \"Pet not found\"\n}", | |
"vendorExtensions" : { }, | |
"wildcard" : false | |
}, { | |
"headers" : [ ], | |
"code" : "405", | |
"message" : "Validation exception", | |
"hasMore" : false, | |
"isDefault" : false, | |
"simpleType" : true, | |
"primitiveType" : true, | |
"isMapContainer" : false, | |
"isListContainer" : false, | |
"isBinary" : false, | |
"isFile" : false, | |
"jsonSchema" : "{\n \"description\" : \"Validation exception\"\n}", | |
"vendorExtensions" : { }, | |
"wildcard" : false | |
} ], | |
"imports" : [ "Pet" ], | |
"vendorExtensions" : { | |
"x-codegen-hasRequiredParams" : true | |
}, | |
"nickname" : "updatePet", | |
"operationIdLowerCase" : "updatepet", | |
"restfulShow" : false, | |
"restfulIndex" : false, | |
"restfulCreate" : false, | |
"restfulUpdate" : false, | |
"restfulDestroy" : false, | |
"restful" : false, | |
"hasBodyParam" : true, | |
"hasHeaderParams" : false, | |
"hasPathParams" : false, | |
"hasFormParams" : false, | |
"hasExamples" : false, | |
"hasQueryParams" : false | |
}, { | |
"responseHeaders" : [ ], | |
"hasAuthMethods" : true, | |
"hasConsumes" : true, | |
"hasProduces" : true, | |
"hasParams" : true, | |
"hasOptionalParams" : true, | |
"returnTypeIsPrimitive" : false, | |
"returnSimpleType" : false, | |
"subresourceOperation" : false, | |
"isMapContainer" : false, | |
"isListContainer" : false, | |
"isMultipart" : false, | |
"hasMore" : false, | |
"isResponseBinary" : false, | |
"isResponseFile" : false, | |
"hasReference" : false, | |
"isRestfulIndex" : false, | |
"isRestfulShow" : false, | |
"isRestfulCreate" : false, | |
"isRestfulUpdate" : false, | |
"isRestfulDestroy" : false, | |
"isRestful" : false, | |
"path" : "/pet/{petId}", | |
"operationId" : "updatePetWithForm", | |
"httpMethod" : "post", | |
"summary" : "Updates a pet in the store with form data", | |
"unescapedNotes" : "", | |
"notes" : "", | |
"baseName" : "PersonalPet", | |
"consumes" : [ { | |
"hasMore" : null, | |
"mediaType" : "application/x-www-form-urlencoded" | |
} ], | |
"produces" : [ { | |
"hasMore" : "true", | |
"mediaType" : "application/xml" | |
}, { | |
"hasMore" : null, | |
"mediaType" : "application/json" | |
} ], | |
"allParams" : [ { | |
"isPathParam" : true, | |
"hasMore" : true, | |
"isPrimitiveType" : true, | |
"baseName" : "petId", | |
"paramName" : "petId", | |
"dataType" : "Long", | |
"dataFormat" : "int64", | |
"description" : "ID of pet that needs to be updated", | |
"unescapedDescription" : "ID of pet that needs to be updated", | |
"example" : "789", | |
"jsonSchema" : "{\n \"name\" : \"petId\",\n \"in\" : \"path\",\n \"description\" : \"ID of pet that needs to be updated\",\n \"required\" : true,\n \"type\" : \"integer\",\n \"format\" : \"int64\"\n}", | |
"isLong" : true, | |
"isEnum" : false, | |
"vendorExtensions" : { | |
"x-codegen-hasMoreRequired" : false | |
}, | |
"required" : true | |
}, { | |
"isFormParam" : true, | |
"hasMore" : true, | |
"secondaryParam" : true, | |
"isPrimitiveType" : true, | |
"baseName" : "name", | |
"paramName" : "name", | |
"dataType" : "String", | |
"description" : "Updated name of the pet", | |
"unescapedDescription" : "Updated name of the pet", | |
"example" : "name_example", | |
"jsonSchema" : "{\n \"name\" : \"name\",\n \"in\" : \"formData\",\n \"description\" : \"Updated name of the pet\",\n \"required\" : false,\n \"type\" : \"string\"\n}", | |
"isString" : true, | |
"notFile" : true, | |
"isEnum" : false, | |
"vendorExtensions" : { | |
"x-codegen-hasMoreRequired" : true, | |
"x-codegen-hasMoreOptional" : true | |
} | |
}, { | |
"isFormParam" : true, | |
"secondaryParam" : true, | |
"isPrimitiveType" : true, | |
"baseName" : "status", | |
"paramName" : "status", | |
"dataType" : "String", | |
"description" : "Updated status of the pet", | |
"unescapedDescription" : "Updated status of the pet", | |
"example" : "status_example", | |
"jsonSchema" : "{\n \"name\" : \"status\",\n \"in\" : \"formData\",\n \"description\" : \"Updated status of the pet\",\n \"required\" : false,\n \"type\" : \"string\"\n}", | |
"isString" : true, | |
"notFile" : true, | |
"isEnum" : false, | |
"vendorExtensions" : { | |
"x-codegen-hasMoreOptional" : false | |
} | |
} ], | |
"bodyParams" : [ ], | |
"pathParams" : [ { | |
"isPathParam" : true, | |
"baseName" : "petId", | |
"paramName" : "petId", | |
"dataType" : "Long", | |
"dataFormat" : "int64", | |
"description" : "ID of pet that needs to be updated", | |
"unescapedDescription" : "ID of pet that needs to be updated", | |
"example" : "789", | |
"jsonSchema" : "{\n \"name\" : \"petId\",\n \"in\" : \"path\",\n \"description\" : \"ID of pet that needs to be updated\",\n \"required\" : true,\n \"type\" : \"integer\",\n \"format\" : \"int64\"\n}", | |
"isLong" : true, | |
"isEnum" : false, | |
"vendorExtensions" : { }, | |
"required" : true | |
} ], | |
"queryParams" : [ ], | |
"headerParams" : [ ], | |
"formParams" : [ { | |
"isFormParam" : true, | |
"hasMore" : true, | |
"baseName" : "name", | |
"paramName" : "name", | |
"dataType" : "String", | |
"description" : "Updated name of the pet", | |
"unescapedDescription" : "Updated name of the pet", | |
"example" : "name_example", | |
"jsonSchema" : "{\n \"name\" : \"name\",\n \"in\" : \"formData\",\n \"description\" : \"Updated name of the pet\",\n \"required\" : false,\n \"type\" : \"string\"\n}", | |
"isString" : true, | |
"notFile" : true, | |
"isEnum" : false, | |
"vendorExtensions" : { } | |
}, { | |
"isFormParam" : true, | |
"secondaryParam" : true, | |
"baseName" : "status", | |
"paramName" : "status", | |
"dataType" : "String", | |
"description" : "Updated status of the pet", | |
"unescapedDescription" : "Updated status of the pet", | |
"example" : "status_example", | |
"jsonSchema" : "{\n \"name\" : \"status\",\n \"in\" : \"formData\",\n \"description\" : \"Updated status of the pet\",\n \"required\" : false,\n \"type\" : \"string\"\n}", | |
"isString" : true, | |
"notFile" : true, | |
"isEnum" : false, | |
"vendorExtensions" : { } | |
} ], | |
"authMethods" : [ { | |
"name" : "petstore_auth", | |
"type" : "oauth2", | |
"hasMore" : false, | |
"isBasic" : false, | |
"isOAuth" : true, | |
"isApiKey" : false, | |
"isKeyInQuery" : false, | |
"isKeyInHeader" : false, | |
"flow" : "implicit", | |
"authorizationUrl" : "http://petstore.swagger.io/oauth/dialog", | |
"scopes" : [ { | |
"scope" : "write:pets", | |
"hasMore" : "true", | |
"description" : "modify pets in your account" | |
}, { | |
"scope" : "read:pets", | |
"hasMore" : null, | |
"description" : "read your pets" | |
} ], | |
"isCode" : false, | |
"isPassword" : false, | |
"isApplication" : false, | |
"isImplicit" : true | |
} ], | |
"tags" : [ "PersonalPet" ], | |
"responses" : [ { | |
"headers" : [ ], | |
"code" : "405", | |
"message" : "Invalid input", | |
"hasMore" : false, | |
"isDefault" : false, | |
"simpleType" : true, | |
"primitiveType" : true, | |
"isMapContainer" : false, | |
"isListContainer" : false, | |
"isBinary" : false, | |
"isFile" : false, | |
"jsonSchema" : "{\n \"description\" : \"Invalid input\"\n}", | |
"vendorExtensions" : { }, | |
"wildcard" : false | |
} ], | |
"imports" : [ "string", "long" ], | |
"vendorExtensions" : { | |
"x-codegen-hasRequiredParams" : true | |
}, | |
"nickname" : "updatePetWithForm", | |
"operationIdLowerCase" : "updatepetwithform", | |
"restfulShow" : false, | |
"restfulIndex" : false, | |
"restfulCreate" : false, | |
"restfulUpdate" : false, | |
"restfulDestroy" : false, | |
"restful" : false, | |
"hasBodyParam" : false, | |
"hasHeaderParams" : false, | |
"hasPathParams" : true, | |
"hasFormParams" : true, | |
"hasExamples" : false, | |
"hasQueryParams" : false | |
} ], | |
"pathPrefix" : "personalPet" | |
}, | |
"jsProjectName" : "swagger_petstore", | |
"infoUrl" : null, | |
"inputSpec" : "https://gist.githubusercontent.com/DavidBiesack/70d2910322d5c68d730878f0d8c36587/raw/6b93d6450a74ea08bd31ef0250240e4dcd11a083/modified-petstore-swagger.json?_sm_au_=iVVDq7n0kPL7s5tR", | |
"artifactId" : "swagger-client", | |
"packageName" : "IO.Swagger", | |
"baseName" : "PersonalPet", | |
"package" : "", | |
"imports" : [ { | |
"import" : "Pet" | |
}, { | |
"import" : "long" | |
}, { | |
"import" : "string" | |
} ], | |
"perlModuleName" : "WWW::SwaggerClient", | |
"artifactVersion" : "1.0.0", | |
"appName" : "Swagger Petstore", | |
"contextPath" : "/v2", | |
"appDescription" : "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.", | |
"termsOfService" : "http://swagger.io/terms/", | |
"releaseNote" : "Minor update", | |
"version" : "1.0.0", | |
"basePath" : "http://petstore.swagger.io/v2", | |
"classname" : "PersonalPetApi", | |
"pythonPackageName" : "swagger_client", | |
"gitRepoId" : "GIT_REPO_ID", | |
"generatedDate" : "2017-03-15T09:46:43.936-04:00", | |
"infoEmail" : "apiteam@swagger.io", | |
"phpInvokerPackage" : "Swagger\\Client", | |
"jsModuleName" : "SwaggerPetstore", | |
"gitUserId" : "GIT_USER_ID" | |
}, { | |
"importPath" : ".PersonalPets", | |
"licenseUrl" : "http://www.apache.org/licenses/LICENSE-2.0.html", | |
"appVersion" : "1.0.0", | |
"generatorClass" : "io.swagger.codegen.languages.StaticHtml2Generator", | |
"modelPackage" : "", | |
"sortParamsByRequiredFlag" : true, | |
"groupId" : "io.swagger", | |
"hasMore" : "true", | |
"licenseInfo" : "Apache 2.0", | |
"invokerPackage" : "io.swagger.client", | |
"classVarName" : "personalPets", | |
"hasImport" : true, | |
"generateModelTests" : true, | |
"basePathWithoutHost" : "/v2", | |
"generateApiTests" : true, | |
"classFilename" : "PersonalPetsApi", | |
"operations" : { | |
"classname" : "PersonalPetsApi", | |
"operation" : [ { | |
"responseHeaders" : [ ], | |
"hasAuthMethods" : true, | |
"hasConsumes" : false, | |
"hasProduces" : true, | |
"hasParams" : false, | |
"hasOptionalParams" : false, | |
"returnTypeIsPrimitive" : false, | |
"returnSimpleType" : false, | |
"subresourceOperation" : false, | |
"isMapContainer" : true, | |
"isListContainer" : false, | |
"isMultipart" : false, | |
"hasMore" : false, | |
"isResponseBinary" : false, | |
"isResponseFile" : false, | |
"hasReference" : false, | |
"isRestfulIndex" : false, | |
"isRestfulShow" : false, | |
"isRestfulCreate" : false, | |
"isRestfulUpdate" : false, | |
"isRestfulDestroy" : false, | |
"isRestful" : false, | |
"path" : "/store/inventory", | |
"operationId" : "getInventory", | |
"returnType" : "map['String', 'Integer']", | |
"httpMethod" : "get", | |
"returnBaseType" : "integer", | |
"returnContainer" : "map", | |
"summary" : "Returns pet inventories by status", | |
"unescapedNotes" : "Returns a map of status codes to quantities", | |
"notes" : "Returns a map of status codes to quantities", | |
"baseName" : "PersonalPets", | |
"defaultResponse" : "null", | |
"produces" : [ { | |
"hasMore" : null, | |
"mediaType" : "application/json" | |
} ], | |
"allParams" : [ ], | |
"bodyParams" : [ ], | |
"pathParams" : [ ], | |
"queryParams" : [ ], | |
"headerParams" : [ ], | |
"formParams" : [ ], | |
"authMethods" : [ { | |
"name" : "api_key", | |
"type" : "apiKey", | |
"hasMore" : false, | |
"isBasic" : false, | |
"isOAuth" : false, | |
"isApiKey" : true, | |
"keyParamName" : "api_key", | |
"isKeyInQuery" : false, | |
"isKeyInHeader" : true, | |
"isCode" : false, | |
"isPassword" : false, | |
"isApplication" : false, | |
"isImplicit" : false | |
} ], | |
"tags" : [ "PersonalPets" ], | |
"responses" : [ { | |
"headers" : [ ], | |
"code" : "200", | |
"message" : "successful operation", | |
"hasMore" : false, | |
"dataType" : "map[String, Integer]", | |
"baseType" : "integer", | |
"containerType" : "map", | |
"isDefault" : true, | |
"simpleType" : false, | |
"primitiveType" : false, | |
"isMapContainer" : true, | |
"isListContainer" : false, | |
"isBinary" : false, | |
"isFile" : false, | |
"schema" : { | |
"type" : "object", | |
"additionalProperties" : { | |
"type" : "integer", | |
"format" : "int32" | |
} | |
}, | |
"jsonSchema" : "{\n \"description\" : \"successful operation\",\n \"schema\" : {\n \"type\" : \"object\",\n \"additionalProperties\" : {\n \"type\" : \"integer\",\n \"format\" : \"int32\"\n }\n }\n}", | |
"vendorExtensions" : { }, | |
"wildcard" : false | |
} ], | |
"imports" : [ "integer" ], | |
"examples" : [ { | |
"contentType" : "application/json", | |
"example" : "{\n \"key\" : 123\n}" | |
} ], | |
"vendorExtensions" : { | |
"x-codegen-hasRequiredParams" : false | |
}, | |
"nickname" : "getInventory", | |
"operationIdLowerCase" : "getinventory", | |
"restfulShow" : false, | |
"restfulIndex" : false, | |
"restfulCreate" : false, | |
"restfulUpdate" : false, | |
"restfulDestroy" : false, | |
"restful" : false, | |
"hasBodyParam" : false, | |
"hasHeaderParams" : false, | |
"hasPathParams" : false, | |
"hasFormParams" : false, | |
"hasExamples" : true, | |
"hasQueryParams" : false | |
} ], | |
"pathPrefix" : "personalPets" | |
}, | |
"jsProjectName" : "swagger_petstore", | |
"infoUrl" : null, | |
"inputSpec" : "https://gist.githubusercontent.com/DavidBiesack/70d2910322d5c68d730878f0d8c36587/raw/6b93d6450a74ea08bd31ef0250240e4dcd11a083/modified-petstore-swagger.json?_sm_au_=iVVDq7n0kPL7s5tR", | |
"artifactId" : "swagger-client", | |
"packageName" : "IO.Swagger", | |
"baseName" : "PersonalPets", | |
"package" : "", | |
"imports" : [ { | |
"import" : "integer" | |
} ], | |
"perlModuleName" : "WWW::SwaggerClient", | |
"artifactVersion" : "1.0.0", | |
"appName" : "Swagger Petstore", | |
"contextPath" : "/v2", | |
"appDescription" : "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.", | |
"termsOfService" : "http://swagger.io/terms/", | |
"releaseNote" : "Minor update", | |
"version" : "1.0.0", | |
"basePath" : "http://petstore.swagger.io/v2", | |
"classname" : "PersonalPetsApi", | |
"pythonPackageName" : "swagger_client", | |
"gitRepoId" : "GIT_REPO_ID", | |
"generatedDate" : "2017-03-15T09:46:43.936-04:00", | |
"infoEmail" : "apiteam@swagger.io", | |
"phpInvokerPackage" : "Swagger\\Client", | |
"jsModuleName" : "SwaggerPetstore", | |
"gitUserId" : "GIT_USER_ID" | |
}, { | |
"importPath" : ".PetOwner", | |
"licenseUrl" : "http://www.apache.org/licenses/LICENSE-2.0.html", | |
"appVersion" : "1.0.0", | |
"generatorClass" : "io.swagger.codegen.languages.StaticHtml2Generator", | |
"modelPackage" : "", | |
"sortParamsByRequiredFlag" : true, | |
"groupId" : "io.swagger", | |
"hasMore" : "true", | |
"licenseInfo" : "Apache 2.0", | |
"invokerPackage" : "io.swagger.client", | |
"classVarName" : "petOwner", | |
"hasImport" : true, | |
"generateModelTests" : true, | |
"basePathWithoutHost" : "/v2", | |
"generateApiTests" : true, | |
"classFilename" : "PetOwnerApi", | |
"operations" : { | |
"classname" : "PetOwnerApi", | |
"operation" : [ { | |
"responseHeaders" : [ ], | |
"hasAuthMethods" : false, | |
"hasConsumes" : false, | |
"hasProduces" : true, | |
"hasParams" : true, | |
"hasOptionalParams" : false, | |
"returnTypeIsPrimitive" : false, | |
"returnSimpleType" : false, | |
"subresourceOperation" : false, | |
"isMapContainer" : false, | |
"isListContainer" : false, | |
"isMultipart" : false, | |
"hasMore" : true, | |
"isResponseBinary" : false, | |
"isResponseFile" : false, | |
"hasReference" : false, | |
"isRestfulIndex" : false, | |
"isRestfulShow" : false, | |
"isRestfulCreate" : false, | |
"isRestfulUpdate" : false, | |
"isRestfulDestroy" : false, | |
"isRestful" : false, | |
"path" : "/user", | |
"operationId" : "createUser", | |
"httpMethod" : "post", | |
"summary" : "Create user", | |
"unescapedNotes" : "This can only be done by the logged in user.", | |
"notes" : "This can only be done by the logged in user.", | |
"baseName" : "PetOwner", | |
"produces" : [ { | |
"hasMore" : "true", | |
"mediaType" : "application/xml" | |
}, { | |
"hasMore" : null, | |
"mediaType" : "application/json" | |
} ], | |
"bodyParam" : { | |
"isBodyParam" : true, | |
"baseName" : "body", | |
"paramName" : "body", | |
"dataType" : "User", | |
"description" : "Created user object", | |
"unescapedDescription" : "Created user object", | |
"baseType" : "User", | |
"jsonSchema" : "{\n \"in\" : \"body\",\n \"name\" : \"body\",\n \"description\" : \"Created user object\",\n \"required\" : true,\n \"schema\" : {\n \"$ref\" : \"#/definitions/User\"\n }\n}", | |
"isBinary" : false, | |
"isEnum" : false, | |
"vendorExtensions" : { | |
"x-codegen-hasMoreRequired" : false | |
}, | |
"required" : true | |
}, | |
"allParams" : [ { | |
"isBodyParam" : true, | |
"baseName" : "body", | |
"paramName" : "body", | |
"dataType" : "User", | |
"description" : "Created user object", | |
"unescapedDescription" : "Created user object", | |
"baseType" : "User", | |
"jsonSchema" : "{\n \"in\" : \"body\",\n \"name\" : \"body\",\n \"description\" : \"Created user object\",\n \"required\" : true,\n \"schema\" : {\n \"$ref\" : \"#/definitions/User\"\n }\n}", | |
"isBinary" : false, | |
"isEnum" : false, | |
"vendorExtensions" : { | |
"x-codegen-hasMoreRequired" : false | |
}, | |
"required" : true | |
} ], | |
"bodyParams" : [ { | |
"isBodyParam" : true, | |
"baseName" : "body", | |
"paramName" : "body", | |
"dataType" : "User", | |
"description" : "Created user object", | |
"unescapedDescription" : "Created user object", | |
"baseType" : "User", | |
"jsonSchema" : "{\n \"in\" : \"body\",\n \"name\" : \"body\",\n \"description\" : \"Created user object\",\n \"required\" : true,\n \"schema\" : {\n \"$ref\" : \"#/definitions/User\"\n }\n}", | |
"isBinary" : false, | |
"isEnum" : false, | |
"vendorExtensions" : { }, | |
"required" : true | |
} ], | |
"pathParams" : [ ], | |
"queryParams" : [ ], | |
"headerParams" : [ ], | |
"formParams" : [ ], | |
"tags" : [ "PetOwner" ], | |
"responses" : [ { | |
"headers" : [ ], | |
"code" : "0", | |
"message" : "successful operation", | |
"hasMore" : false, | |
"isDefault" : true, | |
"simpleType" : true, | |
"primitiveType" : true, | |
"isMapContainer" : false, | |
"isListContainer" : false, | |
"isBinary" : false, | |
"isFile" : false, | |
"jsonSchema" : "{\n \"description\" : \"successful operation\"\n}", | |
"vendorExtensions" : { }, | |
"wildcard" : true | |
} ], | |
"imports" : [ "User" ], | |
"vendorExtensions" : { | |
"x-codegen-hasRequiredParams" : true | |
}, | |
"nickname" : "createUser", | |
"operationIdLowerCase" : "createuser", | |
"restfulShow" : false, | |
"restfulIndex" : false, | |
"restfulCreate" : false, | |
"restfulUpdate" : false, | |
"restfulDestroy" : false, | |
"restful" : false, | |
"hasBodyParam" : true, | |
"hasHeaderParams" : false, | |
"hasPathParams" : false, | |
"hasFormParams" : false, | |
"hasExamples" : false, | |
"hasQueryParams" : false | |
}, { | |
"responseHeaders" : [ ], | |
"hasAuthMethods" : false, | |
"hasConsumes" : false, | |
"hasProduces" : true, | |
"hasParams" : true, | |
"hasOptionalParams" : false, | |
"returnTypeIsPrimitive" : false, | |
"returnSimpleType" : false, | |
"subresourceOperation" : false, | |
"isMapContainer" : false, | |
"isListContainer" : false, | |
"isMultipart" : false, | |
"hasMore" : true, | |
"isResponseBinary" : false, | |
"isResponseFile" : false, | |
"hasReference" : false, | |
"isRestfulIndex" : false, | |
"isRestfulShow" : false, | |
"isRestfulCreate" : false, | |
"isRestfulUpdate" : false, | |
"isRestfulDestroy" : false, | |
"isRestful" : false, | |
"path" : "/user/{username}", | |
"operationId" : "deleteUser", | |
"httpMethod" : "delete", | |
"summary" : "Delete user", | |
"unescapedNotes" : "This can only be done by the logged in user.", | |
"notes" : "This can only be done by the logged in user.", | |
"baseName" : "PetOwner", | |
"produces" : [ { | |
"hasMore" : "true", | |
"mediaType" : "application/xml" | |
}, { | |
"hasMore" : null, | |
"mediaType" : "application/json" | |
} ], | |
"allParams" : [ { | |
"isPathParam" : true, | |
"isPrimitiveType" : true, | |
"baseName" : "username", | |
"paramName" : "username", | |
"dataType" : "String", | |
"description" : "The name that needs to be deleted", | |
"unescapedDescription" : "The name that needs to be deleted", | |
"example" : "username_example", | |
"jsonSchema" : "{\n \"name\" : \"username\",\n \"in\" : \"path\",\n \"description\" : \"The name that needs to be deleted\",\n \"required\" : true,\n \"type\" : \"string\"\n}", | |
"isString" : true, | |
"isEnum" : false, | |
"vendorExtensions" : { | |
"x-codegen-hasMoreRequired" : false | |
}, | |
"required" : true | |
} ], | |
"bodyParams" : [ ], | |
"pathParams" : [ { | |
"isPathParam" : true, | |
"baseName" : "username", | |
"paramName" : "username", | |
"dataType" : "String", | |
"description" : "The name that needs to be deleted", | |
"unescapedDescription" : "The name that needs to be deleted", | |
"example" : "username_example", | |
"jsonSchema" : "{\n \"name\" : \"username\",\n \"in\" : \"path\",\n \"description\" : \"The name that needs to be deleted\",\n \"required\" : true,\n \"type\" : \"string\"\n}", | |
"isString" : true, | |
"isEnum" : false, | |
"vendorExtensions" : { }, | |
"required" : true | |
} ], | |
"queryParams" : [ ], | |
"headerParams" : [ ], | |
"formParams" : [ ], | |
"tags" : [ "PetOwner" ], | |
"responses" : [ { | |
"headers" : [ ], | |
"code" : "400", | |
"message" : "Invalid username supplied", | |
"hasMore" : true, | |
"isDefault" : false, | |
"simpleType" : true, | |
"primitiveType" : true, | |
"isMapContainer" : false, | |
"isListContainer" : false, | |
"isBinary" : false, | |
"isFile" : false, | |
"jsonSchema" : "{\n \"description\" : \"Invalid username supplied\"\n}", | |
"vendorExtensions" : { }, | |
"wildcard" : false | |
}, { | |
"headers" : [ ], | |
"code" : "404", | |
"message" : "User not found", | |
"hasMore" : false, | |
"isDefault" : false, | |
"simpleType" : true, | |
"primitiveType" : true, | |
"isMapContainer" : false, | |
"isListContainer" : false, | |
"isBinary" : false, | |
"isFile" : false, | |
"jsonSchema" : "{\n \"description\" : \"User not found\"\n}", | |
"vendorExtensions" : { }, | |
"wildcard" : false | |
} ], | |
"imports" : [ "string" ], | |
"vendorExtensions" : { | |
"x-codegen-hasRequiredParams" : true | |
}, | |
"nickname" : "deleteUser", | |
"operationIdLowerCase" : "deleteuser", | |
"restfulShow" : false, | |
"restfulIndex" : false, | |
"restfulCreate" : false, | |
"restfulUpdate" : false, | |
"restfulDestroy" : false, | |
"restful" : false, | |
"hasBodyParam" : false, | |
"hasHeaderParams" : false, | |
"hasPathParams" : true, | |
"hasFormParams" : false, | |
"hasExamples" : false, | |
"hasQueryParams" : false | |
}, { | |
"responseHeaders" : [ ], | |
"hasAuthMethods" : false, | |
"hasConsumes" : false, | |
"hasProduces" : true, | |
"hasParams" : true, | |
"hasOptionalParams" : false, | |
"returnTypeIsPrimitive" : false, | |
"returnSimpleType" : true, | |
"subresourceOperation" : false, | |
"isMapContainer" : false, | |
"isListContainer" : false, | |
"isMultipart" : false, | |
"hasMore" : true, | |
"isResponseBinary" : false, | |
"isResponseFile" : false, | |
"hasReference" : true, | |
"isRestfulIndex" : false, | |
"isRestfulShow" : false, | |
"isRestfulCreate" : false, | |
"isRestfulUpdate" : false, | |
"isRestfulDestroy" : false, | |
"isRestful" : false, | |
"path" : "/user/{username}", | |
"operationId" : "getUserByName", | |
"returnType" : "User", | |
"httpMethod" : "get", | |
"returnBaseType" : "User", | |
"summary" : "Get user by user name", | |
"unescapedNotes" : "", | |
"notes" : "", | |
"baseName" : "PetOwner", | |
"defaultResponse" : "null", | |
"produces" : [ { | |
"hasMore" : "true", | |
"mediaType" : "application/xml" | |
}, { | |
"hasMore" : null, | |
"mediaType" : "application/json" | |
} ], | |
"allParams" : [ { | |
"isPathParam" : true, | |
"isPrimitiveType" : true, | |
"baseName" : "username", | |
"paramName" : "username", | |
"dataType" : "String", | |
"description" : "The name that needs to be fetched. Use user1 for testing. ", | |
"unescapedDescription" : "The name that needs to be fetched. Use user1 for testing. ", | |
"example" : "username_example", | |
"jsonSchema" : "{\n \"name\" : \"username\",\n \"in\" : \"path\",\n \"description\" : \"The name that needs to be fetched. Use user1 for testing. \",\n \"required\" : true,\n \"type\" : \"string\"\n}", | |
"isString" : true, | |
"isEnum" : false, | |
"vendorExtensions" : { | |
"x-codegen-hasMoreRequired" : false | |
}, | |
"required" : true | |
} ], | |
"bodyParams" : [ ], | |
"pathParams" : [ { | |
"isPathParam" : true, | |
"baseName" : "username", | |
"paramName" : "username", | |
"dataType" : "String", | |
"description" : "The name that needs to be fetched. Use user1 for testing. ", | |
"unescapedDescription" : "The name that needs to be fetched. Use user1 for testing. ", | |
"example" : "username_example", | |
"jsonSchema" : "{\n \"name\" : \"username\",\n \"in\" : \"path\",\n \"description\" : \"The name that needs to be fetched. Use user1 for testing. \",\n \"required\" : true,\n \"type\" : \"string\"\n}", | |
"isString" : true, | |
"isEnum" : false, | |
"vendorExtensions" : { }, | |
"required" : true | |
} ], | |
"queryParams" : [ ], | |
"headerParams" : [ ], | |
"formParams" : [ ], | |
"tags" : [ "PetOwner" ], | |
"responses" : [ { | |
"headers" : [ ], | |
"code" : "200", | |
"message" : "successful operation", | |
"hasMore" : true, | |
"dataType" : "User", | |
"baseType" : "User", | |
"isDefault" : true, | |
"simpleType" : true, | |
"primitiveType" : false, | |
"isBinary" : false, | |
"isFile" : false, | |
"schema" : { | |
"$ref" : "#/definitions/User" | |
}, | |
"jsonSchema" : "{\n \"description\" : \"successful operation\",\n \"schema\" : {\n \"$ref\" : \"#/definitions/User\"\n }\n}", | |
"vendorExtensions" : { }, | |
"wildcard" : false | |
}, { | |
"headers" : [ ], | |
"code" : "400", | |
"message" : "Invalid username supplied", | |
"hasMore" : true, | |
"isDefault" : false, | |
"simpleType" : true, | |
"primitiveType" : true, | |
"isMapContainer" : false, | |
"isListContainer" : false, | |
"isBinary" : false, | |
"isFile" : false, | |
"jsonSchema" : "{\n \"description\" : \"Invalid username supplied\"\n}", | |
"vendorExtensions" : { }, | |
"wildcard" : false | |
}, { | |
"headers" : [ ], | |
"code" : "404", | |
"message" : "User not found", | |
"hasMore" : false, | |
"isDefault" : false, | |
"simpleType" : true, | |
"primitiveType" : true, | |
"isMapContainer" : false, | |
"isListContainer" : false, | |
"isBinary" : false, | |
"isFile" : false, | |
"jsonSchema" : "{\n \"description\" : \"User not found\"\n}", | |
"vendorExtensions" : { }, | |
"wildcard" : false | |
} ], | |
"imports" : [ "User", "string" ], | |
"examples" : [ { | |
"contentType" : "application/xml", | |
"example" : "<User>\n <id>123456</id>\n <username>string</username>\n <firstName>string</firstName>\n <lastName>string</lastName>\n <email>string</email>\n <password>string</password>\n <phone>string</phone>\n <userStatus>0</userStatus>\n</User>" | |
}, { | |
"contentType" : "application/json", | |
"example" : "{\n \"firstName\" : \"aeiou\",\n \"lastName\" : \"aeiou\",\n \"password\" : \"aeiou\",\n \"userStatus\" : 123,\n \"phone\" : \"aeiou\",\n \"id\" : 123456789,\n \"email\" : \"aeiou\",\n \"username\" : \"aeiou\"\n}" | |
} ], | |
"vendorExtensions" : { | |
"x-codegen-hasRequiredParams" : true | |
}, | |
"nickname" : "getUserByName", | |
"operationIdLowerCase" : "getuserbyname", | |
"restfulShow" : false, | |
"restfulIndex" : false, | |
"restfulCreate" : false, | |
"restfulUpdate" : false, | |
"restfulDestroy" : false, | |
"restful" : false, | |
"hasBodyParam" : false, | |
"hasHeaderParams" : false, | |
"hasPathParams" : true, | |
"hasFormParams" : false, | |
"hasExamples" : true, | |
"hasQueryParams" : false | |
}, { | |
"responseHeaders" : [ ], | |
"hasAuthMethods" : false, | |
"hasConsumes" : false, | |
"hasProduces" : true, | |
"hasParams" : true, | |
"hasOptionalParams" : false, | |
"returnTypeIsPrimitive" : false, | |
"returnSimpleType" : false, | |
"subresourceOperation" : false, | |
"isMapContainer" : false, | |
"isListContainer" : false, | |
"isMultipart" : false, | |
"hasMore" : false, | |
"isResponseBinary" : false, | |
"isResponseFile" : false, | |
"hasReference" : false, | |
"isRestfulIndex" : false, | |
"isRestfulShow" : false, | |
"isRestfulCreate" : false, | |
"isRestfulUpdate" : false, | |
"isRestfulDestroy" : false, | |
"isRestful" : false, | |
"path" : "/user/{username}", | |
"operationId" : "updateUser", | |
"httpMethod" : "put", | |
"summary" : "Updated user", | |
"unescapedNotes" : "This can only be done by the logged in user.", | |
"notes" : "This can only be done by the logged in user.", | |
"baseName" : "PetOwner", | |
"produces" : [ { | |
"hasMore" : "true", | |
"mediaType" : "application/xml" | |
}, { | |
"hasMore" : null, | |
"mediaType" : "application/json" | |
} ], | |
"bodyParam" : { | |
"isBodyParam" : true, | |
"secondaryParam" : true, | |
"baseName" : "body", | |
"paramName" : "body", | |
"dataType" : "User", | |
"description" : "Updated user object", | |
"unescapedDescription" : "Updated user object", | |
"baseType" : "User", | |
"jsonSchema" : "{\n \"in\" : \"body\",\n \"name\" : \"body\",\n \"description\" : \"Updated user object\",\n \"required\" : true,\n \"schema\" : {\n \"$ref\" : \"#/definitions/User\"\n }\n}", | |
"isBinary" : false, | |
"isEnum" : false, | |
"vendorExtensions" : { | |
"x-codegen-hasMoreRequired" : false | |
}, | |
"required" : true | |
}, | |
"allParams" : [ { | |
"isPathParam" : true, | |
"hasMore" : true, | |
"isPrimitiveType" : true, | |
"baseName" : "username", | |
"paramName" : "username", | |
"dataType" : "String", | |
"description" : "name that need to be updated", | |
"unescapedDescription" : "name that need to be updated", | |
"example" : "username_example", | |
"jsonSchema" : "{\n \"name\" : \"username\",\n \"in\" : \"path\",\n \"description\" : \"name that need to be updated\",\n \"required\" : true,\n \"type\" : \"string\"\n}", | |
"isString" : true, | |
"isEnum" : false, | |
"vendorExtensions" : { | |
"x-codegen-hasMoreRequired" : true, | |
"x-codegen-hasMoreOptional" : true | |
}, | |
"required" : true | |
}, { | |
"isBodyParam" : true, | |
"secondaryParam" : true, | |
"baseName" : "body", | |
"paramName" : "body", | |
"dataType" : "User", | |
"description" : "Updated user object", | |
"unescapedDescription" : "Updated user object", | |
"baseType" : "User", | |
"jsonSchema" : "{\n \"in\" : \"body\",\n \"name\" : \"body\",\n \"description\" : \"Updated user object\",\n \"required\" : true,\n \"schema\" : {\n \"$ref\" : \"#/definitions/User\"\n }\n}", | |
"isBinary" : false, | |
"isEnum" : false, | |
"vendorExtensions" : { | |
"x-codegen-hasMoreRequired" : false | |
}, | |
"required" : true | |
} ], | |
"bodyParams" : [ { | |
"isBodyParam" : true, | |
"baseName" : "body", | |
"paramName" : "body", | |
"dataType" : "User", | |
"description" : "Updated user object", | |
"unescapedDescription" : "Updated user object", | |
"baseType" : "User", | |
"jsonSchema" : "{\n \"in\" : \"body\",\n \"name\" : \"body\",\n \"description\" : \"Updated user object\",\n \"required\" : true,\n \"schema\" : {\n \"$ref\" : \"#/definitions/User\"\n }\n}", | |
"isBinary" : false, | |
"isEnum" : false, | |
"vendorExtensions" : { }, | |
"required" : true | |
} ], | |
"pathParams" : [ { | |
"isPathParam" : true, | |
"baseName" : "username", | |
"paramName" : "username", | |
"dataType" : "String", | |
"description" : "name that need to be updated", | |
"unescapedDescription" : "name that need to be updated", | |
"example" : "username_example", | |
"jsonSchema" : "{\n \"name\" : \"username\",\n \"in\" : \"path\",\n \"description\" : \"name that need to be updated\",\n \"required\" : true,\n \"type\" : \"string\"\n}", | |
"isString" : true, | |
"isEnum" : false, | |
"vendorExtensions" : { }, | |
"required" : true | |
} ], | |
"queryParams" : [ ], | |
"headerParams" : [ ], | |
"formParams" : [ ], | |
"tags" : [ "PetOwner" ], | |
"responses" : [ { | |
"headers" : [ ], | |
"code" : "400", | |
"message" : "Invalid user supplied", | |
"hasMore" : true, | |
"isDefault" : false, | |
"simpleType" : true, | |
"primitiveType" : true, | |
"isMapContainer" : false, | |
"isListContainer" : false, | |
"isBinary" : false, | |
"isFile" : false, | |
"jsonSchema" : "{\n \"description\" : \"Invalid user supplied\"\n}", | |
"vendorExtensions" : { }, | |
"wildcard" : false | |
}, { | |
"headers" : [ ], | |
"code" : "404", | |
"message" : "User not found", | |
"hasMore" : false, | |
"isDefault" : false, | |
"simpleType" : true, | |
"primitiveType" : true, | |
"isMapContainer" : false, | |
"isListContainer" : false, | |
"isBinary" : false, | |
"isFile" : false, | |
"jsonSchema" : "{\n \"description\" : \"User not found\"\n}", | |
"vendorExtensions" : { }, | |
"wildcard" : false | |
} ], | |
"imports" : [ "User", "string" ], | |
"vendorExtensions" : { | |
"x-codegen-hasRequiredParams" : true | |
}, | |
"nickname" : "updateUser", | |
"operationIdLowerCase" : "updateuser", | |
"restfulShow" : false, | |
"restfulIndex" : false, | |
"restfulCreate" : false, | |
"restfulUpdate" : false, | |
"restfulDestroy" : false, | |
"restful" : false, | |
"hasBodyParam" : true, | |
"hasHeaderParams" : false, | |
"hasPathParams" : true, | |
"hasFormParams" : false, | |
"hasExamples" : false, | |
"hasQueryParams" : false | |
} ], | |
"pathPrefix" : "petOwner" | |
}, | |
"jsProjectName" : "swagger_petstore", | |
"infoUrl" : null, | |
"inputSpec" : "https://gist.githubusercontent.com/DavidBiesack/70d2910322d5c68d730878f0d8c36587/raw/6b93d6450a74ea08bd31ef0250240e4dcd11a083/modified-petstore-swagger.json?_sm_au_=iVVDq7n0kPL7s5tR", | |
"artifactId" : "swagger-client", | |
"packageName" : "IO.Swagger", | |
"baseName" : "PetOwner", | |
"package" : "", | |
"imports" : [ { | |
"import" : "User" | |
}, { | |
"import" : "string" | |
} ], | |
"perlModuleName" : "WWW::SwaggerClient", | |
"artifactVersion" : "1.0.0", | |
"appName" : "Swagger Petstore", | |
"contextPath" : "/v2", | |
"appDescription" : "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.", | |
"termsOfService" : "http://swagger.io/terms/", | |
"releaseNote" : "Minor update", | |
"version" : "1.0.0", | |
"basePath" : "http://petstore.swagger.io/v2", | |
"classname" : "PetOwnerApi", | |
"pythonPackageName" : "swagger_client", | |
"gitRepoId" : "GIT_REPO_ID", | |
"generatedDate" : "2017-03-15T09:46:43.936-04:00", | |
"infoEmail" : "apiteam@swagger.io", | |
"phpInvokerPackage" : "Swagger\\Client", | |
"jsModuleName" : "SwaggerPetstore", | |
"gitUserId" : "GIT_USER_ID" | |
}, { | |
"importPath" : ".PetStore", | |
"licenseUrl" : "http://www.apache.org/licenses/LICENSE-2.0.html", | |
"appVersion" : "1.0.0", | |
"generatorClass" : "io.swagger.codegen.languages.StaticHtml2Generator", | |
"modelPackage" : "", | |
"sortParamsByRequiredFlag" : true, | |
"groupId" : "io.swagger", | |
"licenseInfo" : "Apache 2.0", | |
"invokerPackage" : "io.swagger.client", | |
"classVarName" : "petStore", | |
"hasImport" : true, | |
"generateModelTests" : true, | |
"basePathWithoutHost" : "/v2", | |
"generateApiTests" : true, | |
"classFilename" : "PetStoreApi", | |
"operations" : { | |
"classname" : "PetStoreApi", | |
"operation" : [ { | |
"responseHeaders" : [ ], | |
"hasAuthMethods" : true, | |
"hasConsumes" : false, | |
"hasProduces" : true, | |
"hasParams" : false, | |
"hasOptionalParams" : false, | |
"returnTypeIsPrimitive" : false, | |
"returnSimpleType" : false, | |
"subresourceOperation" : false, | |
"isMapContainer" : true, | |
"isListContainer" : false, | |
"isMultipart" : false, | |
"hasMore" : false, | |
"isResponseBinary" : false, | |
"isResponseFile" : false, | |
"hasReference" : false, | |
"isRestfulIndex" : false, | |
"isRestfulShow" : false, | |
"isRestfulCreate" : false, | |
"isRestfulUpdate" : false, | |
"isRestfulDestroy" : false, | |
"isRestful" : false, | |
"path" : "/store/inventory", | |
"operationId" : "getInventory", | |
"returnType" : "map['String', 'Integer']", | |
"httpMethod" : "get", | |
"returnBaseType" : "integer", | |
"returnContainer" : "map", | |
"summary" : "Returns pet inventories by status", | |
"unescapedNotes" : "Returns a map of status codes to quantities", | |
"notes" : "Returns a map of status codes to quantities", | |
"baseName" : "PetStore", | |
"defaultResponse" : "null", | |
"produces" : [ { | |
"hasMore" : null, | |
"mediaType" : "application/json" | |
} ], | |
"allParams" : [ ], | |
"bodyParams" : [ ], | |
"pathParams" : [ ], | |
"queryParams" : [ ], | |
"headerParams" : [ ], | |
"formParams" : [ ], | |
"authMethods" : [ { | |
"name" : "api_key", | |
"type" : "apiKey", | |
"hasMore" : false, | |
"isBasic" : false, | |
"isOAuth" : false, | |
"isApiKey" : true, | |
"keyParamName" : "api_key", | |
"isKeyInQuery" : false, | |
"isKeyInHeader" : true, | |
"isCode" : false, | |
"isPassword" : false, | |
"isApplication" : false, | |
"isImplicit" : false | |
} ], | |
"tags" : [ "PetStore" ], | |
"responses" : [ { | |
"headers" : [ ], | |
"code" : "200", | |
"message" : "successful operation", | |
"hasMore" : false, | |
"dataType" : "map[String, Integer]", | |
"baseType" : "integer", | |
"containerType" : "map", | |
"isDefault" : true, | |
"simpleType" : false, | |
"primitiveType" : false, | |
"isMapContainer" : true, | |
"isListContainer" : false, | |
"isBinary" : false, | |
"isFile" : false, | |
"schema" : { | |
"type" : "object", | |
"additionalProperties" : { | |
"type" : "integer", | |
"format" : "int32" | |
} | |
}, | |
"jsonSchema" : "{\n \"description\" : \"successful operation\",\n \"schema\" : {\n \"type\" : \"object\",\n \"additionalProperties\" : {\n \"type\" : \"integer\",\n \"format\" : \"int32\"\n }\n }\n}", | |
"vendorExtensions" : { }, | |
"wildcard" : false | |
} ], | |
"imports" : [ "integer" ], | |
"examples" : [ { | |
"contentType" : "application/json", | |
"example" : "{\n \"key\" : 123\n}" | |
} ], | |
"vendorExtensions" : { | |
"x-codegen-hasRequiredParams" : false | |
}, | |
"nickname" : "getInventory", | |
"operationIdLowerCase" : "getinventory", | |
"restfulShow" : false, | |
"restfulIndex" : false, | |
"restfulCreate" : false, | |
"restfulUpdate" : false, | |
"restfulDestroy" : false, | |
"restful" : false, | |
"hasBodyParam" : false, | |
"hasHeaderParams" : false, | |
"hasPathParams" : false, | |
"hasFormParams" : false, | |
"hasExamples" : true, | |
"hasQueryParams" : false | |
} ], | |
"pathPrefix" : "petStore" | |
}, | |
"jsProjectName" : "swagger_petstore", | |
"infoUrl" : null, | |
"inputSpec" : "https://gist.githubusercontent.com/DavidBiesack/70d2910322d5c68d730878f0d8c36587/raw/6b93d6450a74ea08bd31ef0250240e4dcd11a083/modified-petstore-swagger.json?_sm_au_=iVVDq7n0kPL7s5tR", | |
"artifactId" : "swagger-client", | |
"packageName" : "IO.Swagger", | |
"baseName" : "PetStore", | |
"package" : "", | |
"imports" : [ { | |
"import" : "integer" | |
} ], | |
"perlModuleName" : "WWW::SwaggerClient", | |
"artifactVersion" : "1.0.0", | |
"appName" : "Swagger Petstore", | |
"contextPath" : "/v2", | |
"appDescription" : "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.", | |
"termsOfService" : "http://swagger.io/terms/", | |
"releaseNote" : "Minor update", | |
"version" : "1.0.0", | |
"basePath" : "http://petstore.swagger.io/v2", | |
"classname" : "PetStoreApi", | |
"pythonPackageName" : "swagger_client", | |
"gitRepoId" : "GIT_REPO_ID", | |
"generatedDate" : "2017-03-15T09:46:43.936-04:00", | |
"infoEmail" : "apiteam@swagger.io", | |
"phpInvokerPackage" : "Swagger\\Client", | |
"jsModuleName" : "SwaggerPetstore", | |
"gitUserId" : "GIT_USER_ID" | |
} ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment