This commit is contained in:
Tony Tam 2015-03-29 20:42:20 -07:00
parent b5be12a25b
commit 5ab425e82d
6 changed files with 23 additions and 23 deletions

View File

@ -136,7 +136,7 @@ public class PetApi {
@com.wordnik.swagger.annotations.ApiResponses(value = { @com.wordnik.swagger.annotations.ApiResponses(value = {
@com.wordnik.swagger.annotations.ApiResponse(code = 400, message = "Invalid pet value") }) @com.wordnik.swagger.annotations.ApiResponse(code = 400, message = "Invalid pet value") })
public Response deletePet(@ApiParam(value = "" )@HeaderParam("api_key") String api_key, public Response deletePet(@ApiParam(value = "" )@HeaderParam("api_key") String apiKey,
@ApiParam(value = "Pet id to delete",required=true ) @PathParam("petId") Long petId) @ApiParam(value = "Pet id to delete",required=true ) @PathParam("petId") Long petId)
throws NotFoundException { throws NotFoundException {
// do some magic! // do some magic!

View File

@ -14,7 +14,7 @@ public class Category {
/** /**
**/ **/
@ApiModelProperty(required = false, value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
return id; return id;
@ -26,7 +26,7 @@ public class Category {
/** /**
**/ **/
@ApiModelProperty(required = false, value = "") @ApiModelProperty(value = "")
@JsonProperty("name") @JsonProperty("name")
public String getName() { public String getName() {
return name; return name;

View File

@ -22,7 +22,7 @@ public class Order {
/** /**
**/ **/
@ApiModelProperty(required = false, value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
return id; return id;
@ -34,7 +34,7 @@ public class Order {
/** /**
**/ **/
@ApiModelProperty(required = false, value = "") @ApiModelProperty(value = "")
@JsonProperty("petId") @JsonProperty("petId")
public Long getPetId() { public Long getPetId() {
return petId; return petId;
@ -46,7 +46,7 @@ public class Order {
/** /**
**/ **/
@ApiModelProperty(required = false, value = "") @ApiModelProperty(value = "")
@JsonProperty("quantity") @JsonProperty("quantity")
public Integer getQuantity() { public Integer getQuantity() {
return quantity; return quantity;
@ -58,7 +58,7 @@ public class Order {
/** /**
**/ **/
@ApiModelProperty(required = false, value = "") @ApiModelProperty(value = "")
@JsonProperty("shipDate") @JsonProperty("shipDate")
public Date getShipDate() { public Date getShipDate() {
return shipDate; return shipDate;
@ -71,7 +71,7 @@ public class Order {
/** /**
* Order Status * Order Status
**/ **/
@ApiModelProperty(required = false, value = "Order Status") @ApiModelProperty(value = "Order Status")
@JsonProperty("status") @JsonProperty("status")
public StatusEnum getStatus() { public StatusEnum getStatus() {
return status; return status;
@ -83,7 +83,7 @@ public class Order {
/** /**
**/ **/
@ApiModelProperty(required = false, value = "") @ApiModelProperty(value = "")
@JsonProperty("complete") @JsonProperty("complete")
public Boolean getComplete() { public Boolean getComplete() {
return complete; return complete;

View File

@ -24,7 +24,7 @@ public class Pet {
/** /**
**/ **/
@ApiModelProperty(required = false, value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
return id; return id;
@ -36,7 +36,7 @@ public class Pet {
/** /**
**/ **/
@ApiModelProperty(required = false, value = "") @ApiModelProperty(value = "")
@JsonProperty("category") @JsonProperty("category")
public Category getCategory() { public Category getCategory() {
return category; return category;
@ -72,7 +72,7 @@ public class Pet {
/** /**
**/ **/
@ApiModelProperty(required = false, value = "") @ApiModelProperty(value = "")
@JsonProperty("tags") @JsonProperty("tags")
public List<Tag> getTags() { public List<Tag> getTags() {
return tags; return tags;
@ -85,7 +85,7 @@ public class Pet {
/** /**
* pet status in the store * pet status in the store
**/ **/
@ApiModelProperty(required = false, value = "pet status in the store") @ApiModelProperty(value = "pet status in the store")
@JsonProperty("status") @JsonProperty("status")
public StatusEnum getStatus() { public StatusEnum getStatus() {
return status; return status;

View File

@ -14,7 +14,7 @@ public class Tag {
/** /**
**/ **/
@ApiModelProperty(required = false, value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
return id; return id;
@ -26,7 +26,7 @@ public class Tag {
/** /**
**/ **/
@ApiModelProperty(required = false, value = "") @ApiModelProperty(value = "")
@JsonProperty("name") @JsonProperty("name")
public String getName() { public String getName() {
return name; return name;

View File

@ -20,7 +20,7 @@ public class User {
/** /**
**/ **/
@ApiModelProperty(required = false, value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
return id; return id;
@ -32,7 +32,7 @@ public class User {
/** /**
**/ **/
@ApiModelProperty(required = false, value = "") @ApiModelProperty(value = "")
@JsonProperty("username") @JsonProperty("username")
public String getUsername() { public String getUsername() {
return username; return username;
@ -44,7 +44,7 @@ public class User {
/** /**
**/ **/
@ApiModelProperty(required = false, value = "") @ApiModelProperty(value = "")
@JsonProperty("firstName") @JsonProperty("firstName")
public String getFirstName() { public String getFirstName() {
return firstName; return firstName;
@ -56,7 +56,7 @@ public class User {
/** /**
**/ **/
@ApiModelProperty(required = false, value = "") @ApiModelProperty(value = "")
@JsonProperty("lastName") @JsonProperty("lastName")
public String getLastName() { public String getLastName() {
return lastName; return lastName;
@ -68,7 +68,7 @@ public class User {
/** /**
**/ **/
@ApiModelProperty(required = false, value = "") @ApiModelProperty(value = "")
@JsonProperty("email") @JsonProperty("email")
public String getEmail() { public String getEmail() {
return email; return email;
@ -80,7 +80,7 @@ public class User {
/** /**
**/ **/
@ApiModelProperty(required = false, value = "") @ApiModelProperty(value = "")
@JsonProperty("password") @JsonProperty("password")
public String getPassword() { public String getPassword() {
return password; return password;
@ -92,7 +92,7 @@ public class User {
/** /**
**/ **/
@ApiModelProperty(required = false, value = "") @ApiModelProperty(value = "")
@JsonProperty("phone") @JsonProperty("phone")
public String getPhone() { public String getPhone() {
return phone; return phone;
@ -105,7 +105,7 @@ public class User {
/** /**
* User Status * User Status
**/ **/
@ApiModelProperty(required = false, value = "User Status") @ApiModelProperty(value = "User Status")
@JsonProperty("userStatus") @JsonProperty("userStatus")
public Integer getUserStatus() { public Integer getUserStatus() {
return userStatus; return userStatus;