diff --git a/generated/document.html b/generated/document.html index 4034fc7..29b6775 100644 --- a/generated/document.html +++ b/generated/document.html @@ -40,22 +40,13 @@ ### PUT -Update an existing pet + -#### Security - - - - -* petstore_auth - * write:pets - * read:pets - @@ -66,47 +57,19 @@ ##### Parameters - - - - - - - - - - - - - - - - - - - - - -
NameLocated inRequiredDescriptionDefaultSchema
bodybodyyesPet object that needs to be added to the store - - - Pet -
- #### Response -**Content-Type: ** application/xml, application/json +**Content-Type: ** application/json, application/xml | Status Code | Reason | Response Model | |-------------|-------------|----------------| -| 400 | Invalid ID supplied | - | -| 404 | Pet not found | - | -| 405 | Validation exception | - | +| default | successful operation | - | @@ -115,22 +78,13 @@ ### POST -Add a new pet to the store - - - - + -#### Security -* petstore_auth - * write:pets - * read:pets - @@ -141,45 +95,19 @@ ##### Parameters - - - - - - - - - - - - - - - - - - - - - - -
NameLocated inRequiredDescriptionDefaultSchema
bodybodyyesPet object that needs to be added to the store - - - Pet -
#### Response -**Content-Type: ** application/xml, application/json +**Content-Type: ** application/json, application/xml | Status Code | Reason | Response Model | |-------------|-------------|----------------| -| 405 | Invalid input | - | +| default | successful operation | - | @@ -200,24 +128,15 @@ ### GET -Finds Pets by status - -Multiple status values can be provided with comma seperated strings + -#### Security -* petstore_auth - * write:pets - * read:pets - - - #### Request @@ -240,12 +159,12 @@ status query - yes - Status values that need to be considered for filter + no + - - Array[string] (multi) + string @@ -257,13 +176,12 @@ #### Response -**Content-Type: ** application/xml, application/json +**Content-Type: ** application/json, application/xml | Status Code | Reason | Response Model | |-------------|-------------|----------------| -| 200 | successful operation | Array[Pet]| -| 400 | Invalid status value | - | +| default | successful operation | - | @@ -286,25 +204,16 @@ ### GET - -Finds Pets by tags - -Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing. +-deprecated- + -#### Security -* petstore_auth - * write:pets - * read:pets - - - #### Request @@ -327,12 +236,12 @@ tags query - yes - Tags to filter by + no + - - Array[string] (multi) + string @@ -344,13 +253,12 @@ #### Response -**Content-Type: ** application/xml, application/json +**Content-Type: ** application/json, application/xml | Status Code | Reason | Response Model | |-------------|-------------|----------------| -| 200 | successful operation | Array[Pet]| -| 400 | Invalid tag value | - | +| default | successful operation | - | @@ -374,27 +282,13 @@ ### GET -Find pet by ID - -Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions - - + -#### Security -* api_key - - - - -* petstore_auth - * write:pets - * read:pets - @@ -420,7 +314,7 @@ petId path yes - ID of pet that needs to be fetched + - @@ -436,14 +330,12 @@ #### Response -**Content-Type: ** application/xml, application/json +**Content-Type: ** application/json, application/xml | Status Code | Reason | Response Model | |-------------|-------------|----------------| -| 200 | successful operation | Pet| -| 400 | Invalid ID supplied | - | -| 404 | Pet not found | - | +| default | successful operation | - | @@ -454,22 +346,13 @@ ### POST -Updates a pet in the store with form data + -#### Security - - - - -* petstore_auth - * write:pets - * read:pets - @@ -496,7 +379,7 @@ petId path yes - ID of pet that needs to be updated + - @@ -509,7 +392,7 @@ name formData no - Updated name of the pet + - @@ -522,7 +405,7 @@ status formData no - Updated status of the pet + - @@ -538,12 +421,12 @@ #### Response -**Content-Type: ** application/xml, application/json +**Content-Type: ** application/json, application/xml | Status Code | Reason | Response Model | |-------------|-------------|----------------| -| 405 | Invalid input | - | +| default | successful operation | - | @@ -552,21 +435,12 @@ ### DELETE -Deletes a pet - - - - - + -#### Security -* petstore_auth - * write:pets - * read:pets @@ -606,7 +480,7 @@ petId path yes - Pet id to delete + - @@ -622,12 +496,12 @@ #### Response -**Content-Type: ** application/xml, application/json +**Content-Type: ** application/json, application/xml | Status Code | Reason | Response Model | |-------------|-------------|----------------| -| 400 | Invalid pet value | - | +| default | successful operation | - | @@ -650,7 +524,7 @@ ### POST -Place an order for a pet + @@ -666,46 +540,19 @@ ##### Parameters - - - - - - - - - - - - - - - - - - - - - - -
NameLocated inRequiredDescriptionDefaultSchema
bodybodyyesorder placed for purchasing the pet - - - Order -
#### Response -**Content-Type: ** application/xml, application/json +**Content-Type: ** application/json, application/xml | Status Code | Reason | Response Model | |-------------|-------------|----------------| | 200 | successful operation | Order| -| 400 | Invalid Order | - | @@ -726,9 +573,9 @@ ### GET -Find purchase order by ID + + -For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions @@ -758,7 +605,7 @@ orderId path yes - ID of pet that needs to be fetched + - @@ -774,14 +621,12 @@ #### Response -**Content-Type: ** application/xml, application/json +**Content-Type: ** application/json, application/xml | Status Code | Reason | Response Model | |-------------|-------------|----------------| -| 200 | successful operation | Order| -| 400 | Invalid ID supplied | - | -| 404 | Order not found | - | +| default | successful operation | - | @@ -793,9 +638,9 @@ ### DELETE -Delete purchase order by ID + + -For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors @@ -825,7 +670,7 @@ orderId path yes - ID of the order that needs to be deleted + - @@ -841,13 +686,12 @@ #### Response -**Content-Type: ** application/xml, application/json +**Content-Type: ** application/json, application/xml | Status Code | Reason | Response Model | |-------------|-------------|----------------| -| 400 | Invalid ID supplied | - | -| 404 | Order not found | - | +| default | successful operation | - | @@ -870,9 +714,9 @@ ### POST -Create user + + -This can only be done by the logged in user. @@ -886,40 +730,14 @@ ##### Parameters - - - - - - - - - - - - - - - - - - - - - -
NameLocated inRequiredDescriptionDefaultSchema
bodybodyyesCreated user object - - - User -
- #### Response -**Content-Type: ** application/xml, application/json +**Content-Type: ** application/json, application/xml | Status Code | Reason | Response Model | @@ -950,7 +768,7 @@ ### POST -Creates list of users with given input array + @@ -966,40 +784,14 @@ ##### Parameters - - - - - - - - - - - - - - - - - - - - - - -
NameLocated inRequiredDescriptionDefaultSchema
bodybodyyesList of user object - - Array[User] - -
#### Response -**Content-Type: ** application/xml, application/json +**Content-Type: ** application/json, application/xml | Status Code | Reason | Response Model | @@ -1030,7 +822,7 @@ ### POST -Creates list of users with given input array + @@ -1046,40 +838,14 @@ ##### Parameters - - - - - - - - - - - - - - - - - - - - - - -
NameLocated inRequiredDescriptionDefaultSchema
bodybodyyesList of user object - - Array[User] - -
#### Response -**Content-Type: ** application/xml, application/json +**Content-Type: ** application/json, application/xml | Status Code | Reason | Response Model | @@ -1105,7 +871,7 @@ ### GET -Logs user into the system + @@ -1136,8 +902,8 @@ username query - yes - The user name for login + no + - @@ -1149,8 +915,8 @@ password query - yes - The password for login in clear text + no + - @@ -1166,13 +932,12 @@ #### Response -**Content-Type: ** application/xml, application/json +**Content-Type: ** application/json, application/xml | Status Code | Reason | Response Model | |-------------|-------------|----------------| -| 200 | successful operation | | -| 400 | Invalid username/password supplied | - | +| default | successful operation | - | @@ -1196,7 +961,7 @@ ### GET -Logs out current logged in user session + @@ -1219,7 +984,7 @@ #### Response -**Content-Type: ** application/xml, application/json +**Content-Type: ** application/json, application/xml | Status Code | Reason | Response Model | @@ -1248,7 +1013,7 @@ ### GET -Get user by user name + @@ -1280,7 +1045,7 @@ username path yes - The name that needs to be fetched. Use user1 for testing. + - @@ -1296,14 +1061,12 @@ #### Response -**Content-Type: ** application/xml, application/json +**Content-Type: ** application/json, application/xml | Status Code | Reason | Response Model | |-------------|-------------|----------------| -| 200 | successful operation | User| -| 400 | Invalid username supplied | - | -| 404 | User not found | - | +| default | successful operation | - | @@ -1311,9 +1074,9 @@ ### PUT -Updated user + + -This can only be done by the logged in user. @@ -1343,7 +1106,7 @@ username path yes - name that need to be deleted + - @@ -1352,20 +1115,6 @@ - - body - body - yes - Updated user object - - - - - - User - - - - @@ -1373,13 +1122,12 @@ #### Response -**Content-Type: ** application/xml, application/json +**Content-Type: ** application/json, application/xml | Status Code | Reason | Response Model | |-------------|-------------|----------------| -| 400 | Invalid user supplied | - | -| 404 | User not found | - | +| default | successful operation | - | @@ -1389,9 +1137,9 @@ ### DELETE -Delete user + + -This can only be done by the logged in user. @@ -1421,7 +1169,7 @@ username path yes - The name that needs to be deleted + - @@ -1437,13 +1185,12 @@ #### Response -**Content-Type: ** application/xml, application/json +**Content-Type: ** application/json, application/xml | Status Code | Reason | Response Model | |-------------|-------------|----------------| -| 400 | Invalid username supplied | - | -| 404 | User not found | - | +| default | successful operation | - | @@ -1459,45 +1206,6 @@ # Definitions -## Category - - - - - - - - - - - - - - - - - - - - - - - - - - -
nametyperequireddescriptionexample
id - - - integer (int64) - - optional-
name - - - string - - optional-
- ## Order @@ -1570,7 +1278,7 @@ - + @@ -1589,255 +1297,6 @@
optionalOrder Status-
-## Pet - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
nametyperequireddescriptionexample
id - - - integer (int64) - - optional-
category - - Category - - - optional-
name - - - string - - required-doggie
photoUrls - - - array[string] - - required-
tags - - - array[Tag] - - - - optional-
status - - - string - - optionalpet status in the store
- -## Tag - - - - - - - - - - - - - - - - - - - - - - - - - - -
nametyperequireddescriptionexample
id - - - integer (int64) - - optional-
name - - - string - - optional-
- -## User - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
nametyperequireddescriptionexample
id - - - integer (int64) - - optional-
username - - - string - - optional-
firstName - - - string - - optional-
lastName - - - string - - optional-
email - - - string - - optional-
password - - - string - - optional-
phone - - - string - - optional-
userStatus - - - integer (int32) - - optionalUser Status
- diff --git a/generated/swagger-ui/swagger.json b/generated/swagger-ui/swagger.json index a1bd314..569120d 100644 --- a/generated/swagger-ui/swagger.json +++ b/generated/swagger-ui/swagger.json @@ -17,347 +17,180 @@ }, "host" : "petstore.swagger.wordnik.com", "basePath" : "/api", - "tags" : [ { - "name" : "pet" - }, { - "name" : "user" - }, { - "name" : "store" - } ], "schemes" : [ "http", "https" ], "paths" : { "/pet" : { "post" : { - "tags" : [ "pet" ], - "summary" : "Add a new pet to the store", - "description" : "", "operationId" : "addPet", "consumes" : [ "application/json", "application/xml" ], - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "Pet object that needs to be added to the store", - "required" : true, - "schema" : { - "$ref" : "#/definitions/Pet" - } - } ], + "produces" : [ "application/json", "application/xml" ], "responses" : { - "405" : { - "description" : "Invalid input" + "default" : { + "description" : "successful operation" } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ] + } }, "put" : { - "tags" : [ "pet" ], - "summary" : "Update an existing pet", - "description" : "", "operationId" : "updatePet", "consumes" : [ "application/json", "application/xml" ], - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "Pet object that needs to be added to the store", - "required" : true, - "schema" : { - "$ref" : "#/definitions/Pet" - } - } ], + "produces" : [ "application/json", "application/xml" ], "responses" : { - "400" : { - "description" : "Invalid ID supplied" - }, - "404" : { - "description" : "Pet not found" - }, - "405" : { - "description" : "Validation exception" + "default" : { + "description" : "successful operation" } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ] + } } }, "/pet/findByStatus" : { "get" : { - "tags" : [ "pet" ], - "summary" : "Finds Pets by status", - "description" : "Multiple status values can be provided with comma seperated strings", "operationId" : "findPetsByStatus", - "produces" : [ "application/xml", "application/json" ], + "produces" : [ "application/json", "application/xml" ], "parameters" : [ { "name" : "status", "in" : "query", - "description" : "Status values that need to be considered for filter", - "required" : true, - "type" : "array", - "items" : { - "type" : "string" - }, - "collectionFormat" : "multi", - "default" : "available", - "enum" : [ "available", "pending", "sold" ] + "required" : false, + "type" : "string" } ], "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/Pet" - } - } - }, - "400" : { - "description" : "Invalid status value" + "default" : { + "description" : "successful operation" } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ] + } } }, "/pet/findByTags" : { "get" : { - "tags" : [ "pet" ], - "summary" : "Finds Pets by tags", - "description" : "Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.", "operationId" : "findPetsByTags", - "produces" : [ "application/xml", "application/json" ], + "produces" : [ "application/json", "application/xml" ], "parameters" : [ { "name" : "tags", "in" : "query", - "description" : "Tags to filter by", - "required" : true, - "type" : "array", - "items" : { - "type" : "string" - }, - "collectionFormat" : "multi" + "required" : false, + "type" : "string" } ], "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/Pet" - } - } - }, - "400" : { - "description" : "Invalid tag value" + "default" : { + "description" : "successful operation" } }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ] + "deprecated" : true } }, "/pet/{petId}" : { "get" : { - "tags" : [ "pet" ], - "summary" : "Find pet by ID", - "description" : "Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions", "operationId" : "getPetById", - "produces" : [ "application/xml", "application/json" ], + "produces" : [ "application/json", "application/xml" ], "parameters" : [ { "name" : "petId", "in" : "path", - "description" : "ID of pet that needs to be fetched", "required" : true, "type" : "integer", "format" : "int64" } ], "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/Pet" - } - }, - "400" : { - "description" : "Invalid ID supplied" - }, - "404" : { - "description" : "Pet not found" + "default" : { + "description" : "successful operation" } - }, - "security" : [ { - "api_key" : [ ] - }, { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ] + } }, "post" : { - "tags" : [ "pet" ], - "summary" : "Updates a pet in the store with form data", - "description" : "", "operationId" : "updatePetWithForm", "consumes" : [ "application/x-www-form-urlencoded" ], - "produces" : [ "application/xml", "application/json" ], + "produces" : [ "application/json", "application/xml" ], "parameters" : [ { "name" : "petId", "in" : "path", - "description" : "ID of pet that needs to be updated", "required" : true, "type" : "string" }, { "name" : "name", "in" : "formData", - "description" : "Updated name of the pet", "required" : false, "type" : "string" }, { "name" : "status", "in" : "formData", - "description" : "Updated status of the pet", "required" : false, "type" : "string" } ], "responses" : { - "405" : { - "description" : "Invalid input" + "default" : { + "description" : "successful operation" } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ] + } }, "delete" : { - "tags" : [ "pet" ], - "summary" : "Deletes a pet", - "description" : "", "operationId" : "deletePet", - "produces" : [ "application/xml", "application/json" ], + "produces" : [ "application/json", "application/xml" ], "parameters" : [ { "name" : "api_key", "in" : "header", - "description" : "", "required" : false, - "type" : "string", - "default" : "" + "type" : "string" }, { "name" : "petId", "in" : "path", - "description" : "Pet id to delete", "required" : true, "type" : "integer", "format" : "int64" } ], "responses" : { - "400" : { - "description" : "Invalid pet value" + "default" : { + "description" : "successful operation" } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ] + } } }, "/store/order" : { "post" : { - "tags" : [ "store" ], - "summary" : "Place an order for a pet", - "description" : "", "operationId" : "placeOrder", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "order placed for purchasing the pet", - "required" : true, - "schema" : { - "$ref" : "#/definitions/Order" - } - } ], + "produces" : [ "application/json", "application/xml" ], "responses" : { "200" : { "description" : "successful operation", "schema" : { "$ref" : "#/definitions/Order" } - }, - "400" : { - "description" : "Invalid Order" } } } }, "/store/order/{orderId}" : { "get" : { - "tags" : [ "store" ], - "summary" : "Find purchase order by ID", - "description" : "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", "operationId" : "getOrderById", - "produces" : [ "application/xml", "application/json" ], + "produces" : [ "application/json", "application/xml" ], "parameters" : [ { "name" : "orderId", "in" : "path", - "description" : "ID of pet that needs to be fetched", "required" : true, "type" : "string" } ], "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/Order" - } - }, - "400" : { - "description" : "Invalid ID supplied" - }, - "404" : { - "description" : "Order not found" + "default" : { + "description" : "successful operation" } } }, "delete" : { - "tags" : [ "store" ], - "summary" : "Delete purchase order by ID", - "description" : "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", "operationId" : "deleteOrder", - "produces" : [ "application/xml", "application/json" ], + "produces" : [ "application/json", "application/xml" ], "parameters" : [ { "name" : "orderId", "in" : "path", - "description" : "ID of the order that needs to be deleted", "required" : true, "type" : "string" } ], "responses" : { - "400" : { - "description" : "Invalid ID supplied" - }, - "404" : { - "description" : "Order not found" + "default" : { + "description" : "successful operation" } } } }, "/user" : { "post" : { - "tags" : [ "user" ], - "summary" : "Create user", - "description" : "This can only be done by the logged in user.", "operationId" : "createUser", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "Created user object", - "required" : true, - "schema" : { - "$ref" : "#/definitions/User" - } - } ], + "produces" : [ "application/json", "application/xml" ], "responses" : { "default" : { "description" : "successful operation" @@ -367,23 +200,8 @@ }, "/user/createWithArray" : { "post" : { - "tags" : [ "user" ], - "summary" : "Creates list of users with given input array", - "description" : "", "operationId" : "createUsersWithArrayInput", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "List of user object", - "required" : true, - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/User" - } - } - } ], + "produces" : [ "application/json", "application/xml" ], "responses" : { "default" : { "description" : "successful operation" @@ -393,23 +211,8 @@ }, "/user/createWithList" : { "post" : { - "tags" : [ "user" ], - "summary" : "Creates list of users with given input array", - "description" : "", "operationId" : "createUsersWithListInput", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "List of user object", - "required" : true, - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/User" - } - } - } ], + "produces" : [ "application/json", "application/xml" ], "responses" : { "default" : { "description" : "successful operation" @@ -419,44 +222,30 @@ }, "/user/login" : { "get" : { - "tags" : [ "user" ], - "summary" : "Logs user into the system", - "description" : "", "operationId" : "loginUser", - "produces" : [ "application/xml", "application/json" ], + "produces" : [ "application/json", "application/xml" ], "parameters" : [ { "name" : "username", "in" : "query", - "description" : "The user name for login", - "required" : true, + "required" : false, "type" : "string" }, { "name" : "password", "in" : "query", - "description" : "The password for login in clear text", - "required" : true, + "required" : false, "type" : "string" } ], "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "type" : "string" - } - }, - "400" : { - "description" : "Invalid username/password supplied" + "default" : { + "description" : "successful operation" } } } }, "/user/logout" : { "get" : { - "tags" : [ "user" ], - "summary" : "Logs out current logged in user session", - "description" : "", "operationId" : "logoutUser", - "produces" : [ "application/xml", "application/json" ], + "produces" : [ "application/json", "application/xml" ], "responses" : { "default" : { "description" : "successful operation" @@ -466,103 +255,55 @@ }, "/user/{username}" : { "get" : { - "tags" : [ "user" ], - "summary" : "Get user by user name", - "description" : "", "operationId" : "getUserByName", - "produces" : [ "application/xml", "application/json" ], + "produces" : [ "application/json", "application/xml" ], "parameters" : [ { "name" : "username", "in" : "path", - "description" : "The name that needs to be fetched. Use user1 for testing. ", "required" : true, "type" : "string" } ], "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/User" - } - }, - "400" : { - "description" : "Invalid username supplied" - }, - "404" : { - "description" : "User not found" + "default" : { + "description" : "successful operation" } } }, "put" : { - "tags" : [ "user" ], - "summary" : "Updated user", - "description" : "This can only be done by the logged in user.", "operationId" : "updateUser", - "produces" : [ "application/xml", "application/json" ], + "produces" : [ "application/json", "application/xml" ], "parameters" : [ { "name" : "username", "in" : "path", - "description" : "name that need to be deleted", "required" : true, "type" : "string" - }, { - "in" : "body", - "name" : "body", - "description" : "Updated user object", - "required" : true, - "schema" : { - "$ref" : "#/definitions/User" - } } ], "responses" : { - "400" : { - "description" : "Invalid user supplied" - }, - "404" : { - "description" : "User not found" + "default" : { + "description" : "successful operation" } } }, "delete" : { - "tags" : [ "user" ], - "summary" : "Delete user", - "description" : "This can only be done by the logged in user.", "operationId" : "deleteUser", - "produces" : [ "application/xml", "application/json" ], + "produces" : [ "application/json", "application/xml" ], "parameters" : [ { "name" : "username", "in" : "path", - "description" : "The name that needs to be deleted", "required" : true, "type" : "string" } ], "responses" : { - "400" : { - "description" : "Invalid username supplied" - }, - "404" : { - "description" : "User not found" + "default" : { + "description" : "successful operation" } } } } }, "definitions" : { - "Category" : { - "properties" : { - "id" : { - "type" : "integer", - "format" : "int64" - }, - "name" : { - "type" : "string" - } - }, - "xml" : { - "name" : "Category" - } - }, "Order" : { + "type" : "object", "properties" : { "id" : { "type" : "integer", @@ -581,110 +322,15 @@ "format" : "date-time" }, "status" : { - "type" : "string", - "description" : "Order Status", - "enum" : [ "placed", "approved", "delivered" ] + "type" : "string" }, "complete" : { - "type" : "boolean", - "default" : false + "type" : "boolean" } }, "xml" : { "name" : "Order" } - }, - "Pet" : { - "required" : [ "name", "photoUrls" ], - "properties" : { - "id" : { - "type" : "integer", - "format" : "int64" - }, - "category" : { - "$ref" : "#/definitions/Category" - }, - "name" : { - "type" : "string", - "example" : "doggie" - }, - "photoUrls" : { - "type" : "array", - "xml" : { - "name" : "photoUrl", - "wrapped" : true - }, - "items" : { - "type" : "string" - } - }, - "tags" : { - "type" : "array", - "xml" : { - "name" : "tag", - "wrapped" : true - }, - "items" : { - "$ref" : "#/definitions/Tag" - } - }, - "status" : { - "type" : "string", - "description" : "pet status in the store", - "enum" : [ "available", "pending", "sold" ] - } - }, - "xml" : { - "name" : "Pet" - } - }, - "Tag" : { - "properties" : { - "id" : { - "type" : "integer", - "format" : "int64" - }, - "name" : { - "type" : "string" - } - }, - "xml" : { - "name" : "Tag" - } - }, - "User" : { - "properties" : { - "id" : { - "type" : "integer", - "format" : "int64" - }, - "username" : { - "type" : "string" - }, - "firstName" : { - "type" : "string" - }, - "lastName" : { - "type" : "string" - }, - "email" : { - "type" : "string" - }, - "password" : { - "type" : "string" - }, - "phone" : { - "type" : "string" - }, - "userStatus" : { - "type" : "integer", - "format" : "int32", - "description" : "User Status" - } - }, - "xml" : { - "name" : "User" - } } } } \ No newline at end of file diff --git a/pom.xml b/pom.xml index 0e47c9c..6489c65 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ com.github.kongchen swagger-maven-plugin - 3.0.1-SNAPSHOT + 3.1.6-SNAPSHOT