Skip to content

Commit

Permalink
feat(codegen): Use new REST API with Application Link create/update (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
vhemery authored Jul 17, 2024
1 parent 905aeb8 commit b8b95d5
Show file tree
Hide file tree
Showing 205 changed files with 1,205 additions and 1,168 deletions.
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.6.0
7.7.0
2 changes: 1 addition & 1 deletion .openapi-generator/openapi.yaml-default.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
fb8844e490e048802f95c5d95f0865837d9b2a5a24947a4e7426d0eebfed9f2b
fb25da0b01d32a744a0a48d9eb80cb1a24ea5ba4b035982ba1006dbec2cd700b
15 changes: 10 additions & 5 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ info:
name: GPL-v2.0
url: http://www.gnu.org/licenses/gpl-2.0.txt
title: Bonita API
version: 0.0.18
version: 0.0.19
x-logo:
url: images/bonitasoft-logo.svg
backgroundColor: '#19465f'
Expand Down Expand Up @@ -680,7 +680,7 @@ paths:
post:
deprecated: true
description: |
Create a living applications
Create a living application (legacy application or application link).

Warning: as of 9.0.0, creating a living application using this API is deprecated.
operationId: createApplication
Expand All @@ -696,7 +696,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/LegacyApplication'
$ref: '#/components/schemas/Application'
description: 'Success '
"400":
content:
Expand Down Expand Up @@ -877,7 +877,7 @@ paths:
put:
deprecated: true
description: |
Update a single application for the given ID
Update a single application for the given ID (legacy application or application link).

Warning: as of 9.0.0, updating a living application using this API is deprecated.
operationId: updateApplicationById
Expand All @@ -904,7 +904,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/LegacyApplication'
$ref: '#/components/schemas/Application'
description: 'Success '
"400":
content:
Expand Down Expand Up @@ -17393,12 +17393,17 @@ components:
x-one-of-name: Application
CreateApplicationRequest:
example:
link: "false"
version: "1.0"
profileId: "2"
token: myapp
displayName: My app
description: My application description
properties:
link:
default: false
description: "true for an application link, false for a legacy application"
type: boolean
description:
description: description of the application
type: string
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<!-- Bonita -->
<bonita-openapi.version>0.0.18</bonita-openapi.version>
<bonita-openapi.version>0.0.19</bonita-openapi.version>
<swagger-annotations.version>1.6.14</swagger-annotations.version>
<jakarta-annotation.version>3.0.0</jakarta-annotation.version>
<jsr305.version>3.0.2</jsr305.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

import feign.*;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public interface ActivityApi extends ApiClient.Api {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

import feign.*;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public interface ActivityVariableApi extends ApiClient.Api {

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/bonitasoft/web/client/api/ActorApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

import feign.*;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public interface ActorApi extends ApiClient.Api {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

import feign.*;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public interface ActorMemberApi extends ApiClient.Api {

/**
Expand Down
25 changes: 13 additions & 12 deletions src/main/java/org/bonitasoft/web/client/api/ApplicationApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,18 @@
import org.bonitasoft.web.client.model.Application;
import org.bonitasoft.web.client.model.ApplicationUpdateRequest;
import org.bonitasoft.web.client.model.CreateApplicationRequest;
import org.bonitasoft.web.client.model.LegacyApplication;

import feign.*;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public interface ApplicationApi extends ApiClient.Api {

/**
* Create a living application
* Create a living applications Warning: as of 9.0.0, creating a living application using this API is deprecated.
* Create a living application (legacy application or application link). Warning: as of 9.0.0, creating a living application using this API is deprecated.
*
* @param body Partial living application description (required)
* @return LegacyApplication
* @return Application
* @deprecated
*/
@Deprecated
Expand All @@ -47,12 +46,12 @@ public interface ApplicationApi extends ApiClient.Api {
"Content-Type: application/json",
"Accept: application/json",
})
LegacyApplication createApplication(CreateApplicationRequest body);
Application createApplication(CreateApplicationRequest body);

/**
* Create a living application
* Similar to <code>createApplication</code> but it also returns the http response headers .
* Create a living applications Warning: as of 9.0.0, creating a living application using this API is deprecated.
* Create a living application (legacy application or application link). Warning: as of 9.0.0, creating a living application using this API is deprecated.
*
* @param body Partial living application description (required)
* @return A ApiResponse that wraps the response boyd and the http headers.
Expand All @@ -64,7 +63,7 @@ public interface ApplicationApi extends ApiClient.Api {
"Content-Type: application/json",
"Accept: application/json",
})
ApiResponse<LegacyApplication> createApplicationWithHttpInfo(CreateApplicationRequest body);
ApiResponse<Application> createApplicationWithHttpInfo(CreateApplicationRequest body);

/**
* Delete a living application by ID
Expand Down Expand Up @@ -292,11 +291,12 @@ public SearchApplicationsQueryParams s(final String value) {

/**
* Update a living application by ID
* Update a single application for the given ID Warning: as of 9.0.0, updating a living application using this API is deprecated.
* Update a single application for the given ID (legacy application or application link). Warning: as of 9.0.0, updating a living application using this API is
* deprecated.
*
* @param id ID of application to return (required)
* @param applicationUpdateRequest Partial living application description (required)
* @return LegacyApplication
* @return Application
* @deprecated
*/
@Deprecated
Expand All @@ -305,12 +305,13 @@ public SearchApplicationsQueryParams s(final String value) {
"Content-Type: application/json",
"Accept: application/json",
})
LegacyApplication updateApplicationById(@Param("id") String id, ApplicationUpdateRequest applicationUpdateRequest);
Application updateApplicationById(@Param("id") String id, ApplicationUpdateRequest applicationUpdateRequest);

/**
* Update a living application by ID
* Similar to <code>updateApplicationById</code> but it also returns the http response headers .
* Update a single application for the given ID Warning: as of 9.0.0, updating a living application using this API is deprecated.
* Update a single application for the given ID (legacy application or application link). Warning: as of 9.0.0, updating a living application using this API is
* deprecated.
*
* @param id ID of application to return (required)
* @param applicationUpdateRequest Partial living application description (required)
Expand All @@ -323,7 +324,7 @@ public SearchApplicationsQueryParams s(final String value) {
"Content-Type: application/json",
"Accept: application/json",
})
ApiResponse<LegacyApplication> updateApplicationByIdWithHttpInfo(@Param("id") String id,
ApiResponse<Application> updateApplicationByIdWithHttpInfo(@Param("id") String id,
ApplicationUpdateRequest applicationUpdateRequest);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import feign.*;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public interface ApplicationMenuApi extends ApiClient.Api {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

import feign.*;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public interface ApplicationPageApi extends ApiClient.Api {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

import feign.*;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public interface ArchivedActivityApi extends ApiClient.Api {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

import feign.*;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public interface ArchivedActivityVariableApi extends ApiClient.Api {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

import feign.*;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public interface ArchivedConnectorInstanceApi extends ApiClient.Api {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

import feign.*;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public interface ArchivedFlowNodeApi extends ApiClient.Api {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

import feign.*;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public interface ArchivedHumanTaskApi extends ApiClient.Api {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

import feign.*;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public interface ArchivedManualTaskApi extends ApiClient.Api {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

import feign.*;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public interface ArchivedProcessInstanceApi extends ApiClient.Api {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

import feign.*;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public interface ArchivedProcessInstanceCommentApi extends ApiClient.Api {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

import feign.*;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public interface ArchivedProcessInstanceDocumentApi extends ApiClient.Api {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

import feign.*;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public interface ArchivedProcessInstanceVariableApi extends ApiClient.Api {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

import feign.*;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public interface ArchivedTaskApi extends ApiClient.Api {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

import feign.*;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public interface ArchivedUserTaskApi extends ApiClient.Api {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

import feign.*;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public interface AuthenticationApi extends ApiClient.Api {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

import feign.*;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public interface BdmAccessControlApi extends ApiClient.Api {

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/bonitasoft/web/client/api/BdmApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

import feign.*;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public interface BdmApi extends ApiClient.Api {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

import feign.*;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public interface BusinessDataQueryApi extends ApiClient.Api {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

import feign.*;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public interface ConnectorFailureApi extends ApiClient.Api {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

import feign.*;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public interface ConnectorInstanceApi extends ApiClient.Api {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

import feign.*;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public interface CustomUserApi extends ApiClient.Api {

/**
Expand Down
Loading

0 comments on commit b8b95d5

Please sign in to comment.