forked from loafle/openapi-generator-original
update apex petstore, add apex to ensure-uptodate
This commit is contained in:
parent
e30f0c9879
commit
5ad318bfae
@ -53,6 +53,7 @@ declare -a scripts=(
|
|||||||
"./bin/go-petstore.sh"
|
"./bin/go-petstore.sh"
|
||||||
"./bin/go-gin-petstore-server.sh"
|
"./bin/go-gin-petstore-server.sh"
|
||||||
"./bin/groovy-petstore.sh"
|
"./bin/groovy-petstore.sh"
|
||||||
|
"./bin/apex-petstore.sh"
|
||||||
#"./bin/elm-petstore-all.sh"
|
#"./bin/elm-petstore-all.sh"
|
||||||
"./bin/meta-codegen.sh"
|
"./bin/meta-codegen.sh"
|
||||||
# OTHERS
|
# OTHERS
|
||||||
|
@ -1 +1 @@
|
|||||||
3.3.3-SNAPSHOT
|
4.0.1-SNAPSHOT
|
@ -2,11 +2,11 @@
|
|||||||
* OpenAPI Petstore
|
* 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.
|
* 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.
|
* 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.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
* OpenAPI Petstore
|
* 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.
|
* 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.
|
* 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.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
* OpenAPI Petstore
|
* 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.
|
* 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.
|
* 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.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
* OpenAPI Petstore
|
* 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.
|
* 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.
|
* 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.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
* OpenAPI Petstore
|
* 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.
|
* 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.
|
* 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.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -28,17 +28,17 @@ public class OASPetApi {
|
|||||||
/**
|
/**
|
||||||
* Add a new pet to the store
|
* 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
|
* @throws OAS.ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public void addPet(Map<String, Object> params) {
|
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> query = new List<OAS.Param>();
|
||||||
List<OAS.Param> form = new List<OAS.Param>();
|
List<OAS.Param> form = new List<OAS.Param>();
|
||||||
|
|
||||||
client.invoke(
|
client.invoke(
|
||||||
'POST', '/pet',
|
'POST', '/pet',
|
||||||
(OASPet) params.get('oaSPet'),
|
(OASPet) params.get('body'),
|
||||||
query, form,
|
query, form,
|
||||||
new Map<String, Object>(),
|
new Map<String, Object>(),
|
||||||
new Map<String, Object>(),
|
new Map<String, Object>(),
|
||||||
@ -157,17 +157,17 @@ public class OASPetApi {
|
|||||||
/**
|
/**
|
||||||
* Update an existing pet
|
* 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
|
* @throws OAS.ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public void updatePet(Map<String, Object> params) {
|
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> query = new List<OAS.Param>();
|
||||||
List<OAS.Param> form = new List<OAS.Param>();
|
List<OAS.Param> form = new List<OAS.Param>();
|
||||||
|
|
||||||
client.invoke(
|
client.invoke(
|
||||||
'PUT', '/pet',
|
'PUT', '/pet',
|
||||||
(OASPet) params.get('oaSPet'),
|
(OASPet) params.get('body'),
|
||||||
query, form,
|
query, form,
|
||||||
new Map<String, Object>(),
|
new Map<String, Object>(),
|
||||||
new Map<String, Object>(),
|
new Map<String, Object>(),
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
* OpenAPI Petstore
|
* 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.
|
* 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.
|
* 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.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -98,18 +98,18 @@ public class OASStoreApi {
|
|||||||
/**
|
/**
|
||||||
* Place an order for a pet
|
* 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
|
* @return OASOrder
|
||||||
* @throws OAS.ApiException if fails to make API call
|
* @throws OAS.ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public OASOrder placeOrder(Map<String, Object> params) {
|
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> query = new List<OAS.Param>();
|
||||||
List<OAS.Param> form = new List<OAS.Param>();
|
List<OAS.Param> form = new List<OAS.Param>();
|
||||||
|
|
||||||
return (OASOrder) client.invoke(
|
return (OASOrder) client.invoke(
|
||||||
'POST', '/store/order',
|
'POST', '/store/order',
|
||||||
(OASOrder) params.get('oaSOrder'),
|
(OASOrder) params.get('body'),
|
||||||
query, form,
|
query, form,
|
||||||
new Map<String, Object>(),
|
new Map<String, Object>(),
|
||||||
new Map<String, Object>(),
|
new Map<String, Object>(),
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
* OpenAPI Petstore
|
* 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.
|
* 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.
|
* 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.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
* OpenAPI Petstore
|
* 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.
|
* 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.
|
* 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.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
* OpenAPI Petstore
|
* 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.
|
* 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.
|
* 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.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -28,17 +28,17 @@ public class OASUserApi {
|
|||||||
/**
|
/**
|
||||||
* Create user
|
* Create user
|
||||||
* This can only be done by the logged in 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
|
* @throws OAS.ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public void createUser(Map<String, Object> params) {
|
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> query = new List<OAS.Param>();
|
||||||
List<OAS.Param> form = new List<OAS.Param>();
|
List<OAS.Param> form = new List<OAS.Param>();
|
||||||
|
|
||||||
client.invoke(
|
client.invoke(
|
||||||
'POST', '/user',
|
'POST', '/user',
|
||||||
(OASUser) params.get('oaSUser'),
|
(OASUser) params.get('body'),
|
||||||
query, form,
|
query, form,
|
||||||
new Map<String, Object>(),
|
new Map<String, Object>(),
|
||||||
new Map<String, Object>(),
|
new Map<String, Object>(),
|
||||||
@ -51,17 +51,17 @@ public class OASUserApi {
|
|||||||
/**
|
/**
|
||||||
* Creates list of users with given input array
|
* 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
|
* @throws OAS.ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public void createUsersWithArrayInput(Map<String, Object> params) {
|
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> query = new List<OAS.Param>();
|
||||||
List<OAS.Param> form = new List<OAS.Param>();
|
List<OAS.Param> form = new List<OAS.Param>();
|
||||||
|
|
||||||
client.invoke(
|
client.invoke(
|
||||||
'POST', '/user/createWithArray',
|
'POST', '/user/createWithArray',
|
||||||
(List<OASUser>) params.get('oaSUser'),
|
(List<OASUser>) params.get('body'),
|
||||||
query, form,
|
query, form,
|
||||||
new Map<String, Object>(),
|
new Map<String, Object>(),
|
||||||
new Map<String, Object>(),
|
new Map<String, Object>(),
|
||||||
@ -74,17 +74,17 @@ public class OASUserApi {
|
|||||||
/**
|
/**
|
||||||
* Creates list of users with given input array
|
* 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
|
* @throws OAS.ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public void createUsersWithListInput(Map<String, Object> params) {
|
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> query = new List<OAS.Param>();
|
||||||
List<OAS.Param> form = new List<OAS.Param>();
|
List<OAS.Param> form = new List<OAS.Param>();
|
||||||
|
|
||||||
client.invoke(
|
client.invoke(
|
||||||
'POST', '/user/createWithList',
|
'POST', '/user/createWithList',
|
||||||
(List<OASUser>) params.get('oaSUser'),
|
(List<OASUser>) params.get('body'),
|
||||||
query, form,
|
query, form,
|
||||||
new Map<String, Object>(),
|
new Map<String, Object>(),
|
||||||
new Map<String, Object>(),
|
new Map<String, Object>(),
|
||||||
@ -197,18 +197,18 @@ public class OASUserApi {
|
|||||||
* Updated user
|
* Updated user
|
||||||
* This can only be done by the logged in user.
|
* This can only be done by the logged in user.
|
||||||
* @param username name that need to be deleted (required)
|
* @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
|
* @throws OAS.ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public void updateUser(Map<String, Object> params) {
|
public void updateUser(Map<String, Object> params) {
|
||||||
client.assertNotNull(params.get('username'), 'username');
|
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> query = new List<OAS.Param>();
|
||||||
List<OAS.Param> form = new List<OAS.Param>();
|
List<OAS.Param> form = new List<OAS.Param>();
|
||||||
|
|
||||||
client.invoke(
|
client.invoke(
|
||||||
'PUT', '/user/{username}',
|
'PUT', '/user/{username}',
|
||||||
(OASUser) params.get('oaSUser'),
|
(OASUser) params.get('body'),
|
||||||
query, form,
|
query, form,
|
||||||
new Map<String, Object>{
|
new Map<String, Object>{
|
||||||
'username' => (String) params.get('username')
|
'username' => (String) params.get('username')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user