2015-02-17 06:02:27 +00:00
< html lang = "en" >
2015-06-09 07:25:09 +00:00
< head >
< meta charset = "utf-8" / >
2015-02-17 06:02:27 +00:00
< title > API Reference< / title >
2015-06-09 07:25:09 +00:00
< / head >
< body >
< h1 > Swagger Petstore< / h1 >
< div class = "app-desc" > This is a sample server Petstore server. You can find out more about Swagger at < a href = \"http://swagger.io\" > http://swagger.io< / a > or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters for < / div >
2015-06-08 03:50:35 +00:00
< div class = "app-desc" > Contact Info: < a href = "apiteam@swagger.io" > apiteam@swagger.io< / a > < / div >
< div class = "app-desc" > Version: 1.0.0< / div >
2015-06-09 07:25:09 +00:00
< div class = "license-info" > Apache 2.0< / div >
< div class = "license-url" > http://www.apache.org/licenses/LICENSE-2.0.html< / div >
< h2 > Access< / h2 >
< div class = "method-summary" > Customize this message as you see fit!< / div >
< h2 > Methods< / h2 >
< div class = "method" >
< div class = "method-path" > < pre class = "put" > < code class = "huge" > < span > put< / span > : /pet< / code > < / pre > < / div >
< div class = "method-tags" > < span class = "method-tag" > Pet< / span > < / div >
< div class = "method-summary" > < span class = "nickname" > updatePet< / span > Update an existing pet< / div >
< div class = "method-notes" > < / div >
< h3 class = "field-label" > Parameters< / h3 >
< div class = "field-items" >
< div class = "param" > body (optional)< / div >
< div class = "param-desc" > < span class = "param-type" > Body Parameter< / span > — Pet object that needs to be added to the store < / div >
< / div > <!-- field - items -->
< h3 class = "field-label" > Return type< / h3 >
< div class = "return-type" > < a href = "#" > < / a > < / div >
< / div > <!-- method -->
< hr >
< div class = "method" >
< div class = "method-path" > < pre class = "post" > < code class = "huge" > < span > post< / span > : /pet< / code > < / pre > < / div >
< div class = "method-tags" > < span class = "method-tag" > Pet< / span > < / div >
< div class = "method-summary" > < span class = "nickname" > addPet< / span > Add a new pet to the store< / div >
< div class = "method-notes" > < / div >
< h3 class = "field-label" > Parameters< / h3 >
< div class = "field-items" >
< div class = "param" > body (optional)< / div >
< div class = "param-desc" > < span class = "param-type" > Body Parameter< / span > — Pet object that needs to be added to the store < / div >
< / div > <!-- field - items -->
< h3 class = "field-label" > Return type< / h3 >
< div class = "return-type" > < a href = "#" > < / a > < / div >
< / div > <!-- method -->
< hr >
< div class = "method" >
< div class = "method-path" > < pre class = "get" > < code class = "huge" > < span > get< / span > : /pet/findByStatus< / code > < / pre > < / div >
< div class = "method-tags" > < span class = "method-tag" > Pet< / span > < / div >
< div class = "method-summary" > < span class = "nickname" > findPetsByStatus< / span > Finds Pets by status< / div >
< div class = "method-notes" > Multiple status values can be provided with comma seperated strings< / div >
< h3 class = "field-label" > Parameters< / h3 >
< div class = "field-items" >
< div class = "param" > status (optional)< / div >
< div class = "param-desc" > < span class = "param-type" > Query Parameter< / span > — Status values that need to be considered for filter default: available< / div >
< / div > <!-- field - items -->
< h3 class = "field-label" > Return type< / h3 >
< div class = "return-type" > < a href = "#array" > array[Pet]< / a > < / div >
< h3 class = "field-label" > Example data< / h3 >
< div class = "example-data-content-type" > Content-Type: application/json< / div >
< pre class = "example" > < code > [ {
" photoUrls" : [ " aeiou" ],
" name" : " doggie" ,
2015-06-08 03:50:35 +00:00
" id" : 123456789,
" category" : {
2015-06-09 07:25:09 +00:00
" name" : " aeiou" ,
" id" : 123456789
2015-06-08 03:50:35 +00:00
},
2015-06-09 07:25:09 +00:00
" tags" : [ {
" name" : " aeiou" ,
" id" : 123456789
} ],
" status" : " aeiou"
2015-06-08 03:50:35 +00:00
} ]< / code > < / pre >
2015-06-09 07:25:09 +00:00
< h3 class = "field-label" > Example data< / h3 >
< div class = "example-data-content-type" > Content-Type: application/xml< / div >
< pre class = "example" > < code > < Pet>
2015-06-08 03:50:35 +00:00
< id> 123456< /id>
< name> doggie< /name>
< photoUrls> string< /photoUrls>
< status> string< /status>
< /Pet> < / code > < / pre >
2015-06-09 07:25:09 +00:00
< / div > <!-- method -->
< hr >
< div class = "method" >
< div class = "method-path" > < pre class = "get" > < code class = "huge" > < span > get< / span > : /pet/findByTags< / code > < / pre > < / div >
< div class = "method-tags" > < span class = "method-tag" > Pet< / span > < / div >
< div class = "method-summary" > < span class = "nickname" > findPetsByTags< / span > Finds Pets by tags< / div >
< div class = "method-notes" > Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.< / div >
< h3 class = "field-label" > Parameters< / h3 >
< div class = "field-items" >
< div class = "param" > tags (optional)< / div >
< div class = "param-desc" > < span class = "param-type" > Query Parameter< / span > — Tags to filter by < / div >
< / div > <!-- field - items -->
< h3 class = "field-label" > Return type< / h3 >
< div class = "return-type" > < a href = "#array" > array[Pet]< / a > < / div >
< h3 class = "field-label" > Example data< / h3 >
< div class = "example-data-content-type" > Content-Type: application/json< / div >
< pre class = "example" > < code > [ {
" photoUrls" : [ " aeiou" ],
" name" : " doggie" ,
2015-06-08 03:50:35 +00:00
" id" : 123456789,
" category" : {
2015-06-09 07:25:09 +00:00
" name" : " aeiou" ,
" id" : 123456789
2015-06-08 03:50:35 +00:00
},
2015-06-09 07:25:09 +00:00
" tags" : [ {
" name" : " aeiou" ,
" id" : 123456789
} ],
" status" : " aeiou"
2015-06-08 03:50:35 +00:00
} ]< / code > < / pre >
2015-06-09 07:25:09 +00:00
< h3 class = "field-label" > Example data< / h3 >
< div class = "example-data-content-type" > Content-Type: application/xml< / div >
< pre class = "example" > < code > < Pet>
2015-06-08 03:50:35 +00:00
< id> 123456< /id>
< name> doggie< /name>
< photoUrls> string< /photoUrls>
< status> string< /status>
< /Pet> < / code > < / pre >
2015-06-09 07:25:09 +00:00
< / div > <!-- method -->
< hr >
< div class = "method" >
< div class = "method-path" > < pre class = "get" > < code class = "huge" > < span > get< / span > : /pet/{petId}< / code > < / pre > < / div >
< div class = "method-tags" > < span class = "method-tag" > Pet< / span > < / div >
< div class = "method-summary" > < span class = "nickname" > getPetById< / span > Find pet by ID< / div >
< div class = "method-notes" > Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions< / div >
< h3 class = "field-label" > Parameters< / h3 >
< div class = "field-items" >
< div class = "param" > petId (required)< / div >
< div class = "param-desc" > < span class = "param-type" > Path Parameter< / span > — ID of pet that needs to be fetched < / div >
< / div > <!-- field - items -->
< h3 class = "field-label" > Return type< / h3 >
< div class = "return-type" > < a href = "#" > Pet< / a > < / div >
< h3 class = "field-label" > Example data< / h3 >
< div class = "example-data-content-type" > Content-Type: application/json< / div >
< pre class = "example" > < code > {
" photoUrls" : [ " aeiou" ],
" name" : " doggie" ,
2015-06-08 03:50:35 +00:00
" id" : 123456789,
" category" : {
2015-06-09 07:25:09 +00:00
" name" : " aeiou" ,
" id" : 123456789
2015-06-08 03:50:35 +00:00
},
2015-06-09 07:25:09 +00:00
" tags" : [ {
" name" : " aeiou" ,
" id" : 123456789
} ],
" status" : " aeiou"
2015-06-08 03:50:35 +00:00
}< / code > < / pre >
2015-06-09 07:25:09 +00:00
< h3 class = "field-label" > Example data< / h3 >
< div class = "example-data-content-type" > Content-Type: application/xml< / div >
< pre class = "example" > < code > < Pet>
2015-06-08 03:50:35 +00:00
< id> 123456< /id>
< name> doggie< /name>
< photoUrls> string< /photoUrls>
< status> string< /status>
< /Pet> < / code > < / pre >
2015-06-09 07:25:09 +00:00
< / div > <!-- method -->
< hr >
< div class = "method" >
< div class = "method-path" > < pre class = "post" > < code class = "huge" > < span > post< / span > : /pet/{petId}< / code > < / pre > < / div >
< div class = "method-tags" > < span class = "method-tag" > Pet< / span > < / div >
< div class = "method-summary" > < span class = "nickname" > updatePetWithForm< / span > Updates a pet in the store with form data< / div >
< div class = "method-notes" > < / div >
< h3 class = "field-label" > Parameters< / h3 >
< div class = "field-items" >
< div class = "param" > petId (required)< / div >
< div class = "param-desc" > < span class = "param-type" > Path Parameter< / span > — ID of pet that needs to be updated < / div >
< div class = "param" > name (optional)< / div >
< div class = "param-desc" > < span class = "param-type" > Form Parameter< / span > — Updated name of the pet < / div >
< div class = "param" > status (optional)< / div >
< div class = "param-desc" > < span class = "param-type" > Form Parameter< / span > — Updated status of the pet < / div >
< / div > <!-- field - items -->
< h3 class = "field-label" > Return type< / h3 >
< div class = "return-type" > < a href = "#" > < / a > < / div >
< / div > <!-- method -->
< hr >
< div class = "method" >
< div class = "method-path" > < pre class = "delete" > < code class = "huge" > < span > delete< / span > : /pet/{petId}< / code > < / pre > < / div >
< div class = "method-tags" > < span class = "method-tag" > Pet< / span > < / div >
< div class = "method-summary" > < span class = "nickname" > deletePet< / span > Deletes a pet< / div >
< div class = "method-notes" > < / div >
< h3 class = "field-label" > Parameters< / h3 >
< div class = "field-items" >
< div class = "param" > apiKey (optional)< / div >
< div class = "param-desc" > < span class = "param-type" > Header Parameter< / span > — < / div >
< div class = "param" > petId (required)< / div >
< div class = "param-desc" > < span class = "param-type" > Path Parameter< / span > — Pet id to delete < / div >
< / div > <!-- field - items -->
< h3 class = "field-label" > Return type< / h3 >
< div class = "return-type" > < a href = "#" > < / a > < / div >
< / div > <!-- method -->
< hr >
< div class = "method" >
< div class = "method-path" > < pre class = "post" > < code class = "huge" > < span > post< / span > : /pet/{petId}/uploadImage< / code > < / pre > < / div >
< div class = "method-tags" > < span class = "method-tag" > Pet< / span > < / div >
< div class = "method-summary" > < span class = "nickname" > uploadFile< / span > uploads an image< / div >
< div class = "method-notes" > < / div >
< h3 class = "field-label" > Parameters< / h3 >
< div class = "field-items" >
< div class = "param" > petId (required)< / div >
< div class = "param-desc" > < span class = "param-type" > Path Parameter< / span > — ID of pet to update < / div >
< div class = "param" > additionalMetadata (optional)< / div >
< div class = "param-desc" > < span class = "param-type" > Form Parameter< / span > — Additional data to pass to server < / div >
< div class = "param" > file (optional)< / div >
< div class = "param-desc" > < span class = "param-type" > Form Parameter< / span > — file to upload < / div >
< / div > <!-- field - items -->
< h3 class = "field-label" > Return type< / h3 >
< div class = "return-type" > < a href = "#" > < / a > < / div >
< / div > <!-- method -->
< hr >
< div class = "method" >
< div class = "method-path" > < pre class = "get" > < code class = "huge" > < span > get< / span > : /store/inventory< / code > < / pre > < / div >
< div class = "method-tags" > < span class = "method-tag" > Store< / span > < / div >
< div class = "method-summary" > < span class = "nickname" > getInventory< / span > Returns pet inventories by status< / div >
< div class = "method-notes" > Returns a map of status codes to quantities< / div >
< h3 class = "field-label" > Parameters< / h3 >
< div class = "field-items" >
< / div > <!-- field - items -->
< h3 class = "field-label" > Return type< / h3 >
< div class = "return-type" > < a href = "#map" > map[String, Integer]< / a > < / div >
< h3 class = "field-label" > Example data< / h3 >
< div class = "example-data-content-type" > Content-Type: application/json< / div >
< pre class = "example" > < code > {
2015-06-08 03:50:35 +00:00
" key" : 123
}< / code > < / pre >
2015-06-09 07:25:09 +00:00
< h3 class = "field-label" > Example data< / h3 >
< div class = "example-data-content-type" > Content-Type: application/xml< / div >
< pre class = "example" > < code > not implemented io.swagger.models.properties.MapProperty@3e< / code > < / pre >
< / div > <!-- method -->
< hr >
< div class = "method" >
< div class = "method-path" > < pre class = "post" > < code class = "huge" > < span > post< / span > : /store/order< / code > < / pre > < / div >
< div class = "method-tags" > < span class = "method-tag" > Store< / span > < / div >
< div class = "method-summary" > < span class = "nickname" > placeOrder< / span > Place an order for a pet< / div >
< div class = "method-notes" > < / div >
< h3 class = "field-label" > Parameters< / h3 >
< div class = "field-items" >
< div class = "param" > body (optional)< / div >
< div class = "param-desc" > < span class = "param-type" > Body Parameter< / span > — order placed for purchasing the pet < / div >
< / div > <!-- field - items -->
< h3 class = "field-label" > Return type< / h3 >
< div class = "return-type" > < a href = "#" > Order< / a > < / div >
< h3 class = "field-label" > Example data< / h3 >
< div class = "example-data-content-type" > Content-Type: application/json< / div >
< pre class = "example" > < code > {
2015-06-08 03:50:35 +00:00
" petId" : 123456789,
" quantity" : 123,
2015-06-09 07:25:09 +00:00
" id" : 123456789,
" shipDate" : " 2015-06-09T07:23:55.625+0000" ,
" complete" : true,
" status" : " aeiou"
2015-06-08 03:50:35 +00:00
}< / code > < / pre >
2015-06-09 07:25:09 +00:00
< h3 class = "field-label" > Example data< / h3 >
< div class = "example-data-content-type" > Content-Type: application/xml< / div >
< pre class = "example" > < code > < Order>
2015-06-08 03:50:35 +00:00
< id> 123456< /id>
< petId> 123456< /petId>
< quantity> 0< /quantity>
2015-06-09 07:25:09 +00:00
< shipDate> 2015-06-09T00:23:55.631Z< /shipDate>
2015-06-08 03:50:35 +00:00
< status> string< /status>
< complete> true< /complete>
< /Order> < / code > < / pre >
2015-06-09 07:25:09 +00:00
< / div > <!-- method -->
< hr >
< div class = "method" >
< div class = "method-path" > < pre class = "get" > < code class = "huge" > < span > get< / span > : /store/order/{orderId}< / code > < / pre > < / div >
< div class = "method-tags" > < span class = "method-tag" > Store< / span > < / div >
< div class = "method-summary" > < span class = "nickname" > getOrderById< / span > Find purchase order by ID< / div >
< div class = "method-notes" > For valid response try integer IDs with value < = 5 or > 10. Other values will generated exceptions< / div >
< h3 class = "field-label" > Parameters< / h3 >
< div class = "field-items" >
< div class = "param" > orderId (required)< / div >
< div class = "param-desc" > < span class = "param-type" > Path Parameter< / span > — ID of pet that needs to be fetched < / div >
< / div > <!-- field - items -->
< h3 class = "field-label" > Return type< / h3 >
< div class = "return-type" > < a href = "#" > Order< / a > < / div >
< h3 class = "field-label" > Example data< / h3 >
< div class = "example-data-content-type" > Content-Type: application/json< / div >
< pre class = "example" > < code > {
2015-06-08 03:50:35 +00:00
" petId" : 123456789,
" quantity" : 123,
2015-06-09 07:25:09 +00:00
" id" : 123456789,
" shipDate" : " 2015-06-09T07:23:55.632+0000" ,
" complete" : true,
" status" : " aeiou"
2015-06-08 03:50:35 +00:00
}< / code > < / pre >
2015-06-09 07:25:09 +00:00
< h3 class = "field-label" > Example data< / h3 >
< div class = "example-data-content-type" > Content-Type: application/xml< / div >
< pre class = "example" > < code > < Order>
2015-06-08 03:50:35 +00:00
< id> 123456< /id>
< petId> 123456< /petId>
< quantity> 0< /quantity>
2015-06-09 07:25:09 +00:00
< shipDate> 2015-06-09T00:23:55.633Z< /shipDate>
2015-06-08 03:50:35 +00:00
< status> string< /status>
< complete> true< /complete>
< /Order> < / code > < / pre >
2015-06-09 07:25:09 +00:00
< / div > <!-- method -->
< hr >
< div class = "method" >
< div class = "method-path" > < pre class = "delete" > < code class = "huge" > < span > delete< / span > : /store/order/{orderId}< / code > < / pre > < / div >
< div class = "method-tags" > < span class = "method-tag" > Store< / span > < / div >
< div class = "method-summary" > < span class = "nickname" > deleteOrder< / span > Delete purchase order by ID< / div >
< div class = "method-notes" > For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors< / div >
< h3 class = "field-label" > Parameters< / h3 >
< div class = "field-items" >
< div class = "param" > orderId (required)< / div >
< div class = "param-desc" > < span class = "param-type" > Path Parameter< / span > — ID of the order that needs to be deleted < / div >
< / div > <!-- field - items -->
< h3 class = "field-label" > Return type< / h3 >
< div class = "return-type" > < a href = "#" > < / a > < / div >
< / div > <!-- method -->
< hr >
< div class = "method" >
< div class = "method-path" > < pre class = "post" > < code class = "huge" > < span > post< / span > : /user< / code > < / pre > < / div >
< div class = "method-tags" > < span class = "method-tag" > User< / span > < / div >
< div class = "method-summary" > < span class = "nickname" > createUser< / span > Create user< / div >
< div class = "method-notes" > This can only be done by the logged in user.< / div >
< h3 class = "field-label" > Parameters< / h3 >
< div class = "field-items" >
< div class = "param" > body (optional)< / div >
< div class = "param-desc" > < span class = "param-type" > Body Parameter< / span > — Created user object < / div >
< / div > <!-- field - items -->
< h3 class = "field-label" > Return type< / h3 >
< div class = "return-type" > < a href = "#" > < / a > < / div >
< / div > <!-- method -->
< hr >
< div class = "method" >
< div class = "method-path" > < pre class = "post" > < code class = "huge" > < span > post< / span > : /user/createWithArray< / code > < / pre > < / div >
< div class = "method-tags" > < span class = "method-tag" > User< / span > < / div >
< div class = "method-summary" > < span class = "nickname" > createUsersWithArrayInput< / span > Creates list of users with given input array< / div >
< div class = "method-notes" > < / div >
< h3 class = "field-label" > Parameters< / h3 >
< div class = "field-items" >
< div class = "param" > body (optional)< / div >
< div class = "param-desc" > < span class = "param-type" > Body Parameter< / span > — List of user object < / div >
< / div > <!-- field - items -->
< h3 class = "field-label" > Return type< / h3 >
< div class = "return-type" > < a href = "#" > < / a > < / div >
< / div > <!-- method -->
< hr >
< div class = "method" >
< div class = "method-path" > < pre class = "post" > < code class = "huge" > < span > post< / span > : /user/createWithList< / code > < / pre > < / div >
< div class = "method-tags" > < span class = "method-tag" > User< / span > < / div >
< div class = "method-summary" > < span class = "nickname" > createUsersWithListInput< / span > Creates list of users with given input array< / div >
< div class = "method-notes" > < / div >
< h3 class = "field-label" > Parameters< / h3 >
< div class = "field-items" >
< div class = "param" > body (optional)< / div >
< div class = "param-desc" > < span class = "param-type" > Body Parameter< / span > — List of user object < / div >
< / div > <!-- field - items -->
< h3 class = "field-label" > Return type< / h3 >
< div class = "return-type" > < a href = "#" > < / a > < / div >
< / div > <!-- method -->
< hr >
< div class = "method" >
< div class = "method-path" > < pre class = "get" > < code class = "huge" > < span > get< / span > : /user/login< / code > < / pre > < / div >
< div class = "method-tags" > < span class = "method-tag" > User< / span > < / div >
< div class = "method-summary" > < span class = "nickname" > loginUser< / span > Logs user into the system< / div >
< div class = "method-notes" > < / div >
< h3 class = "field-label" > Parameters< / h3 >
< div class = "field-items" >
< div class = "param" > username (optional)< / div >
< div class = "param-desc" > < span class = "param-type" > Query Parameter< / span > — The user name for login < / div >
< div class = "param" > password (optional)< / div >
< div class = "param-desc" > < span class = "param-type" > Query Parameter< / span > — The password for login in clear text < / div >
< / div > <!-- field - items -->
< h3 class = "field-label" > Return type< / h3 >
< div class = "return-type" > < a href = "#" > String< / a > < / div >
< h3 class = "field-label" > Example data< / h3 >
< div class = "example-data-content-type" > Content-Type: application/json< / div >
< pre class = "example" > < code > " aeiou" < / code > < / pre >
< h3 class = "field-label" > Example data< / h3 >
< div class = "example-data-content-type" > Content-Type: application/xml< / div >
< pre class = "example" > < code > string< / code > < / pre >
< / div > <!-- method -->
< hr >
< div class = "method" >
< div class = "method-path" > < pre class = "get" > < code class = "huge" > < span > get< / span > : /user/logout< / code > < / pre > < / div >
< div class = "method-tags" > < span class = "method-tag" > User< / span > < / div >
< div class = "method-summary" > < span class = "nickname" > logoutUser< / span > Logs out current logged in user session< / div >
< div class = "method-notes" > < / div >
< h3 class = "field-label" > Parameters< / h3 >
< div class = "field-items" >
< / div > <!-- field - items -->
< h3 class = "field-label" > Return type< / h3 >
< div class = "return-type" > < a href = "#" > < / a > < / div >
< / div > <!-- method -->
< hr >
< div class = "method" >
< div class = "method-path" > < pre class = "get" > < code class = "huge" > < span > get< / span > : /user/{username}< / code > < / pre > < / div >
< div class = "method-tags" > < span class = "method-tag" > User< / span > < / div >
< div class = "method-summary" > < span class = "nickname" > getUserByName< / span > Get user by user name< / div >
< div class = "method-notes" > < / div >
< h3 class = "field-label" > Parameters< / h3 >
< div class = "field-items" >
< div class = "param" > username (required)< / div >
< div class = "param-desc" > < span class = "param-type" > Path Parameter< / span > — The name that needs to be fetched. Use user1 for testing. < / div >
< / div > <!-- field - items -->
< h3 class = "field-label" > Return type< / h3 >
< div class = "return-type" > < a href = "#" > User< / a > < / div >
< h3 class = "field-label" > Example data< / h3 >
< div class = "example-data-content-type" > Content-Type: application/json< / div >
< pre class = "example" > < code > {
2015-06-08 03:50:35 +00:00
" id" : 1,
" username" : " johnp" ,
" firstName" : " John" ,
" lastName" : " Public" ,
" email" : " johnp@swagger.io" ,
" password" : " -secret-" ,
" phone" : " 0123456789" ,
" userStatus" : 0
}< / code > < / pre >
2015-06-09 07:25:09 +00:00
< / div > <!-- method -->
< hr >
< div class = "method" >
< div class = "method-path" > < pre class = "put" > < code class = "huge" > < span > put< / span > : /user/{username}< / code > < / pre > < / div >
< div class = "method-tags" > < span class = "method-tag" > User< / span > < / div >
< div class = "method-summary" > < span class = "nickname" > updateUser< / span > Updated user< / div >
< div class = "method-notes" > This can only be done by the logged in user.< / div >
< h3 class = "field-label" > Parameters< / h3 >
< div class = "field-items" >
< div class = "param" > username (required)< / div >
< div class = "param-desc" > < span class = "param-type" > Path Parameter< / span > — name that need to be deleted < / div >
< div class = "param" > body (optional)< / div >
< div class = "param-desc" > < span class = "param-type" > Body Parameter< / span > — Updated user object < / div >
< / div > <!-- field - items -->
< h3 class = "field-label" > Return type< / h3 >
< div class = "return-type" > < a href = "#" > < / a > < / div >
< / div > <!-- method -->
< hr >
< div class = "method" >
< div class = "method-path" > < pre class = "delete" > < code class = "huge" > < span > delete< / span > : /user/{username}< / code > < / pre > < / div >
< div class = "method-tags" > < span class = "method-tag" > User< / span > < / div >
< div class = "method-summary" > < span class = "nickname" > deleteUser< / span > Delete user< / div >
< div class = "method-notes" > This can only be done by the logged in user.< / div >
< h3 class = "field-label" > Parameters< / h3 >
< div class = "field-items" >
< div class = "param" > username (required)< / div >
< div class = "param-desc" > < span class = "param-type" > Path Parameter< / span > — The name that needs to be deleted < / div >
< / div > <!-- field - items -->
< h3 class = "field-label" > Return type< / h3 >
< div class = "return-type" > < a href = "#" > < / a > < / div >
< / div > <!-- method -->
< hr >
< h2 > Models< / h2 >
< div class = "model" >
< h3 class = "field-label" > < a name = "User" > User< / a > < / h3 >
< div class = "field-items" >
< div class = "param" > id < / div > < div class = "param-desc" > < span class = "param-type" > Long< / span > < / div >
< div class = "param" > username < / div > < div class = "param-desc" > < span class = "param-type" > String< / span > < / div >
< div class = "param" > firstName < / div > < div class = "param-desc" > < span class = "param-type" > String< / span > < / div >
< div class = "param" > lastName < / div > < div class = "param-desc" > < span class = "param-type" > String< / span > < / div >
< div class = "param" > email < / div > < div class = "param-desc" > < span class = "param-type" > String< / span > < / div >
< div class = "param" > password < / div > < div class = "param-desc" > < span class = "param-type" > String< / span > < / div >
< div class = "param" > phone < / div > < div class = "param-desc" > < span class = "param-type" > String< / span > < / div >
< div class = "param" > userStatus < / div > < div class = "param-desc" > < span class = "param-type" > Integer< / span > User Status< / div >
< / div > <!-- field - items -->
< / div >
< div class = "model" >
< h3 class = "field-label" > < a name = "Category" > Category< / a > < / h3 >
< div class = "field-items" >
< div class = "param" > id < / div > < div class = "param-desc" > < span class = "param-type" > Long< / span > < / div >
< div class = "param" > name < / div > < div class = "param-desc" > < span class = "param-type" > String< / span > < / div >
< / div > <!-- field - items -->
< / div >
< div class = "model" >
< h3 class = "field-label" > < a name = "Pet" > Pet< / a > < / h3 >
< div class = "field-items" >
< div class = "param" > id < / div > < div class = "param-desc" > < span class = "param-type" > Long< / span > < / div >
< div class = "param" > category < / div > < div class = "param-desc" > < span class = "param-type" > Category< / span > < / div >
< div class = "param" > name < / div > < div class = "param-desc" > < span class = "param-type" > String< / span > < / div >
< div class = "param" > photoUrls < / div > < div class = "param-desc" > < span class = "param-type" > array[String]< / span > < / div >
< div class = "param" > tags < / div > < div class = "param-desc" > < span class = "param-type" > array[Tag]< / span > < / div >
< div class = "param" > status < / div > < div class = "param-desc" > < span class = "param-type" > String< / span > pet status in the store< / div >
< / div > <!-- field - items -->
< / div >
< div class = "model" >
< h3 class = "field-label" > < a name = "Tag" > Tag< / a > < / h3 >
< div class = "field-items" >
< div class = "param" > id < / div > < div class = "param-desc" > < span class = "param-type" > Long< / span > < / div >
< div class = "param" > name < / div > < div class = "param-desc" > < span class = "param-type" > String< / span > < / div >
< / div > <!-- field - items -->
< / div >
< div class = "model" >
< h3 class = "field-label" > < a name = "Order" > Order< / a > < / h3 >
< div class = "field-items" >
< div class = "param" > id < / div > < div class = "param-desc" > < span class = "param-type" > Long< / span > < / div >
< div class = "param" > petId < / div > < div class = "param-desc" > < span class = "param-type" > Long< / span > < / div >
< div class = "param" > quantity < / div > < div class = "param-desc" > < span class = "param-type" > Integer< / span > < / div >
< div class = "param" > shipDate < / div > < div class = "param-desc" > < span class = "param-type" > Date< / span > < / div >
< div class = "param" > status < / div > < div class = "param-desc" > < span class = "param-type" > String< / span > Order Status< / div >
< div class = "param" > complete < / div > < div class = "param-desc" > < span class = "param-type" > Boolean< / span > < / div >
< / div > <!-- field - items -->
< / div >
< style >
body {
font-family: Trebuchet MS, sans-serif;
font-size: 15px;
color: #444;
margin-right: 24px;
}
h1 {
font-size: 25px;
}
h2 {
font-size: 20px;
}
h3 {
font-size: 16px;
font-weight: bold;
}
hr {
height: 1px;
border: 0;
color: #ddd;
background-color: #ddd;
display: none;
2015-06-08 03:50:35 +00:00
}
.app-desc {
2015-06-09 07:25:09 +00:00
clear: both;
margin-left: 20px;
2015-06-08 03:50:35 +00:00
}
.param-name {
2015-06-09 07:25:09 +00:00
width: 100%;
2015-06-08 03:50:35 +00:00
}
.license-info {
2015-06-09 07:25:09 +00:00
margin-left: 20px;
2015-06-08 03:50:35 +00:00
}
.license-url {
2015-06-09 07:25:09 +00:00
margin-left: 20px;
2015-06-08 03:50:35 +00:00
}
.model {
2015-06-09 07:25:09 +00:00
margin: 0 0 0px 20px;
2015-06-08 03:50:35 +00:00
}
.method {
2015-06-09 07:25:09 +00:00
margin-left: 20px;
2015-06-08 03:50:35 +00:00
}
2015-06-09 07:25:09 +00:00
.method-notes {
margin: 10px 0 20px 0;
font-size: 90%;
color: #555;
2015-06-08 03:50:35 +00:00
}
pre {
2015-06-09 07:25:09 +00:00
padding: 10px;
margin-bottom: 2px;
2015-06-08 03:50:35 +00:00
}
pre.get {
2015-06-09 07:25:09 +00:00
background-color: #0f6ab4;
2015-06-08 03:50:35 +00:00
}
pre.post {
2015-06-09 07:25:09 +00:00
background-color: #10a54a;
2015-06-08 03:50:35 +00:00
}
pre.put {
2015-06-09 07:25:09 +00:00
background-color: #c5862b;
2015-06-08 03:50:35 +00:00
}
pre.delete {
2015-06-09 07:25:09 +00:00
background-color: #a41e22;
2015-06-08 03:50:35 +00:00
}
2015-06-09 07:25:09 +00:00
.huge {
color: #fff;
2015-06-08 03:50:35 +00:00
}
pre.example {
2015-06-09 07:25:09 +00:00
background-color: #f3f3f3;
padding: 10px;
border: 1px solid #ddd;
2015-06-08 03:50:35 +00:00
}
code {
2015-06-09 07:25:09 +00:00
white-space: pre;
2015-06-08 03:50:35 +00:00
}
.nickname {
2015-06-09 07:25:09 +00:00
font-weight: bold;
2015-06-08 03:50:35 +00:00
}
.method-path {
2015-06-09 07:25:09 +00:00
font-size: 1.5em;
background-color: #0f6ab4;
2015-06-08 03:50:35 +00:00
}
.parameter {
2015-06-09 07:25:09 +00:00
width: 500px;
2015-06-08 03:50:35 +00:00
}
.param {
2015-06-09 07:25:09 +00:00
width: 500px;
padding: 10px 0 0 20px;
font-weight: bold;
2015-06-08 03:50:35 +00:00
}
.param-desc {
2015-06-09 07:25:09 +00:00
width: 700px;
padding: 0 0 0 20px;
color: #777;
2015-06-08 03:50:35 +00:00
}
.param-type {
2015-06-09 07:25:09 +00:00
font-style: italic;
2015-06-08 03:50:35 +00:00
}
.field-label {
2015-06-09 07:25:09 +00:00
padding: 0;
margin: 0;
clear: both;
2015-06-08 03:50:35 +00:00
}
2015-06-09 07:25:09 +00:00
.field-items {
padding: 0 0 15px 0;
margin-bottom: 15px;
2015-06-08 03:50:35 +00:00
}
.return-type {
2015-06-09 07:25:09 +00:00
clear: both;
padding-bottom: 10px;
2015-06-08 03:50:35 +00:00
}
.param-header {
2015-06-09 07:25:09 +00:00
font-weight: bold;
2015-06-08 03:50:35 +00:00
}
.method-tags {
2015-06-09 07:25:09 +00:00
text-align: right;
2015-06-08 03:50:35 +00:00
}
.method-tag {
2015-06-09 07:25:09 +00:00
background: none repeat scroll 0% 0% #24A600;
border-radius: 3px;
padding: 2px 10px;
margin: 2px;
color: #FFF;
display: inline-block;
text-decoration: none;
}
< / style >
< / body >
2015-02-17 06:02:27 +00:00
< / html >