update apex petstore, add apex to ensure-uptodate

This commit is contained in:
William Cheng 2019-05-20 21:34:54 +08:00
parent e30f0c9879
commit 5ad318bfae
11 changed files with 41 additions and 40 deletions

View File

@ -53,6 +53,7 @@ declare -a scripts=(
"./bin/go-petstore.sh"
"./bin/go-gin-petstore-server.sh"
"./bin/groovy-petstore.sh"
"./bin/apex-petstore.sh"
#"./bin/elm-petstore-all.sh"
"./bin/meta-codegen.sh"
# OTHERS

View File

@ -1 +1 @@
3.3.3-SNAPSHOT
4.0.1-SNAPSHOT

View File

@ -2,11 +2,11 @@
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by the OAS code generator program.
* https://github.com/OAS-api/OAS-codegen.git
* https://github.com/OpenAPITools/openapi-generator
* Do not edit the class manually.
*/

View File

@ -2,11 +2,11 @@
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by the OAS code generator program.
* https://github.com/OAS-api/OAS-codegen.git
* https://github.com/OpenAPITools/openapi-generator
* Do not edit the class manually.
*/

View File

@ -2,11 +2,11 @@
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by the OAS code generator program.
* https://github.com/OAS-api/OAS-codegen.git
* https://github.com/OpenAPITools/openapi-generator
* Do not edit the class manually.
*/

View File

@ -2,11 +2,11 @@
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by the OAS code generator program.
* https://github.com/OAS-api/OAS-codegen.git
* https://github.com/OpenAPITools/openapi-generator
* Do not edit the class manually.
*/

View File

@ -2,11 +2,11 @@
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by the OAS code generator program.
* https://github.com/OAS-api/OAS-codegen.git
* https://github.com/OpenAPITools/openapi-generator
* Do not edit the class manually.
*/
@ -28,17 +28,17 @@ public class OASPetApi {
/**
* Add a new pet to the store
*
* @param oaSPet Pet object that needs to be added to the store (required)
* @param body Pet object that needs to be added to the store (required)
* @throws OAS.ApiException if fails to make API call
*/
public void addPet(Map<String, Object> params) {
client.assertNotNull(params.get('oaSPet'), 'oaSPet');
client.assertNotNull(params.get('body'), 'body');
List<OAS.Param> query = new List<OAS.Param>();
List<OAS.Param> form = new List<OAS.Param>();
client.invoke(
'POST', '/pet',
(OASPet) params.get('oaSPet'),
(OASPet) params.get('body'),
query, form,
new Map<String, Object>(),
new Map<String, Object>(),
@ -157,17 +157,17 @@ public class OASPetApi {
/**
* Update an existing pet
*
* @param oaSPet Pet object that needs to be added to the store (required)
* @param body Pet object that needs to be added to the store (required)
* @throws OAS.ApiException if fails to make API call
*/
public void updatePet(Map<String, Object> params) {
client.assertNotNull(params.get('oaSPet'), 'oaSPet');
client.assertNotNull(params.get('body'), 'body');
List<OAS.Param> query = new List<OAS.Param>();
List<OAS.Param> form = new List<OAS.Param>();
client.invoke(
'PUT', '/pet',
(OASPet) params.get('oaSPet'),
(OASPet) params.get('body'),
query, form,
new Map<String, Object>(),
new Map<String, Object>(),

View File

@ -2,11 +2,11 @@
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by the OAS code generator program.
* https://github.com/OAS-api/OAS-codegen.git
* https://github.com/OpenAPITools/openapi-generator
* Do not edit the class manually.
*/
@ -98,18 +98,18 @@ public class OASStoreApi {
/**
* Place an order for a pet
*
* @param oaSOrder order placed for purchasing the pet (required)
* @param body order placed for purchasing the pet (required)
* @return OASOrder
* @throws OAS.ApiException if fails to make API call
*/
public OASOrder placeOrder(Map<String, Object> params) {
client.assertNotNull(params.get('oaSOrder'), 'oaSOrder');
client.assertNotNull(params.get('body'), 'body');
List<OAS.Param> query = new List<OAS.Param>();
List<OAS.Param> form = new List<OAS.Param>();
return (OASOrder) client.invoke(
'POST', '/store/order',
(OASOrder) params.get('oaSOrder'),
(OASOrder) params.get('body'),
query, form,
new Map<String, Object>(),
new Map<String, Object>(),

View File

@ -2,11 +2,11 @@
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by the OAS code generator program.
* https://github.com/OAS-api/OAS-codegen.git
* https://github.com/OpenAPITools/openapi-generator
* Do not edit the class manually.
*/

View File

@ -2,11 +2,11 @@
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by the OAS code generator program.
* https://github.com/OAS-api/OAS-codegen.git
* https://github.com/OpenAPITools/openapi-generator
* Do not edit the class manually.
*/

View File

@ -2,11 +2,11 @@
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by the OAS code generator program.
* https://github.com/OAS-api/OAS-codegen.git
* https://github.com/OpenAPITools/openapi-generator
* Do not edit the class manually.
*/
@ -28,17 +28,17 @@ public class OASUserApi {
/**
* Create user
* This can only be done by the logged in user.
* @param oaSUser Created user object (required)
* @param body Created user object (required)
* @throws OAS.ApiException if fails to make API call
*/
public void createUser(Map<String, Object> params) {
client.assertNotNull(params.get('oaSUser'), 'oaSUser');
client.assertNotNull(params.get('body'), 'body');
List<OAS.Param> query = new List<OAS.Param>();
List<OAS.Param> form = new List<OAS.Param>();
client.invoke(
'POST', '/user',
(OASUser) params.get('oaSUser'),
(OASUser) params.get('body'),
query, form,
new Map<String, Object>(),
new Map<String, Object>(),
@ -51,17 +51,17 @@ public class OASUserApi {
/**
* Creates list of users with given input array
*
* @param oaSUser List of user object (required)
* @param body List of user object (required)
* @throws OAS.ApiException if fails to make API call
*/
public void createUsersWithArrayInput(Map<String, Object> params) {
client.assertNotNull(params.get('oaSUser'), 'oaSUser');
client.assertNotNull(params.get('body'), 'body');
List<OAS.Param> query = new List<OAS.Param>();
List<OAS.Param> form = new List<OAS.Param>();
client.invoke(
'POST', '/user/createWithArray',
(List<OASUser>) params.get('oaSUser'),
(List<OASUser>) params.get('body'),
query, form,
new Map<String, Object>(),
new Map<String, Object>(),
@ -74,17 +74,17 @@ public class OASUserApi {
/**
* Creates list of users with given input array
*
* @param oaSUser List of user object (required)
* @param body List of user object (required)
* @throws OAS.ApiException if fails to make API call
*/
public void createUsersWithListInput(Map<String, Object> params) {
client.assertNotNull(params.get('oaSUser'), 'oaSUser');
client.assertNotNull(params.get('body'), 'body');
List<OAS.Param> query = new List<OAS.Param>();
List<OAS.Param> form = new List<OAS.Param>();
client.invoke(
'POST', '/user/createWithList',
(List<OASUser>) params.get('oaSUser'),
(List<OASUser>) params.get('body'),
query, form,
new Map<String, Object>(),
new Map<String, Object>(),
@ -197,18 +197,18 @@ public class OASUserApi {
* Updated user
* This can only be done by the logged in user.
* @param username name that need to be deleted (required)
* @param oaSUser Updated user object (required)
* @param body Updated user object (required)
* @throws OAS.ApiException if fails to make API call
*/
public void updateUser(Map<String, Object> params) {
client.assertNotNull(params.get('username'), 'username');
client.assertNotNull(params.get('oaSUser'), 'oaSUser');
client.assertNotNull(params.get('body'), 'body');
List<OAS.Param> query = new List<OAS.Param>();
List<OAS.Param> form = new List<OAS.Param>();
client.invoke(
'PUT', '/user/{username}',
(OASUser) params.get('oaSUser'),
(OASUser) params.get('body'),
query, form,
new Map<String, Object>{
'username' => (String) params.get('username')