forked from loafle/openapi-generator-original
Fix a regression bug that was introduce in a recent commit. Removed the tabs that were causing error in Play Framework (#7241)
This commit is contained in:
committed by
William Cheng
parent
0a9c6f56c8
commit
3465f2918e
@@ -3,19 +3,19 @@
|
|||||||
# ~~~~
|
# ~~~~
|
||||||
|
|
||||||
{{#useSwaggerUI}}
|
{{#useSwaggerUI}}
|
||||||
GET /api controllers.ApiDocController.api
|
GET /api controllers.ApiDocController.api
|
||||||
{{/useSwaggerUI}}
|
{{/useSwaggerUI}}
|
||||||
|
|
||||||
{{#apiInfo}}
|
{{#apiInfo}}
|
||||||
{{#apis}}
|
{{#apis}}
|
||||||
|
|
||||||
#Functions for {{{baseName}}} API
|
#Functions for {{{baseName}}} API
|
||||||
{{#operations}}
|
{{#operations}}
|
||||||
{{#operation}}
|
{{#operation}}
|
||||||
{{httpMethod}} {{{contextPath}}}{{{path}}} controllers.{{classname}}Controller.{{operationId}}({{#pathParams}}{{paramName}}: {{#isUuid}}java.util.UUID{{/isUuid}}{{^isUuid}}{{{dataType}}}{{/isUuid}}{{#hasMore}}, {{/hasMore}}{{/pathParams}})
|
{{httpMethod}} {{{contextPath}}}{{{path}}} controllers.{{classname}}Controller.{{operationId}}({{#pathParams}}{{paramName}}: {{#isUuid}}java.util.UUID{{/isUuid}}{{^isUuid}}{{{dataType}}}{{/isUuid}}{{#hasMore}}, {{/hasMore}}{{/pathParams}})
|
||||||
{{/operation}}
|
{{/operation}}
|
||||||
{{/operations}}
|
{{/operations}}
|
||||||
{{/apis}}
|
{{/apis}}
|
||||||
{{/apiInfo}}
|
{{/apiInfo}}
|
||||||
|
|
||||||
# Map static resources from the /public folder to the /assets URL path
|
# Map static resources from the /public folder to the /assets URL path
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ public class Pet {
|
|||||||
private String name = null;
|
private String name = null;
|
||||||
|
|
||||||
@JsonProperty("photoUrls")
|
@JsonProperty("photoUrls")
|
||||||
private List<String> photoUrls = new ArrayList<String>();
|
private List<String> photoUrls = new ArrayList<>();
|
||||||
|
|
||||||
@JsonProperty("tags")
|
@JsonProperty("tags")
|
||||||
private List<Tag> tags = null;
|
private List<Tag> tags = null;
|
||||||
@@ -149,7 +149,7 @@ public class Pet {
|
|||||||
|
|
||||||
public Pet addTagsItem(Tag tagsItem) {
|
public Pet addTagsItem(Tag tagsItem) {
|
||||||
if (tags == null) {
|
if (tags == null) {
|
||||||
tags = new ArrayList<Tag>();
|
tags = new ArrayList<>();
|
||||||
}
|
}
|
||||||
tags.add(tagsItem);
|
tags.add(tagsItem);
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -2,34 +2,34 @@
|
|||||||
# This file defines all application routes (Higher priority routes first)
|
# This file defines all application routes (Higher priority routes first)
|
||||||
# ~~~~
|
# ~~~~
|
||||||
|
|
||||||
GET /api controllers.ApiDocController.api
|
GET /api controllers.ApiDocController.api
|
||||||
|
|
||||||
|
|
||||||
#Functions for Pet API
|
#Functions for Pet API
|
||||||
POST /v2/pet controllers.PetApiController.addPet()
|
POST /v2/pet controllers.PetApiController.addPet()
|
||||||
DELETE /v2/pet/:petId controllers.PetApiController.deletePet(petId: Long)
|
DELETE /v2/pet/:petId controllers.PetApiController.deletePet(petId: Long)
|
||||||
GET /v2/pet/findByStatus controllers.PetApiController.findPetsByStatus()
|
GET /v2/pet/findByStatus controllers.PetApiController.findPetsByStatus()
|
||||||
GET /v2/pet/findByTags controllers.PetApiController.findPetsByTags()
|
GET /v2/pet/findByTags controllers.PetApiController.findPetsByTags()
|
||||||
GET /v2/pet/:petId controllers.PetApiController.getPetById(petId: Long)
|
GET /v2/pet/:petId controllers.PetApiController.getPetById(petId: Long)
|
||||||
PUT /v2/pet controllers.PetApiController.updatePet()
|
PUT /v2/pet controllers.PetApiController.updatePet()
|
||||||
POST /v2/pet/:petId controllers.PetApiController.updatePetWithForm(petId: Long)
|
POST /v2/pet/:petId controllers.PetApiController.updatePetWithForm(petId: Long)
|
||||||
POST /v2/pet/:petId/uploadImage controllers.PetApiController.uploadFile(petId: Long)
|
POST /v2/pet/:petId/uploadImage controllers.PetApiController.uploadFile(petId: Long)
|
||||||
|
|
||||||
#Functions for Store API
|
#Functions for Store API
|
||||||
DELETE /v2/store/order/:orderId controllers.StoreApiController.deleteOrder(orderId: String)
|
DELETE /v2/store/order/:orderId controllers.StoreApiController.deleteOrder(orderId: String)
|
||||||
GET /v2/store/inventory controllers.StoreApiController.getInventory()
|
GET /v2/store/inventory controllers.StoreApiController.getInventory()
|
||||||
GET /v2/store/order/:orderId controllers.StoreApiController.getOrderById(orderId: Long)
|
GET /v2/store/order/:orderId controllers.StoreApiController.getOrderById(orderId: Long)
|
||||||
POST /v2/store/order controllers.StoreApiController.placeOrder()
|
POST /v2/store/order controllers.StoreApiController.placeOrder()
|
||||||
|
|
||||||
#Functions for User API
|
#Functions for User API
|
||||||
POST /v2/user controllers.UserApiController.createUser()
|
POST /v2/user controllers.UserApiController.createUser()
|
||||||
POST /v2/user/createWithArray controllers.UserApiController.createUsersWithArrayInput()
|
POST /v2/user/createWithArray controllers.UserApiController.createUsersWithArrayInput()
|
||||||
POST /v2/user/createWithList controllers.UserApiController.createUsersWithListInput()
|
POST /v2/user/createWithList controllers.UserApiController.createUsersWithListInput()
|
||||||
DELETE /v2/user/:username controllers.UserApiController.deleteUser(username: String)
|
DELETE /v2/user/:username controllers.UserApiController.deleteUser(username: String)
|
||||||
GET /v2/user/:username controllers.UserApiController.getUserByName(username: String)
|
GET /v2/user/:username controllers.UserApiController.getUserByName(username: String)
|
||||||
GET /v2/user/login controllers.UserApiController.loginUser()
|
GET /v2/user/login controllers.UserApiController.loginUser()
|
||||||
GET /v2/user/logout controllers.UserApiController.logoutUser()
|
GET /v2/user/logout controllers.UserApiController.logoutUser()
|
||||||
PUT /v2/user/:username controllers.UserApiController.updateUser(username: String)
|
PUT /v2/user/:username controllers.UserApiController.updateUser(username: String)
|
||||||
|
|
||||||
# Map static resources from the /public folder to the /assets URL path
|
# Map static resources from the /public folder to the /assets URL path
|
||||||
GET /assets/*file controllers.Assets.at(file)
|
GET /assets/*file controllers.Assets.at(file)
|
||||||
|
|||||||
@@ -112,8 +112,8 @@
|
|||||||
"type" : "array",
|
"type" : "array",
|
||||||
"items" : {
|
"items" : {
|
||||||
"type" : "string",
|
"type" : "string",
|
||||||
"enum" : [ "available", "pending", "sold" ],
|
"default" : "available",
|
||||||
"default" : "available"
|
"enum" : [ "available", "pending", "sold" ]
|
||||||
},
|
},
|
||||||
"collectionFormat" : "csv"
|
"collectionFormat" : "csv"
|
||||||
} ],
|
} ],
|
||||||
@@ -134,7 +134,6 @@
|
|||||||
"security" : [ {
|
"security" : [ {
|
||||||
"petstore_auth" : [ "write:pets", "read:pets" ]
|
"petstore_auth" : [ "write:pets", "read:pets" ]
|
||||||
} ],
|
} ],
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -174,7 +173,6 @@
|
|||||||
"petstore_auth" : [ "write:pets", "read:pets" ]
|
"petstore_auth" : [ "write:pets", "read:pets" ]
|
||||||
} ],
|
} ],
|
||||||
"deprecated" : true,
|
"deprecated" : true,
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -210,7 +208,6 @@
|
|||||||
"security" : [ {
|
"security" : [ {
|
||||||
"api_key" : [ ]
|
"api_key" : [ ]
|
||||||
} ],
|
} ],
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
},
|
},
|
||||||
"post" : {
|
"post" : {
|
||||||
@@ -278,7 +275,6 @@
|
|||||||
"security" : [ {
|
"security" : [ {
|
||||||
"petstore_auth" : [ "write:pets", "read:pets" ]
|
"petstore_auth" : [ "write:pets", "read:pets" ]
|
||||||
} ],
|
} ],
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -348,7 +344,6 @@
|
|||||||
"security" : [ {
|
"security" : [ {
|
||||||
"api_key" : [ ]
|
"api_key" : [ ]
|
||||||
} ],
|
} ],
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -414,7 +409,6 @@
|
|||||||
"description" : "Order not found"
|
"description" : "Order not found"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
},
|
},
|
||||||
"delete" : {
|
"delete" : {
|
||||||
@@ -438,7 +432,6 @@
|
|||||||
"description" : "Order not found"
|
"description" : "Order not found"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -566,7 +559,6 @@
|
|||||||
"description" : "Invalid username/password supplied"
|
"description" : "Invalid username/password supplied"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -583,7 +575,6 @@
|
|||||||
"description" : "successful operation"
|
"description" : "successful operation"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -615,7 +606,6 @@
|
|||||||
"description" : "User not found"
|
"description" : "User not found"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
},
|
},
|
||||||
"put" : {
|
"put" : {
|
||||||
@@ -671,7 +661,6 @@
|
|||||||
"description" : "User not found"
|
"description" : "User not found"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
|
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
|
||||||
if (this.mapProperty == null) {
|
if (this.mapProperty == null) {
|
||||||
this.mapProperty = new HashMap<String, String>();
|
this.mapProperty = new HashMap<>();
|
||||||
}
|
}
|
||||||
this.mapProperty.put(key, mapPropertyItem);
|
this.mapProperty.put(key, mapPropertyItem);
|
||||||
return this;
|
return this;
|
||||||
@@ -52,7 +52,7 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
|
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
|
||||||
if (this.mapOfMapProperty == null) {
|
if (this.mapOfMapProperty == null) {
|
||||||
this.mapOfMapProperty = new HashMap<String, Map<String, String>>();
|
this.mapOfMapProperty = new HashMap<>();
|
||||||
}
|
}
|
||||||
this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
|
this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ public class ArrayOfArrayOfNumberOnly {
|
|||||||
|
|
||||||
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
|
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
|
||||||
if (arrayArrayNumber == null) {
|
if (arrayArrayNumber == null) {
|
||||||
arrayArrayNumber = new ArrayList<List<BigDecimal>>();
|
arrayArrayNumber = new ArrayList<>();
|
||||||
}
|
}
|
||||||
arrayArrayNumber.add(arrayArrayNumberItem);
|
arrayArrayNumber.add(arrayArrayNumberItem);
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ public class ArrayOfNumberOnly {
|
|||||||
|
|
||||||
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
|
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
|
||||||
if (arrayNumber == null) {
|
if (arrayNumber == null) {
|
||||||
arrayNumber = new ArrayList<BigDecimal>();
|
arrayNumber = new ArrayList<>();
|
||||||
}
|
}
|
||||||
arrayNumber.add(arrayNumberItem);
|
arrayNumber.add(arrayNumberItem);
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ public class ArrayTest {
|
|||||||
|
|
||||||
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
|
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
|
||||||
if (arrayOfString == null) {
|
if (arrayOfString == null) {
|
||||||
arrayOfString = new ArrayList<String>();
|
arrayOfString = new ArrayList<>();
|
||||||
}
|
}
|
||||||
arrayOfString.add(arrayOfStringItem);
|
arrayOfString.add(arrayOfStringItem);
|
||||||
return this;
|
return this;
|
||||||
@@ -55,7 +55,7 @@ public class ArrayTest {
|
|||||||
|
|
||||||
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
|
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
|
||||||
if (arrayArrayOfInteger == null) {
|
if (arrayArrayOfInteger == null) {
|
||||||
arrayArrayOfInteger = new ArrayList<List<Long>>();
|
arrayArrayOfInteger = new ArrayList<>();
|
||||||
}
|
}
|
||||||
arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
|
arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
|
||||||
return this;
|
return this;
|
||||||
@@ -81,7 +81,7 @@ public class ArrayTest {
|
|||||||
|
|
||||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||||
if (arrayArrayOfModel == null) {
|
if (arrayArrayOfModel == null) {
|
||||||
arrayArrayOfModel = new ArrayList<List<ReadOnlyFirst>>();
|
arrayArrayOfModel = new ArrayList<>();
|
||||||
}
|
}
|
||||||
arrayArrayOfModel.add(arrayArrayOfModelItem);
|
arrayArrayOfModel.add(arrayArrayOfModelItem);
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ public class EnumArrays {
|
|||||||
|
|
||||||
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
|
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
|
||||||
if (arrayEnum == null) {
|
if (arrayEnum == null) {
|
||||||
arrayEnum = new ArrayList<ArrayEnumEnum>();
|
arrayEnum = new ArrayList<>();
|
||||||
}
|
}
|
||||||
arrayEnum.add(arrayEnumItem);
|
arrayEnum.add(arrayEnumItem);
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ public class MapTest {
|
|||||||
|
|
||||||
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
|
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
|
||||||
if (this.mapMapOfString == null) {
|
if (this.mapMapOfString == null) {
|
||||||
this.mapMapOfString = new HashMap<String, Map<String, String>>();
|
this.mapMapOfString = new HashMap<>();
|
||||||
}
|
}
|
||||||
this.mapMapOfString.put(key, mapMapOfStringItem);
|
this.mapMapOfString.put(key, mapMapOfStringItem);
|
||||||
return this;
|
return this;
|
||||||
@@ -84,7 +84,7 @@ public class MapTest {
|
|||||||
|
|
||||||
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
|
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
|
||||||
if (this.mapOfEnumString == null) {
|
if (this.mapOfEnumString == null) {
|
||||||
this.mapOfEnumString = new HashMap<String, InnerEnum>();
|
this.mapOfEnumString = new HashMap<>();
|
||||||
}
|
}
|
||||||
this.mapOfEnumString.put(key, mapOfEnumStringItem);
|
this.mapOfEnumString.put(key, mapOfEnumStringItem);
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
|
|
||||||
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
|
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
|
||||||
if (this.map == null) {
|
if (this.map == null) {
|
||||||
this.map = new HashMap<String, Animal>();
|
this.map = new HashMap<>();
|
||||||
}
|
}
|
||||||
this.map.put(key, mapItem);
|
this.map.put(key, mapItem);
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ public class Pet {
|
|||||||
private String name = null;
|
private String name = null;
|
||||||
|
|
||||||
@JsonProperty("photoUrls")
|
@JsonProperty("photoUrls")
|
||||||
private List<String> photoUrls = new ArrayList<String>();
|
private List<String> photoUrls = new ArrayList<>();
|
||||||
|
|
||||||
@JsonProperty("tags")
|
@JsonProperty("tags")
|
||||||
private List<Tag> tags = null;
|
private List<Tag> tags = null;
|
||||||
@@ -149,7 +149,7 @@ public class Pet {
|
|||||||
|
|
||||||
public Pet addTagsItem(Tag tagsItem) {
|
public Pet addTagsItem(Tag tagsItem) {
|
||||||
if (tags == null) {
|
if (tags == null) {
|
||||||
tags = new ArrayList<Tag>();
|
tags = new ArrayList<>();
|
||||||
}
|
}
|
||||||
tags.add(tagsItem);
|
tags.add(tagsItem);
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -112,8 +112,8 @@
|
|||||||
"type" : "array",
|
"type" : "array",
|
||||||
"items" : {
|
"items" : {
|
||||||
"type" : "string",
|
"type" : "string",
|
||||||
"enum" : [ "available", "pending", "sold" ],
|
"default" : "available",
|
||||||
"default" : "available"
|
"enum" : [ "available", "pending", "sold" ]
|
||||||
},
|
},
|
||||||
"collectionFormat" : "csv"
|
"collectionFormat" : "csv"
|
||||||
} ],
|
} ],
|
||||||
@@ -134,7 +134,6 @@
|
|||||||
"security" : [ {
|
"security" : [ {
|
||||||
"petstore_auth" : [ "write:pets", "read:pets" ]
|
"petstore_auth" : [ "write:pets", "read:pets" ]
|
||||||
} ],
|
} ],
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -174,7 +173,6 @@
|
|||||||
"petstore_auth" : [ "write:pets", "read:pets" ]
|
"petstore_auth" : [ "write:pets", "read:pets" ]
|
||||||
} ],
|
} ],
|
||||||
"deprecated" : true,
|
"deprecated" : true,
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -210,7 +208,6 @@
|
|||||||
"security" : [ {
|
"security" : [ {
|
||||||
"api_key" : [ ]
|
"api_key" : [ ]
|
||||||
} ],
|
} ],
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
},
|
},
|
||||||
"post" : {
|
"post" : {
|
||||||
@@ -278,7 +275,6 @@
|
|||||||
"security" : [ {
|
"security" : [ {
|
||||||
"petstore_auth" : [ "write:pets", "read:pets" ]
|
"petstore_auth" : [ "write:pets", "read:pets" ]
|
||||||
} ],
|
} ],
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -348,7 +344,6 @@
|
|||||||
"security" : [ {
|
"security" : [ {
|
||||||
"api_key" : [ ]
|
"api_key" : [ ]
|
||||||
} ],
|
} ],
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -414,7 +409,6 @@
|
|||||||
"description" : "Order not found"
|
"description" : "Order not found"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
},
|
},
|
||||||
"delete" : {
|
"delete" : {
|
||||||
@@ -438,7 +432,6 @@
|
|||||||
"description" : "Order not found"
|
"description" : "Order not found"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -566,7 +559,6 @@
|
|||||||
"description" : "Invalid username/password supplied"
|
"description" : "Invalid username/password supplied"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -583,7 +575,6 @@
|
|||||||
"description" : "successful operation"
|
"description" : "successful operation"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -615,7 +606,6 @@
|
|||||||
"description" : "User not found"
|
"description" : "User not found"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
},
|
},
|
||||||
"put" : {
|
"put" : {
|
||||||
@@ -671,7 +661,6 @@
|
|||||||
"description" : "User not found"
|
"description" : "User not found"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -722,8 +711,8 @@
|
|||||||
"type" : "array",
|
"type" : "array",
|
||||||
"items" : {
|
"items" : {
|
||||||
"type" : "string",
|
"type" : "string",
|
||||||
"enum" : [ ">", "$" ],
|
"default" : "$",
|
||||||
"default" : "$"
|
"enum" : [ ">", "$" ]
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"name" : "enum_form_string",
|
"name" : "enum_form_string",
|
||||||
@@ -741,8 +730,8 @@
|
|||||||
"type" : "array",
|
"type" : "array",
|
||||||
"items" : {
|
"items" : {
|
||||||
"type" : "string",
|
"type" : "string",
|
||||||
"enum" : [ ">", "$" ],
|
"default" : "$",
|
||||||
"default" : "$"
|
"enum" : [ ">", "$" ]
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"name" : "enum_header_string",
|
"name" : "enum_header_string",
|
||||||
@@ -760,8 +749,8 @@
|
|||||||
"type" : "array",
|
"type" : "array",
|
||||||
"items" : {
|
"items" : {
|
||||||
"type" : "string",
|
"type" : "string",
|
||||||
"enum" : [ ">", "$" ],
|
"default" : "$",
|
||||||
"default" : "$"
|
"enum" : [ ">", "$" ]
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"name" : "enum_query_string",
|
"name" : "enum_query_string",
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ public class Pet {
|
|||||||
private String name = null;
|
private String name = null;
|
||||||
|
|
||||||
@JsonProperty("photoUrls")
|
@JsonProperty("photoUrls")
|
||||||
private List<String> photoUrls = new ArrayList<String>();
|
private List<String> photoUrls = new ArrayList<>();
|
||||||
|
|
||||||
@JsonProperty("tags")
|
@JsonProperty("tags")
|
||||||
private List<Tag> tags = null;
|
private List<Tag> tags = null;
|
||||||
@@ -145,7 +145,7 @@ public class Pet {
|
|||||||
|
|
||||||
public Pet addTagsItem(Tag tagsItem) {
|
public Pet addTagsItem(Tag tagsItem) {
|
||||||
if (tags == null) {
|
if (tags == null) {
|
||||||
tags = new ArrayList<Tag>();
|
tags = new ArrayList<>();
|
||||||
}
|
}
|
||||||
tags.add(tagsItem);
|
tags.add(tagsItem);
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -2,34 +2,34 @@
|
|||||||
# This file defines all application routes (Higher priority routes first)
|
# This file defines all application routes (Higher priority routes first)
|
||||||
# ~~~~
|
# ~~~~
|
||||||
|
|
||||||
GET /api controllers.ApiDocController.api
|
GET /api controllers.ApiDocController.api
|
||||||
|
|
||||||
|
|
||||||
#Functions for Pet API
|
#Functions for Pet API
|
||||||
POST /v2/pet controllers.PetApiController.addPet()
|
POST /v2/pet controllers.PetApiController.addPet()
|
||||||
DELETE /v2/pet/:petId controllers.PetApiController.deletePet(petId: Long)
|
DELETE /v2/pet/:petId controllers.PetApiController.deletePet(petId: Long)
|
||||||
GET /v2/pet/findByStatus controllers.PetApiController.findPetsByStatus()
|
GET /v2/pet/findByStatus controllers.PetApiController.findPetsByStatus()
|
||||||
GET /v2/pet/findByTags controllers.PetApiController.findPetsByTags()
|
GET /v2/pet/findByTags controllers.PetApiController.findPetsByTags()
|
||||||
GET /v2/pet/:petId controllers.PetApiController.getPetById(petId: Long)
|
GET /v2/pet/:petId controllers.PetApiController.getPetById(petId: Long)
|
||||||
PUT /v2/pet controllers.PetApiController.updatePet()
|
PUT /v2/pet controllers.PetApiController.updatePet()
|
||||||
POST /v2/pet/:petId controllers.PetApiController.updatePetWithForm(petId: Long)
|
POST /v2/pet/:petId controllers.PetApiController.updatePetWithForm(petId: Long)
|
||||||
POST /v2/pet/:petId/uploadImage controllers.PetApiController.uploadFile(petId: Long)
|
POST /v2/pet/:petId/uploadImage controllers.PetApiController.uploadFile(petId: Long)
|
||||||
|
|
||||||
#Functions for Store API
|
#Functions for Store API
|
||||||
DELETE /v2/store/order/:orderId controllers.StoreApiController.deleteOrder(orderId: String)
|
DELETE /v2/store/order/:orderId controllers.StoreApiController.deleteOrder(orderId: String)
|
||||||
GET /v2/store/inventory controllers.StoreApiController.getInventory()
|
GET /v2/store/inventory controllers.StoreApiController.getInventory()
|
||||||
GET /v2/store/order/:orderId controllers.StoreApiController.getOrderById(orderId: Long)
|
GET /v2/store/order/:orderId controllers.StoreApiController.getOrderById(orderId: Long)
|
||||||
POST /v2/store/order controllers.StoreApiController.placeOrder()
|
POST /v2/store/order controllers.StoreApiController.placeOrder()
|
||||||
|
|
||||||
#Functions for User API
|
#Functions for User API
|
||||||
POST /v2/user controllers.UserApiController.createUser()
|
POST /v2/user controllers.UserApiController.createUser()
|
||||||
POST /v2/user/createWithArray controllers.UserApiController.createUsersWithArrayInput()
|
POST /v2/user/createWithArray controllers.UserApiController.createUsersWithArrayInput()
|
||||||
POST /v2/user/createWithList controllers.UserApiController.createUsersWithListInput()
|
POST /v2/user/createWithList controllers.UserApiController.createUsersWithListInput()
|
||||||
DELETE /v2/user/:username controllers.UserApiController.deleteUser(username: String)
|
DELETE /v2/user/:username controllers.UserApiController.deleteUser(username: String)
|
||||||
GET /v2/user/:username controllers.UserApiController.getUserByName(username: String)
|
GET /v2/user/:username controllers.UserApiController.getUserByName(username: String)
|
||||||
GET /v2/user/login controllers.UserApiController.loginUser()
|
GET /v2/user/login controllers.UserApiController.loginUser()
|
||||||
GET /v2/user/logout controllers.UserApiController.logoutUser()
|
GET /v2/user/logout controllers.UserApiController.logoutUser()
|
||||||
PUT /v2/user/:username controllers.UserApiController.updateUser(username: String)
|
PUT /v2/user/:username controllers.UserApiController.updateUser(username: String)
|
||||||
|
|
||||||
# Map static resources from the /public folder to the /assets URL path
|
# Map static resources from the /public folder to the /assets URL path
|
||||||
GET /assets/*file controllers.Assets.at(file)
|
GET /assets/*file controllers.Assets.at(file)
|
||||||
|
|||||||
@@ -112,8 +112,8 @@
|
|||||||
"type" : "array",
|
"type" : "array",
|
||||||
"items" : {
|
"items" : {
|
||||||
"type" : "string",
|
"type" : "string",
|
||||||
"enum" : [ "available", "pending", "sold" ],
|
"default" : "available",
|
||||||
"default" : "available"
|
"enum" : [ "available", "pending", "sold" ]
|
||||||
},
|
},
|
||||||
"collectionFormat" : "csv"
|
"collectionFormat" : "csv"
|
||||||
} ],
|
} ],
|
||||||
@@ -134,7 +134,6 @@
|
|||||||
"security" : [ {
|
"security" : [ {
|
||||||
"petstore_auth" : [ "write:pets", "read:pets" ]
|
"petstore_auth" : [ "write:pets", "read:pets" ]
|
||||||
} ],
|
} ],
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -174,7 +173,6 @@
|
|||||||
"petstore_auth" : [ "write:pets", "read:pets" ]
|
"petstore_auth" : [ "write:pets", "read:pets" ]
|
||||||
} ],
|
} ],
|
||||||
"deprecated" : true,
|
"deprecated" : true,
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -210,7 +208,6 @@
|
|||||||
"security" : [ {
|
"security" : [ {
|
||||||
"api_key" : [ ]
|
"api_key" : [ ]
|
||||||
} ],
|
} ],
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
},
|
},
|
||||||
"post" : {
|
"post" : {
|
||||||
@@ -278,7 +275,6 @@
|
|||||||
"security" : [ {
|
"security" : [ {
|
||||||
"petstore_auth" : [ "write:pets", "read:pets" ]
|
"petstore_auth" : [ "write:pets", "read:pets" ]
|
||||||
} ],
|
} ],
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -348,7 +344,6 @@
|
|||||||
"security" : [ {
|
"security" : [ {
|
||||||
"api_key" : [ ]
|
"api_key" : [ ]
|
||||||
} ],
|
} ],
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -414,7 +409,6 @@
|
|||||||
"description" : "Order not found"
|
"description" : "Order not found"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
},
|
},
|
||||||
"delete" : {
|
"delete" : {
|
||||||
@@ -438,7 +432,6 @@
|
|||||||
"description" : "Order not found"
|
"description" : "Order not found"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -566,7 +559,6 @@
|
|||||||
"description" : "Invalid username/password supplied"
|
"description" : "Invalid username/password supplied"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -583,7 +575,6 @@
|
|||||||
"description" : "successful operation"
|
"description" : "successful operation"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -615,7 +606,6 @@
|
|||||||
"description" : "User not found"
|
"description" : "User not found"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
},
|
},
|
||||||
"put" : {
|
"put" : {
|
||||||
@@ -671,7 +661,6 @@
|
|||||||
"description" : "User not found"
|
"description" : "User not found"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ public class Pet {
|
|||||||
private String name = null;
|
private String name = null;
|
||||||
|
|
||||||
@JsonProperty("photoUrls")
|
@JsonProperty("photoUrls")
|
||||||
private List<String> photoUrls = new ArrayList<String>();
|
private List<String> photoUrls = new ArrayList<>();
|
||||||
|
|
||||||
@JsonProperty("tags")
|
@JsonProperty("tags")
|
||||||
private List<Tag> tags = null;
|
private List<Tag> tags = null;
|
||||||
@@ -149,7 +149,7 @@ public class Pet {
|
|||||||
|
|
||||||
public Pet addTagsItem(Tag tagsItem) {
|
public Pet addTagsItem(Tag tagsItem) {
|
||||||
if (tags == null) {
|
if (tags == null) {
|
||||||
tags = new ArrayList<Tag>();
|
tags = new ArrayList<>();
|
||||||
}
|
}
|
||||||
tags.add(tagsItem);
|
tags.add(tagsItem);
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -2,34 +2,34 @@
|
|||||||
# This file defines all application routes (Higher priority routes first)
|
# This file defines all application routes (Higher priority routes first)
|
||||||
# ~~~~
|
# ~~~~
|
||||||
|
|
||||||
GET /api controllers.ApiDocController.api
|
GET /api controllers.ApiDocController.api
|
||||||
|
|
||||||
|
|
||||||
#Functions for Pet API
|
#Functions for Pet API
|
||||||
POST /v2/pet controllers.PetApiController.addPet()
|
POST /v2/pet controllers.PetApiController.addPet()
|
||||||
DELETE /v2/pet/:petId controllers.PetApiController.deletePet(petId: Long)
|
DELETE /v2/pet/:petId controllers.PetApiController.deletePet(petId: Long)
|
||||||
GET /v2/pet/findByStatus controllers.PetApiController.findPetsByStatus()
|
GET /v2/pet/findByStatus controllers.PetApiController.findPetsByStatus()
|
||||||
GET /v2/pet/findByTags controllers.PetApiController.findPetsByTags()
|
GET /v2/pet/findByTags controllers.PetApiController.findPetsByTags()
|
||||||
GET /v2/pet/:petId controllers.PetApiController.getPetById(petId: Long)
|
GET /v2/pet/:petId controllers.PetApiController.getPetById(petId: Long)
|
||||||
PUT /v2/pet controllers.PetApiController.updatePet()
|
PUT /v2/pet controllers.PetApiController.updatePet()
|
||||||
POST /v2/pet/:petId controllers.PetApiController.updatePetWithForm(petId: Long)
|
POST /v2/pet/:petId controllers.PetApiController.updatePetWithForm(petId: Long)
|
||||||
POST /v2/pet/:petId/uploadImage controllers.PetApiController.uploadFile(petId: Long)
|
POST /v2/pet/:petId/uploadImage controllers.PetApiController.uploadFile(petId: Long)
|
||||||
|
|
||||||
#Functions for Store API
|
#Functions for Store API
|
||||||
DELETE /v2/store/order/:orderId controllers.StoreApiController.deleteOrder(orderId: String)
|
DELETE /v2/store/order/:orderId controllers.StoreApiController.deleteOrder(orderId: String)
|
||||||
GET /v2/store/inventory controllers.StoreApiController.getInventory()
|
GET /v2/store/inventory controllers.StoreApiController.getInventory()
|
||||||
GET /v2/store/order/:orderId controllers.StoreApiController.getOrderById(orderId: Long)
|
GET /v2/store/order/:orderId controllers.StoreApiController.getOrderById(orderId: Long)
|
||||||
POST /v2/store/order controllers.StoreApiController.placeOrder()
|
POST /v2/store/order controllers.StoreApiController.placeOrder()
|
||||||
|
|
||||||
#Functions for User API
|
#Functions for User API
|
||||||
POST /v2/user controllers.UserApiController.createUser()
|
POST /v2/user controllers.UserApiController.createUser()
|
||||||
POST /v2/user/createWithArray controllers.UserApiController.createUsersWithArrayInput()
|
POST /v2/user/createWithArray controllers.UserApiController.createUsersWithArrayInput()
|
||||||
POST /v2/user/createWithList controllers.UserApiController.createUsersWithListInput()
|
POST /v2/user/createWithList controllers.UserApiController.createUsersWithListInput()
|
||||||
DELETE /v2/user/:username controllers.UserApiController.deleteUser(username: String)
|
DELETE /v2/user/:username controllers.UserApiController.deleteUser(username: String)
|
||||||
GET /v2/user/:username controllers.UserApiController.getUserByName(username: String)
|
GET /v2/user/:username controllers.UserApiController.getUserByName(username: String)
|
||||||
GET /v2/user/login controllers.UserApiController.loginUser()
|
GET /v2/user/login controllers.UserApiController.loginUser()
|
||||||
GET /v2/user/logout controllers.UserApiController.logoutUser()
|
GET /v2/user/logout controllers.UserApiController.logoutUser()
|
||||||
PUT /v2/user/:username controllers.UserApiController.updateUser(username: String)
|
PUT /v2/user/:username controllers.UserApiController.updateUser(username: String)
|
||||||
|
|
||||||
# Map static resources from the /public folder to the /assets URL path
|
# Map static resources from the /public folder to the /assets URL path
|
||||||
GET /assets/*file controllers.Assets.at(file)
|
GET /assets/*file controllers.Assets.at(file)
|
||||||
|
|||||||
@@ -112,8 +112,8 @@
|
|||||||
"type" : "array",
|
"type" : "array",
|
||||||
"items" : {
|
"items" : {
|
||||||
"type" : "string",
|
"type" : "string",
|
||||||
"enum" : [ "available", "pending", "sold" ],
|
"default" : "available",
|
||||||
"default" : "available"
|
"enum" : [ "available", "pending", "sold" ]
|
||||||
},
|
},
|
||||||
"collectionFormat" : "csv"
|
"collectionFormat" : "csv"
|
||||||
} ],
|
} ],
|
||||||
@@ -134,7 +134,6 @@
|
|||||||
"security" : [ {
|
"security" : [ {
|
||||||
"petstore_auth" : [ "write:pets", "read:pets" ]
|
"petstore_auth" : [ "write:pets", "read:pets" ]
|
||||||
} ],
|
} ],
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -174,7 +173,6 @@
|
|||||||
"petstore_auth" : [ "write:pets", "read:pets" ]
|
"petstore_auth" : [ "write:pets", "read:pets" ]
|
||||||
} ],
|
} ],
|
||||||
"deprecated" : true,
|
"deprecated" : true,
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -210,7 +208,6 @@
|
|||||||
"security" : [ {
|
"security" : [ {
|
||||||
"api_key" : [ ]
|
"api_key" : [ ]
|
||||||
} ],
|
} ],
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
},
|
},
|
||||||
"post" : {
|
"post" : {
|
||||||
@@ -278,7 +275,6 @@
|
|||||||
"security" : [ {
|
"security" : [ {
|
||||||
"petstore_auth" : [ "write:pets", "read:pets" ]
|
"petstore_auth" : [ "write:pets", "read:pets" ]
|
||||||
} ],
|
} ],
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -348,7 +344,6 @@
|
|||||||
"security" : [ {
|
"security" : [ {
|
||||||
"api_key" : [ ]
|
"api_key" : [ ]
|
||||||
} ],
|
} ],
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -414,7 +409,6 @@
|
|||||||
"description" : "Order not found"
|
"description" : "Order not found"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
},
|
},
|
||||||
"delete" : {
|
"delete" : {
|
||||||
@@ -438,7 +432,6 @@
|
|||||||
"description" : "Order not found"
|
"description" : "Order not found"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -566,7 +559,6 @@
|
|||||||
"description" : "Invalid username/password supplied"
|
"description" : "Invalid username/password supplied"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -583,7 +575,6 @@
|
|||||||
"description" : "successful operation"
|
"description" : "successful operation"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -615,7 +606,6 @@
|
|||||||
"description" : "User not found"
|
"description" : "User not found"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
},
|
},
|
||||||
"put" : {
|
"put" : {
|
||||||
@@ -671,7 +661,6 @@
|
|||||||
"description" : "User not found"
|
"description" : "User not found"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ public class Pet {
|
|||||||
private String name = null;
|
private String name = null;
|
||||||
|
|
||||||
@JsonProperty("photoUrls")
|
@JsonProperty("photoUrls")
|
||||||
private List<String> photoUrls = new ArrayList<String>();
|
private List<String> photoUrls = new ArrayList<>();
|
||||||
|
|
||||||
@JsonProperty("tags")
|
@JsonProperty("tags")
|
||||||
private List<Tag> tags = null;
|
private List<Tag> tags = null;
|
||||||
@@ -149,7 +149,7 @@ public class Pet {
|
|||||||
|
|
||||||
public Pet addTagsItem(Tag tagsItem) {
|
public Pet addTagsItem(Tag tagsItem) {
|
||||||
if (tags == null) {
|
if (tags == null) {
|
||||||
tags = new ArrayList<Tag>();
|
tags = new ArrayList<>();
|
||||||
}
|
}
|
||||||
tags.add(tagsItem);
|
tags.add(tagsItem);
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -2,34 +2,34 @@
|
|||||||
# This file defines all application routes (Higher priority routes first)
|
# This file defines all application routes (Higher priority routes first)
|
||||||
# ~~~~
|
# ~~~~
|
||||||
|
|
||||||
GET /api controllers.ApiDocController.api
|
GET /api controllers.ApiDocController.api
|
||||||
|
|
||||||
|
|
||||||
#Functions for Pet API
|
#Functions for Pet API
|
||||||
POST /v2/pet controllers.PetApiController.addPet()
|
POST /v2/pet controllers.PetApiController.addPet()
|
||||||
DELETE /v2/pet/:petId controllers.PetApiController.deletePet(petId: Long)
|
DELETE /v2/pet/:petId controllers.PetApiController.deletePet(petId: Long)
|
||||||
GET /v2/pet/findByStatus controllers.PetApiController.findPetsByStatus()
|
GET /v2/pet/findByStatus controllers.PetApiController.findPetsByStatus()
|
||||||
GET /v2/pet/findByTags controllers.PetApiController.findPetsByTags()
|
GET /v2/pet/findByTags controllers.PetApiController.findPetsByTags()
|
||||||
GET /v2/pet/:petId controllers.PetApiController.getPetById(petId: Long)
|
GET /v2/pet/:petId controllers.PetApiController.getPetById(petId: Long)
|
||||||
PUT /v2/pet controllers.PetApiController.updatePet()
|
PUT /v2/pet controllers.PetApiController.updatePet()
|
||||||
POST /v2/pet/:petId controllers.PetApiController.updatePetWithForm(petId: Long)
|
POST /v2/pet/:petId controllers.PetApiController.updatePetWithForm(petId: Long)
|
||||||
POST /v2/pet/:petId/uploadImage controllers.PetApiController.uploadFile(petId: Long)
|
POST /v2/pet/:petId/uploadImage controllers.PetApiController.uploadFile(petId: Long)
|
||||||
|
|
||||||
#Functions for Store API
|
#Functions for Store API
|
||||||
DELETE /v2/store/order/:orderId controllers.StoreApiController.deleteOrder(orderId: String)
|
DELETE /v2/store/order/:orderId controllers.StoreApiController.deleteOrder(orderId: String)
|
||||||
GET /v2/store/inventory controllers.StoreApiController.getInventory()
|
GET /v2/store/inventory controllers.StoreApiController.getInventory()
|
||||||
GET /v2/store/order/:orderId controllers.StoreApiController.getOrderById(orderId: Long)
|
GET /v2/store/order/:orderId controllers.StoreApiController.getOrderById(orderId: Long)
|
||||||
POST /v2/store/order controllers.StoreApiController.placeOrder()
|
POST /v2/store/order controllers.StoreApiController.placeOrder()
|
||||||
|
|
||||||
#Functions for User API
|
#Functions for User API
|
||||||
POST /v2/user controllers.UserApiController.createUser()
|
POST /v2/user controllers.UserApiController.createUser()
|
||||||
POST /v2/user/createWithArray controllers.UserApiController.createUsersWithArrayInput()
|
POST /v2/user/createWithArray controllers.UserApiController.createUsersWithArrayInput()
|
||||||
POST /v2/user/createWithList controllers.UserApiController.createUsersWithListInput()
|
POST /v2/user/createWithList controllers.UserApiController.createUsersWithListInput()
|
||||||
DELETE /v2/user/:username controllers.UserApiController.deleteUser(username: String)
|
DELETE /v2/user/:username controllers.UserApiController.deleteUser(username: String)
|
||||||
GET /v2/user/:username controllers.UserApiController.getUserByName(username: String)
|
GET /v2/user/:username controllers.UserApiController.getUserByName(username: String)
|
||||||
GET /v2/user/login controllers.UserApiController.loginUser()
|
GET /v2/user/login controllers.UserApiController.loginUser()
|
||||||
GET /v2/user/logout controllers.UserApiController.logoutUser()
|
GET /v2/user/logout controllers.UserApiController.logoutUser()
|
||||||
PUT /v2/user/:username controllers.UserApiController.updateUser(username: String)
|
PUT /v2/user/:username controllers.UserApiController.updateUser(username: String)
|
||||||
|
|
||||||
# Map static resources from the /public folder to the /assets URL path
|
# Map static resources from the /public folder to the /assets URL path
|
||||||
GET /assets/*file controllers.Assets.at(file)
|
GET /assets/*file controllers.Assets.at(file)
|
||||||
|
|||||||
@@ -112,8 +112,8 @@
|
|||||||
"type" : "array",
|
"type" : "array",
|
||||||
"items" : {
|
"items" : {
|
||||||
"type" : "string",
|
"type" : "string",
|
||||||
"enum" : [ "available", "pending", "sold" ],
|
"default" : "available",
|
||||||
"default" : "available"
|
"enum" : [ "available", "pending", "sold" ]
|
||||||
},
|
},
|
||||||
"collectionFormat" : "csv"
|
"collectionFormat" : "csv"
|
||||||
} ],
|
} ],
|
||||||
@@ -134,7 +134,6 @@
|
|||||||
"security" : [ {
|
"security" : [ {
|
||||||
"petstore_auth" : [ "write:pets", "read:pets" ]
|
"petstore_auth" : [ "write:pets", "read:pets" ]
|
||||||
} ],
|
} ],
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -174,7 +173,6 @@
|
|||||||
"petstore_auth" : [ "write:pets", "read:pets" ]
|
"petstore_auth" : [ "write:pets", "read:pets" ]
|
||||||
} ],
|
} ],
|
||||||
"deprecated" : true,
|
"deprecated" : true,
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -210,7 +208,6 @@
|
|||||||
"security" : [ {
|
"security" : [ {
|
||||||
"api_key" : [ ]
|
"api_key" : [ ]
|
||||||
} ],
|
} ],
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
},
|
},
|
||||||
"post" : {
|
"post" : {
|
||||||
@@ -278,7 +275,6 @@
|
|||||||
"security" : [ {
|
"security" : [ {
|
||||||
"petstore_auth" : [ "write:pets", "read:pets" ]
|
"petstore_auth" : [ "write:pets", "read:pets" ]
|
||||||
} ],
|
} ],
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -348,7 +344,6 @@
|
|||||||
"security" : [ {
|
"security" : [ {
|
||||||
"api_key" : [ ]
|
"api_key" : [ ]
|
||||||
} ],
|
} ],
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -414,7 +409,6 @@
|
|||||||
"description" : "Order not found"
|
"description" : "Order not found"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
},
|
},
|
||||||
"delete" : {
|
"delete" : {
|
||||||
@@ -438,7 +432,6 @@
|
|||||||
"description" : "Order not found"
|
"description" : "Order not found"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -566,7 +559,6 @@
|
|||||||
"description" : "Invalid username/password supplied"
|
"description" : "Invalid username/password supplied"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -583,7 +575,6 @@
|
|||||||
"description" : "successful operation"
|
"description" : "successful operation"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -615,7 +606,6 @@
|
|||||||
"description" : "User not found"
|
"description" : "User not found"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
},
|
},
|
||||||
"put" : {
|
"put" : {
|
||||||
@@ -671,7 +661,6 @@
|
|||||||
"description" : "User not found"
|
"description" : "User not found"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ public class Pet {
|
|||||||
private String name = null;
|
private String name = null;
|
||||||
|
|
||||||
@JsonProperty("photoUrls")
|
@JsonProperty("photoUrls")
|
||||||
private List<String> photoUrls = new ArrayList<String>();
|
private List<String> photoUrls = new ArrayList<>();
|
||||||
|
|
||||||
@JsonProperty("tags")
|
@JsonProperty("tags")
|
||||||
private List<Tag> tags = null;
|
private List<Tag> tags = null;
|
||||||
@@ -149,7 +149,7 @@ public class Pet {
|
|||||||
|
|
||||||
public Pet addTagsItem(Tag tagsItem) {
|
public Pet addTagsItem(Tag tagsItem) {
|
||||||
if (tags == null) {
|
if (tags == null) {
|
||||||
tags = new ArrayList<Tag>();
|
tags = new ArrayList<>();
|
||||||
}
|
}
|
||||||
tags.add(tagsItem);
|
tags.add(tagsItem);
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -4,31 +4,31 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#Functions for Pet API
|
#Functions for Pet API
|
||||||
POST /v2/pet controllers.PetApiController.addPet()
|
POST /v2/pet controllers.PetApiController.addPet()
|
||||||
DELETE /v2/pet/:petId controllers.PetApiController.deletePet(petId: Long)
|
DELETE /v2/pet/:petId controllers.PetApiController.deletePet(petId: Long)
|
||||||
GET /v2/pet/findByStatus controllers.PetApiController.findPetsByStatus()
|
GET /v2/pet/findByStatus controllers.PetApiController.findPetsByStatus()
|
||||||
GET /v2/pet/findByTags controllers.PetApiController.findPetsByTags()
|
GET /v2/pet/findByTags controllers.PetApiController.findPetsByTags()
|
||||||
GET /v2/pet/:petId controllers.PetApiController.getPetById(petId: Long)
|
GET /v2/pet/:petId controllers.PetApiController.getPetById(petId: Long)
|
||||||
PUT /v2/pet controllers.PetApiController.updatePet()
|
PUT /v2/pet controllers.PetApiController.updatePet()
|
||||||
POST /v2/pet/:petId controllers.PetApiController.updatePetWithForm(petId: Long)
|
POST /v2/pet/:petId controllers.PetApiController.updatePetWithForm(petId: Long)
|
||||||
POST /v2/pet/:petId/uploadImage controllers.PetApiController.uploadFile(petId: Long)
|
POST /v2/pet/:petId/uploadImage controllers.PetApiController.uploadFile(petId: Long)
|
||||||
|
|
||||||
#Functions for Store API
|
#Functions for Store API
|
||||||
DELETE /v2/store/order/:orderId controllers.StoreApiController.deleteOrder(orderId: String)
|
DELETE /v2/store/order/:orderId controllers.StoreApiController.deleteOrder(orderId: String)
|
||||||
GET /v2/store/inventory controllers.StoreApiController.getInventory()
|
GET /v2/store/inventory controllers.StoreApiController.getInventory()
|
||||||
GET /v2/store/order/:orderId controllers.StoreApiController.getOrderById(orderId: Long)
|
GET /v2/store/order/:orderId controllers.StoreApiController.getOrderById(orderId: Long)
|
||||||
POST /v2/store/order controllers.StoreApiController.placeOrder()
|
POST /v2/store/order controllers.StoreApiController.placeOrder()
|
||||||
|
|
||||||
#Functions for User API
|
#Functions for User API
|
||||||
POST /v2/user controllers.UserApiController.createUser()
|
POST /v2/user controllers.UserApiController.createUser()
|
||||||
POST /v2/user/createWithArray controllers.UserApiController.createUsersWithArrayInput()
|
POST /v2/user/createWithArray controllers.UserApiController.createUsersWithArrayInput()
|
||||||
POST /v2/user/createWithList controllers.UserApiController.createUsersWithListInput()
|
POST /v2/user/createWithList controllers.UserApiController.createUsersWithListInput()
|
||||||
DELETE /v2/user/:username controllers.UserApiController.deleteUser(username: String)
|
DELETE /v2/user/:username controllers.UserApiController.deleteUser(username: String)
|
||||||
GET /v2/user/:username controllers.UserApiController.getUserByName(username: String)
|
GET /v2/user/:username controllers.UserApiController.getUserByName(username: String)
|
||||||
GET /v2/user/login controllers.UserApiController.loginUser()
|
GET /v2/user/login controllers.UserApiController.loginUser()
|
||||||
GET /v2/user/logout controllers.UserApiController.logoutUser()
|
GET /v2/user/logout controllers.UserApiController.logoutUser()
|
||||||
PUT /v2/user/:username controllers.UserApiController.updateUser(username: String)
|
PUT /v2/user/:username controllers.UserApiController.updateUser(username: String)
|
||||||
|
|
||||||
# Map static resources from the /public folder to the /assets URL path
|
# Map static resources from the /public folder to the /assets URL path
|
||||||
GET /assets/*file controllers.Assets.at(file)
|
GET /assets/*file controllers.Assets.at(file)
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ public class Pet {
|
|||||||
private String name = null;
|
private String name = null;
|
||||||
|
|
||||||
@JsonProperty("photoUrls")
|
@JsonProperty("photoUrls")
|
||||||
private List<String> photoUrls = new ArrayList<String>();
|
private List<String> photoUrls = new ArrayList<>();
|
||||||
|
|
||||||
@JsonProperty("tags")
|
@JsonProperty("tags")
|
||||||
private List<Tag> tags = null;
|
private List<Tag> tags = null;
|
||||||
@@ -149,7 +149,7 @@ public class Pet {
|
|||||||
|
|
||||||
public Pet addTagsItem(Tag tagsItem) {
|
public Pet addTagsItem(Tag tagsItem) {
|
||||||
if (tags == null) {
|
if (tags == null) {
|
||||||
tags = new ArrayList<Tag>();
|
tags = new ArrayList<>();
|
||||||
}
|
}
|
||||||
tags.add(tagsItem);
|
tags.add(tagsItem);
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -2,34 +2,34 @@
|
|||||||
# This file defines all application routes (Higher priority routes first)
|
# This file defines all application routes (Higher priority routes first)
|
||||||
# ~~~~
|
# ~~~~
|
||||||
|
|
||||||
GET /api controllers.ApiDocController.api
|
GET /api controllers.ApiDocController.api
|
||||||
|
|
||||||
|
|
||||||
#Functions for Pet API
|
#Functions for Pet API
|
||||||
POST /v2/pet controllers.PetApiController.addPet()
|
POST /v2/pet controllers.PetApiController.addPet()
|
||||||
DELETE /v2/pet/:petId controllers.PetApiController.deletePet(petId: Long)
|
DELETE /v2/pet/:petId controllers.PetApiController.deletePet(petId: Long)
|
||||||
GET /v2/pet/findByStatus controllers.PetApiController.findPetsByStatus()
|
GET /v2/pet/findByStatus controllers.PetApiController.findPetsByStatus()
|
||||||
GET /v2/pet/findByTags controllers.PetApiController.findPetsByTags()
|
GET /v2/pet/findByTags controllers.PetApiController.findPetsByTags()
|
||||||
GET /v2/pet/:petId controllers.PetApiController.getPetById(petId: Long)
|
GET /v2/pet/:petId controllers.PetApiController.getPetById(petId: Long)
|
||||||
PUT /v2/pet controllers.PetApiController.updatePet()
|
PUT /v2/pet controllers.PetApiController.updatePet()
|
||||||
POST /v2/pet/:petId controllers.PetApiController.updatePetWithForm(petId: Long)
|
POST /v2/pet/:petId controllers.PetApiController.updatePetWithForm(petId: Long)
|
||||||
POST /v2/pet/:petId/uploadImage controllers.PetApiController.uploadFile(petId: Long)
|
POST /v2/pet/:petId/uploadImage controllers.PetApiController.uploadFile(petId: Long)
|
||||||
|
|
||||||
#Functions for Store API
|
#Functions for Store API
|
||||||
DELETE /v2/store/order/:orderId controllers.StoreApiController.deleteOrder(orderId: String)
|
DELETE /v2/store/order/:orderId controllers.StoreApiController.deleteOrder(orderId: String)
|
||||||
GET /v2/store/inventory controllers.StoreApiController.getInventory()
|
GET /v2/store/inventory controllers.StoreApiController.getInventory()
|
||||||
GET /v2/store/order/:orderId controllers.StoreApiController.getOrderById(orderId: Long)
|
GET /v2/store/order/:orderId controllers.StoreApiController.getOrderById(orderId: Long)
|
||||||
POST /v2/store/order controllers.StoreApiController.placeOrder()
|
POST /v2/store/order controllers.StoreApiController.placeOrder()
|
||||||
|
|
||||||
#Functions for User API
|
#Functions for User API
|
||||||
POST /v2/user controllers.UserApiController.createUser()
|
POST /v2/user controllers.UserApiController.createUser()
|
||||||
POST /v2/user/createWithArray controllers.UserApiController.createUsersWithArrayInput()
|
POST /v2/user/createWithArray controllers.UserApiController.createUsersWithArrayInput()
|
||||||
POST /v2/user/createWithList controllers.UserApiController.createUsersWithListInput()
|
POST /v2/user/createWithList controllers.UserApiController.createUsersWithListInput()
|
||||||
DELETE /v2/user/:username controllers.UserApiController.deleteUser(username: String)
|
DELETE /v2/user/:username controllers.UserApiController.deleteUser(username: String)
|
||||||
GET /v2/user/:username controllers.UserApiController.getUserByName(username: String)
|
GET /v2/user/:username controllers.UserApiController.getUserByName(username: String)
|
||||||
GET /v2/user/login controllers.UserApiController.loginUser()
|
GET /v2/user/login controllers.UserApiController.loginUser()
|
||||||
GET /v2/user/logout controllers.UserApiController.logoutUser()
|
GET /v2/user/logout controllers.UserApiController.logoutUser()
|
||||||
PUT /v2/user/:username controllers.UserApiController.updateUser(username: String)
|
PUT /v2/user/:username controllers.UserApiController.updateUser(username: String)
|
||||||
|
|
||||||
# Map static resources from the /public folder to the /assets URL path
|
# Map static resources from the /public folder to the /assets URL path
|
||||||
GET /assets/*file controllers.Assets.at(file)
|
GET /assets/*file controllers.Assets.at(file)
|
||||||
|
|||||||
@@ -112,8 +112,8 @@
|
|||||||
"type" : "array",
|
"type" : "array",
|
||||||
"items" : {
|
"items" : {
|
||||||
"type" : "string",
|
"type" : "string",
|
||||||
"enum" : [ "available", "pending", "sold" ],
|
"default" : "available",
|
||||||
"default" : "available"
|
"enum" : [ "available", "pending", "sold" ]
|
||||||
},
|
},
|
||||||
"collectionFormat" : "csv"
|
"collectionFormat" : "csv"
|
||||||
} ],
|
} ],
|
||||||
@@ -134,7 +134,6 @@
|
|||||||
"security" : [ {
|
"security" : [ {
|
||||||
"petstore_auth" : [ "write:pets", "read:pets" ]
|
"petstore_auth" : [ "write:pets", "read:pets" ]
|
||||||
} ],
|
} ],
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -174,7 +173,6 @@
|
|||||||
"petstore_auth" : [ "write:pets", "read:pets" ]
|
"petstore_auth" : [ "write:pets", "read:pets" ]
|
||||||
} ],
|
} ],
|
||||||
"deprecated" : true,
|
"deprecated" : true,
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -210,7 +208,6 @@
|
|||||||
"security" : [ {
|
"security" : [ {
|
||||||
"api_key" : [ ]
|
"api_key" : [ ]
|
||||||
} ],
|
} ],
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
},
|
},
|
||||||
"post" : {
|
"post" : {
|
||||||
@@ -278,7 +275,6 @@
|
|||||||
"security" : [ {
|
"security" : [ {
|
||||||
"petstore_auth" : [ "write:pets", "read:pets" ]
|
"petstore_auth" : [ "write:pets", "read:pets" ]
|
||||||
} ],
|
} ],
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -348,7 +344,6 @@
|
|||||||
"security" : [ {
|
"security" : [ {
|
||||||
"api_key" : [ ]
|
"api_key" : [ ]
|
||||||
} ],
|
} ],
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -414,7 +409,6 @@
|
|||||||
"description" : "Order not found"
|
"description" : "Order not found"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
},
|
},
|
||||||
"delete" : {
|
"delete" : {
|
||||||
@@ -438,7 +432,6 @@
|
|||||||
"description" : "Order not found"
|
"description" : "Order not found"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -566,7 +559,6 @@
|
|||||||
"description" : "Invalid username/password supplied"
|
"description" : "Invalid username/password supplied"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -583,7 +575,6 @@
|
|||||||
"description" : "successful operation"
|
"description" : "successful operation"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -615,7 +606,6 @@
|
|||||||
"description" : "User not found"
|
"description" : "User not found"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
},
|
},
|
||||||
"put" : {
|
"put" : {
|
||||||
@@ -671,7 +661,6 @@
|
|||||||
"description" : "User not found"
|
"description" : "User not found"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ public class Pet {
|
|||||||
private String name = null;
|
private String name = null;
|
||||||
|
|
||||||
@JsonProperty("photoUrls")
|
@JsonProperty("photoUrls")
|
||||||
private List<String> photoUrls = new ArrayList<String>();
|
private List<String> photoUrls = new ArrayList<>();
|
||||||
|
|
||||||
@JsonProperty("tags")
|
@JsonProperty("tags")
|
||||||
private List<Tag> tags = null;
|
private List<Tag> tags = null;
|
||||||
@@ -149,7 +149,7 @@ public class Pet {
|
|||||||
|
|
||||||
public Pet addTagsItem(Tag tagsItem) {
|
public Pet addTagsItem(Tag tagsItem) {
|
||||||
if (tags == null) {
|
if (tags == null) {
|
||||||
tags = new ArrayList<Tag>();
|
tags = new ArrayList<>();
|
||||||
}
|
}
|
||||||
tags.add(tagsItem);
|
tags.add(tagsItem);
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -2,34 +2,34 @@
|
|||||||
# This file defines all application routes (Higher priority routes first)
|
# This file defines all application routes (Higher priority routes first)
|
||||||
# ~~~~
|
# ~~~~
|
||||||
|
|
||||||
GET /api controllers.ApiDocController.api
|
GET /api controllers.ApiDocController.api
|
||||||
|
|
||||||
|
|
||||||
#Functions for Pet API
|
#Functions for Pet API
|
||||||
POST /v2/pet controllers.PetApiController.addPet()
|
POST /v2/pet controllers.PetApiController.addPet()
|
||||||
DELETE /v2/pet/:petId controllers.PetApiController.deletePet(petId: Long)
|
DELETE /v2/pet/:petId controllers.PetApiController.deletePet(petId: Long)
|
||||||
GET /v2/pet/findByStatus controllers.PetApiController.findPetsByStatus()
|
GET /v2/pet/findByStatus controllers.PetApiController.findPetsByStatus()
|
||||||
GET /v2/pet/findByTags controllers.PetApiController.findPetsByTags()
|
GET /v2/pet/findByTags controllers.PetApiController.findPetsByTags()
|
||||||
GET /v2/pet/:petId controllers.PetApiController.getPetById(petId: Long)
|
GET /v2/pet/:petId controllers.PetApiController.getPetById(petId: Long)
|
||||||
PUT /v2/pet controllers.PetApiController.updatePet()
|
PUT /v2/pet controllers.PetApiController.updatePet()
|
||||||
POST /v2/pet/:petId controllers.PetApiController.updatePetWithForm(petId: Long)
|
POST /v2/pet/:petId controllers.PetApiController.updatePetWithForm(petId: Long)
|
||||||
POST /v2/pet/:petId/uploadImage controllers.PetApiController.uploadFile(petId: Long)
|
POST /v2/pet/:petId/uploadImage controllers.PetApiController.uploadFile(petId: Long)
|
||||||
|
|
||||||
#Functions for Store API
|
#Functions for Store API
|
||||||
DELETE /v2/store/order/:orderId controllers.StoreApiController.deleteOrder(orderId: String)
|
DELETE /v2/store/order/:orderId controllers.StoreApiController.deleteOrder(orderId: String)
|
||||||
GET /v2/store/inventory controllers.StoreApiController.getInventory()
|
GET /v2/store/inventory controllers.StoreApiController.getInventory()
|
||||||
GET /v2/store/order/:orderId controllers.StoreApiController.getOrderById(orderId: Long)
|
GET /v2/store/order/:orderId controllers.StoreApiController.getOrderById(orderId: Long)
|
||||||
POST /v2/store/order controllers.StoreApiController.placeOrder()
|
POST /v2/store/order controllers.StoreApiController.placeOrder()
|
||||||
|
|
||||||
#Functions for User API
|
#Functions for User API
|
||||||
POST /v2/user controllers.UserApiController.createUser()
|
POST /v2/user controllers.UserApiController.createUser()
|
||||||
POST /v2/user/createWithArray controllers.UserApiController.createUsersWithArrayInput()
|
POST /v2/user/createWithArray controllers.UserApiController.createUsersWithArrayInput()
|
||||||
POST /v2/user/createWithList controllers.UserApiController.createUsersWithListInput()
|
POST /v2/user/createWithList controllers.UserApiController.createUsersWithListInput()
|
||||||
DELETE /v2/user/:username controllers.UserApiController.deleteUser(username: String)
|
DELETE /v2/user/:username controllers.UserApiController.deleteUser(username: String)
|
||||||
GET /v2/user/:username controllers.UserApiController.getUserByName(username: String)
|
GET /v2/user/:username controllers.UserApiController.getUserByName(username: String)
|
||||||
GET /v2/user/login controllers.UserApiController.loginUser()
|
GET /v2/user/login controllers.UserApiController.loginUser()
|
||||||
GET /v2/user/logout controllers.UserApiController.logoutUser()
|
GET /v2/user/logout controllers.UserApiController.logoutUser()
|
||||||
PUT /v2/user/:username controllers.UserApiController.updateUser(username: String)
|
PUT /v2/user/:username controllers.UserApiController.updateUser(username: String)
|
||||||
|
|
||||||
# Map static resources from the /public folder to the /assets URL path
|
# Map static resources from the /public folder to the /assets URL path
|
||||||
GET /assets/*file controllers.Assets.at(file)
|
GET /assets/*file controllers.Assets.at(file)
|
||||||
|
|||||||
@@ -112,8 +112,8 @@
|
|||||||
"type" : "array",
|
"type" : "array",
|
||||||
"items" : {
|
"items" : {
|
||||||
"type" : "string",
|
"type" : "string",
|
||||||
"enum" : [ "available", "pending", "sold" ],
|
"default" : "available",
|
||||||
"default" : "available"
|
"enum" : [ "available", "pending", "sold" ]
|
||||||
},
|
},
|
||||||
"collectionFormat" : "csv"
|
"collectionFormat" : "csv"
|
||||||
} ],
|
} ],
|
||||||
@@ -134,7 +134,6 @@
|
|||||||
"security" : [ {
|
"security" : [ {
|
||||||
"petstore_auth" : [ "write:pets", "read:pets" ]
|
"petstore_auth" : [ "write:pets", "read:pets" ]
|
||||||
} ],
|
} ],
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -174,7 +173,6 @@
|
|||||||
"petstore_auth" : [ "write:pets", "read:pets" ]
|
"petstore_auth" : [ "write:pets", "read:pets" ]
|
||||||
} ],
|
} ],
|
||||||
"deprecated" : true,
|
"deprecated" : true,
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -210,7 +208,6 @@
|
|||||||
"security" : [ {
|
"security" : [ {
|
||||||
"api_key" : [ ]
|
"api_key" : [ ]
|
||||||
} ],
|
} ],
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
},
|
},
|
||||||
"post" : {
|
"post" : {
|
||||||
@@ -278,7 +275,6 @@
|
|||||||
"security" : [ {
|
"security" : [ {
|
||||||
"petstore_auth" : [ "write:pets", "read:pets" ]
|
"petstore_auth" : [ "write:pets", "read:pets" ]
|
||||||
} ],
|
} ],
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -348,7 +344,6 @@
|
|||||||
"security" : [ {
|
"security" : [ {
|
||||||
"api_key" : [ ]
|
"api_key" : [ ]
|
||||||
} ],
|
} ],
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -414,7 +409,6 @@
|
|||||||
"description" : "Order not found"
|
"description" : "Order not found"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
},
|
},
|
||||||
"delete" : {
|
"delete" : {
|
||||||
@@ -438,7 +432,6 @@
|
|||||||
"description" : "Order not found"
|
"description" : "Order not found"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -566,7 +559,6 @@
|
|||||||
"description" : "Invalid username/password supplied"
|
"description" : "Invalid username/password supplied"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -583,7 +575,6 @@
|
|||||||
"description" : "successful operation"
|
"description" : "successful operation"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -615,7 +606,6 @@
|
|||||||
"description" : "User not found"
|
"description" : "User not found"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
},
|
},
|
||||||
"put" : {
|
"put" : {
|
||||||
@@ -671,7 +661,6 @@
|
|||||||
"description" : "User not found"
|
"description" : "User not found"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-contentType" : "application/json",
|
|
||||||
"x-accepts" : "application/json"
|
"x-accepts" : "application/json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user