#Swagger Maven Plugin Sample
## HTTP | HTTPS://petstore.swagger.wordnik.com/api
This is a sample for swagger-maven-plugin
[**Contact the developer**](mailto:kongchen@gmail.com)
**Version** v1
[**Terms of Service**](http://www.github.com/kongchen/swagger-maven-plugin)
[**Apache 2.0**](http://www.apache.org/licenses/LICENSE-2.0.html)
# APIs
## /api/v1/products
### GET
#### Request
**Content-Type: ** application/json; charset=UTF-8, text/xml; charset=UTF-8
##### Parameters
#### Response
**Content-Type: ** application/json; charset=UTF-8, text/xml; charset=UTF-8
| Status Code | Reason | Response Model |
|-------------|-------------|----------------|
| 200 | successful operation | Payload|
### POST
#### Request
**Content-Type: ** application/json; charset=UTF-8, text/xml; charset=UTF-8
##### Parameters
#### Response
**Content-Type: ** application/json; charset=UTF-8, text/xml; charset=UTF-8
| Status Code | Reason | Response Model |
|-------------|-------------|----------------|
| 200 | successful operation | Payload|
## /api/v1/products/{id}
### GET
#### Request
**Content-Type: ** application/json; charset=UTF-8, text/xml; charset=UTF-8
##### Parameters
| Name |
Located in |
Required |
Description |
Default |
Schema |
| id |
path |
yes |
(**Pattern**: `\d+`) |
- |
integer (int32) |
#### Response
**Content-Type: ** application/json; charset=UTF-8, text/xml; charset=UTF-8
| Status Code | Reason | Response Model |
|-------------|-------------|----------------|
| 200 | successful operation | Payload|
### PUT
#### Request
**Content-Type: ** application/json; charset=UTF-8, text/xml; charset=UTF-8
##### Parameters
| Name |
Located in |
Required |
Description |
Default |
Schema |
| id |
path |
yes |
(**Pattern**: `\d+`) |
- |
integer (int32) |
#### Response
**Content-Type: ** application/json; charset=UTF-8, text/xml; charset=UTF-8
| Status Code | Reason | Response Model |
|-------------|-------------|----------------|
| 200 | successful operation | Payload|
### DELETE
#### Request
**Content-Type: ** application/json; charset=UTF-8, text/xml; charset=UTF-8
##### Parameters
| Name |
Located in |
Required |
Description |
Default |
Schema |
| id |
path |
yes |
(**Pattern**: `\d+`) |
- |
integer (int32) |
#### Response
**Content-Type: ** application/json; charset=UTF-8, text/xml; charset=UTF-8
| Status Code | Reason | Response Model |
|-------------|-------------|----------------|
| 200 | successful operation | Payload|
## /api/v1/resources
### GET
#### Request
**Content-Type: ** application/json; charset=UTF-8, text/xml; charset=UTF-8
##### Parameters
#### Response
**Content-Type: ** text/html
| Status Code | Reason | Response Model |
|-------------|-------------|----------------|
| default | successful operation | - |
# Definitions
## MethodDescription
| name |
type |
required |
description |
example |
| method |
string
|
optional |
- |
|
| fullPath |
string
|
optional |
- |
|
| produces |
string
|
optional |
- |
|
| consumes |
string
|
optional |
- |
|
| pathParams |
array[object]
|
optional |
- |
|
| queryParams |
array[object]
|
optional |
- |
|
| requestBody |
array[object]
|
optional |
- |
|
| returnType |
string
|
optional |
- |
|
## Payload
| name |
type |
required |
description |
example |
| payload |
object
|
optional |
- |
|