diff --git a/openapi/components/schemas/ApplicationUpdateRequest.yaml b/openapi/components/schemas/ApplicationUpdateRequest.yaml index a90511a..c762237 100644 --- a/openapi/components/schemas/ApplicationUpdateRequest.yaml +++ b/openapi/components/schemas/ApplicationUpdateRequest.yaml @@ -21,9 +21,17 @@ properties: theme id for the application type: string + layoutId: + description: | + ![edition](https://img.shields.io/badge/edition-entreprise-blue) + + layout id for the application + type: string example: version: "1.0" profileId: "2" token: "myapp" displayName: "My app" - description: "My application description" \ No newline at end of file + description: "My application description" + themeId: "2" + layoutId: "17" \ No newline at end of file diff --git a/openapi/components/schemas/ProfileEntry.yaml b/openapi/components/schemas/ProfileEntry.yaml deleted file mode 100644 index 74538cd..0000000 --- a/openapi/components/schemas/ProfileEntry.yaml +++ /dev/null @@ -1,33 +0,0 @@ -type: object -description: "Profile entry" -properties: - id: - description: "profileEntry id" - type: string - icon: - description: "icon used in the portal to represent a profileEntry" - type: string - index: - description: "position in a menu" - type: string - profile_id: - description: "id of the profile that contains this profileEntry" - type: string - page: - description: "pageToken (menu name or menu item name) used in a portal menu to identify the page associated with the profileEntry" - type: string - description: - description: "description" - type: string - name: - description: "name of the profileEntry" - type: string - type: - description: "link (if menu item) | folder (if menu)" - type: string - isCustom: - description: " true | false " - type: boolean - parent_id: - description: "id or parent profileEntry if in a folder" - type: string \ No newline at end of file diff --git a/openapi/components/schemas/ProfileEntryCreateRequest.yaml b/openapi/components/schemas/ProfileEntryCreateRequest.yaml deleted file mode 100644 index 9143f2a..0000000 --- a/openapi/components/schemas/ProfileEntryCreateRequest.yaml +++ /dev/null @@ -1,30 +0,0 @@ -type: object -properties: - profile_id: - description: "id of the profile that contains this profileEntry" - type: string - page: - description: "pageToken (menu name or menu item name) used in a portal menu to identify the page associated with the profileEntry" - type: string - description: - description: "description" - type: string - name: - description: "name of the profileEntry" - type: string - type: - description: "link (if menu item) | folder (if menu)" - type: string - isCustom: - description: " true | false " - type: boolean - parent_id: - description: "id or parent profileEntry if in a folder" - type: string -example: - page: "tasklistingadmin" - parent_id: "0" - name: "Test menu" - profile_id: "102" - type: "link" - isCustom: false \ No newline at end of file diff --git a/openapi/components/schemas/ProfileEntryUpdateRequest.yaml b/openapi/components/schemas/ProfileEntryUpdateRequest.yaml deleted file mode 100644 index 9143f2a..0000000 --- a/openapi/components/schemas/ProfileEntryUpdateRequest.yaml +++ /dev/null @@ -1,30 +0,0 @@ -type: object -properties: - profile_id: - description: "id of the profile that contains this profileEntry" - type: string - page: - description: "pageToken (menu name or menu item name) used in a portal menu to identify the page associated with the profileEntry" - type: string - description: - description: "description" - type: string - name: - description: "name of the profileEntry" - type: string - type: - description: "link (if menu item) | folder (if menu)" - type: string - isCustom: - description: " true | false " - type: boolean - parent_id: - description: "id or parent profileEntry if in a folder" - type: string -example: - page: "tasklistingadmin" - parent_id: "0" - name: "Test menu" - profile_id: "102" - type: "link" - isCustom: false \ No newline at end of file diff --git a/openapi/components/schemas/Tenant.yaml b/openapi/components/schemas/Tenant.yaml deleted file mode 100644 index 3ab3d9d..0000000 --- a/openapi/components/schemas/Tenant.yaml +++ /dev/null @@ -1,39 +0,0 @@ -type: object -deprecated: true -description: "Since Bonita 7.12, tenant management is deprecated" -properties: - id: - description: "id of the tenant" - type: string - creation: - description: "the creation date" - type: string - icon: - description: "the path of the icon" - type: string - name: - description: "the name of the tenant" - type: string - description: - description: "the description" - type: string - username: - description: "the username" - type: string - password: - description: "the password" - type: string - format: password - state: - description: "the tenant state" - type: string - enum: [ ACTIVATED, DEACTIVATED ] -example: - id: 1 - creation: "2014-12-04 15:46:46.256" - icon: "/default.png" - username: "" - description: "Default tenant" - name: "default" - state: "ACTIVATED" - password: "" \ No newline at end of file diff --git a/openapi/components/schemas/TenantCreateRequest.yaml b/openapi/components/schemas/TenantCreateRequest.yaml deleted file mode 100644 index d33e6ac..0000000 --- a/openapi/components/schemas/TenantCreateRequest.yaml +++ /dev/null @@ -1,22 +0,0 @@ -type: object -deprecated: true -description: "Since Bonita 7.12, tenant creation is deprecated" -properties: - name: - description: "the name of the tenant" - type: string - description: - description: "the description" - type: string - username: - description: "the username" - type: string - password: - description: "the password" - type: string - format: password -example: - name: "MyTenant" - description: "My tenant" - username: "john" - password: "bpm" \ No newline at end of file diff --git a/openapi/components/schemas/TenantUpdateRequest.yaml b/openapi/components/schemas/TenantUpdateRequest.yaml index 6d75e37..05a62ed 100644 --- a/openapi/components/schemas/TenantUpdateRequest.yaml +++ b/openapi/components/schemas/TenantUpdateRequest.yaml @@ -1,31 +1,8 @@ type: object -deprecated: true -description: "Since Bonita 7.12, tenant update is deprecated" properties: - name: - description: "the name of the tenant" - type: string - description: - description: "the description" - type: string - username: - description: "the username" - type: string - password: - description: "the password" - type: string - format: password - icon: - description: "the path of the icon" - type: string state: - description: "the tenant state" + description: "the new tenant state" type: string enum: [ ACTIVATED, DEACTIVATED ] example: - name: "MyTenant" - description: "My new tenant description" - username: "john" - password: "bpm" - icon: "/default.png" state: "ACTIVATED" \ No newline at end of file diff --git a/openapi/components/schemas/ThemeCreateRequest.yaml b/openapi/components/schemas/ThemeCreateRequest.yaml deleted file mode 100644 index 4157298..0000000 --- a/openapi/components/schemas/ThemeCreateRequest.yaml +++ /dev/null @@ -1,14 +0,0 @@ -type: object -deprecated: true -description: "Since Bonita 7.13, theme management is deprecated" -properties: - type: - description: theme type - type: string - enum: [portal, mobile] - zipFilePathportal: - description: tmp zip file Path as uploaded to portal - type: string -example: - type: "portal" - zipFilePathportal: "tmp_1939634566964075173.zip" \ No newline at end of file diff --git a/openapi/components/schemas/ThemeRestoreRequest.yaml b/openapi/components/schemas/ThemeRestoreRequest.yaml deleted file mode 100644 index eecc5cf..0000000 --- a/openapi/components/schemas/ThemeRestoreRequest.yaml +++ /dev/null @@ -1,10 +0,0 @@ -type: object -deprecated: true -description: "Since Bonita 7.13, theme management is deprecated" -properties: - type: - description: theme type - type: string - enum: [ portal, mobile ] -example: - type: "portal" \ No newline at end of file diff --git a/openapi/openapi.yaml b/openapi/openapi.yaml index 0d68a2a..8fa2070 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -3,7 +3,7 @@ info: license: name: GPL-v2.0 url: 'http://www.gnu.org/licenses/gpl-2.0.txt' - version: 0.0.10 + version: 0.0.11 title: Bonita HTTP API description: # Ignore IDE warnings @@ -103,9 +103,7 @@ x-tagGroups: tags: - Page - Profile - - ProfileEntry - ProfileMember - - Theme - Upload - name: System @@ -313,9 +311,6 @@ tags: - name: Profile x-displayName: Profile description: Profile - - name: ProfileEntry - x-displayName: ProfileEntry - description: ProfileEntry - name: ProfileMember x-displayName: ProfileMember description: ProfileMember @@ -334,9 +329,6 @@ tags: - name: Tenant x-displayName: Tenant description: Handle the tenants (**Enterprise editions only**). This requires a platform session. Log in using the platform login service. - - name: Theme - x-displayName: Theme - description: Theme - name: TimerEventTrigger x-displayName: TimerEventTrigger description: TimerEventTrigger @@ -602,8 +594,6 @@ paths: $ref: './paths/platform@platform@unusedid.yaml' /API/platform/tenant: $ref: './paths/API@platform@tenant.yaml' - /API/platform/tenant/{id}: - $ref: './paths/API@platform@tenant@{id}.yaml' /API/platform/license: $ref: './paths/API@platform@license.yaml' @@ -624,18 +614,10 @@ paths: $ref: './paths/API@portal@profile.yaml' /API/portal/profile/{id}: $ref: './paths/API@portal@profile@{id}.yaml' - /API/portal/profileEntry: - $ref: './paths/API@portal@profileEntry.yaml' - /API/portal/profileEntry/{id}: - $ref: './paths/API@portal@profileEntry@{id}.yaml' /API/portal/profileMember: $ref: './paths/API@portal@profileMember.yaml' /API/portal/profileMember/{id}: $ref: './paths/API@portal@profileMember@{id}.yaml' - /API/portal/theme: - $ref: './paths/API@portal@theme.yaml' - /API/portal/theme/unusedId: - $ref: './paths/API@portal@theme@unusedId.yaml' # ======================= # SYSTEM API # ======================= diff --git a/openapi/paths/API@platform@tenant.yaml b/openapi/paths/API@platform@tenant.yaml index 9184d0a..4e5d241 100644 --- a/openapi/paths/API@platform@tenant.yaml +++ b/openapi/paths/API@platform@tenant.yaml @@ -1,81 +1,30 @@ -get: +put: tags: - Tenant - summary: Finds Tenants - deprecated: true + summary: Update the Tenant description: | - ![edition](https://img.shields.io/badge/edition-entreprise-blue) + ![edition](https://img.shields.io/badge/edition-entreprise-blue) ![edition](https://img.shields.io/badge/edition-community-brightgreen) - Finds Tenants with pagination params and filters + Update the state of a Tenant - - can order on `id` - - can search on `displayName` - - can filter on `displayName` - - Warning: Since Bonita 7.12, multi-tenancy is deprecated - - operationId: searchTenants - parameters: - - $ref: '../components/parameters/pageIndex.yaml' - - $ref: '../components/parameters/pageCount.yaml' - - $ref: '../components/parameters/pageFilter.yaml' - - $ref: '../components/parameters/pageOrder.yaml' - - $ref: '../components/parameters/pageSearch.yaml' - responses: - '200': - description: "Success " - headers: - Content-Range: - schema: - type: integer - format: int64 - description: The total number of matching items - content: - application/json: - schema: - type: array - items: - $ref: '../components/schemas/Tenant.yaml' - '401': - $ref: '../components/responses/Unauthorized.yaml' - '403': - $ref: '../components/responses/Forbidden.yaml' - '400': - $ref: '../components/responses/BadRequest.yaml' - '5XX': - $ref: '../components/responses/ServerError.yaml' -post: - tags: - - Tenant - summary: Create the Tenant - deprecated: true - description: | - ![edition](https://img.shields.io/badge/edition-entreprise-blue) - - Create the Tenant. - - Warning: Since Bonita 7.12, multi-tenancy is deprecated. Creating new tenants is strongly discouraged. - operationId: createTenant + operationId: updateTenant requestBody: content: application/json: schema: - $ref: '../components/schemas/TenantCreateRequest.yaml' + $ref: '../components/schemas/TenantUpdateRequest.yaml' description: Partial Tenant description required: true responses: '200': - content: - application/json: - schema: - $ref: '../components/schemas/Tenant.yaml' - description: "Success " + $ref: '../components/responses/OK.yaml' '401': $ref: '../components/responses/Unauthorized.yaml' '403': $ref: '../components/responses/Forbidden.yaml' '400': $ref: '../components/responses/BadRequest.yaml' + '404': + $ref: '../components/responses/NotFound.yaml' '5XX': - $ref: '../components/responses/ServerError.yaml' - x-codegen-request-body-name: body + $ref: '../components/responses/ServerError.yaml' \ No newline at end of file diff --git a/openapi/paths/API@platform@tenant@{id}.yaml b/openapi/paths/API@platform@tenant@{id}.yaml deleted file mode 100644 index a46836b..0000000 --- a/openapi/paths/API@platform@tenant@{id}.yaml +++ /dev/null @@ -1,104 +0,0 @@ -get: - tags: - - Tenant - summary: Finds the Tenant by ID - deprecated: true - description: | - ![edition](https://img.shields.io/badge/edition-entreprise-blue) - - Returns the single Tenant for the given ID - Warning: Since Bonita 7.12, multi-tenancy is deprecated - operationId: getTenantById - parameters: - - description: ID of the Tenant to return - in: path - name: id - required: true - schema: - type: string - responses: - '200': - description: "Success " - content: - application/json: - schema: - $ref: '../components/schemas/Tenant.yaml' - '401': - $ref: '../components/responses/Unauthorized.yaml' - '403': - $ref: '../components/responses/Forbidden.yaml' - '400': - $ref: '../components/responses/BadRequest.yaml' - '404': - $ref: '../components/responses/NotFound.yaml' - '5XX': - $ref: '../components/responses/ServerError.yaml' -put: - tags: - - Tenant - summary: Update the Tenant by ID - deprecated: true - description: | - ![edition](https://img.shields.io/badge/edition-entreprise-blue) ![edition](https://img.shields.io/badge/edition-community-brightgreen) - - Update a Tenant - - Warning: Since Bonita 7.12, multi-tenancy is deprecated - operationId: updateTenantById - parameters: - - description: ID of the Tenant to update. In Subscription edition, it is mandatory; not in Community edition, as there is only one tenant - in: path - name: id - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '../components/schemas/TenantUpdateRequest.yaml' - description: Partial Tenant description - required: true - responses: - '200': - $ref: '../components/responses/OK.yaml' - '401': - $ref: '../components/responses/Unauthorized.yaml' - '403': - $ref: '../components/responses/Forbidden.yaml' - '400': - $ref: '../components/responses/BadRequest.yaml' - '404': - $ref: '../components/responses/NotFound.yaml' - '5XX': - $ref: '../components/responses/ServerError.yaml' -delete: - tags: - - Tenant - summary: Delete the Tenant by ID - deprecated: true - description: | - ![edition](https://img.shields.io/badge/edition-entreprise-blue) - - Delete the single Tenant for the given ID - operationId: deleteTenantById - parameters: - - description: ID of the Tenant to delete - in: path - name: id - required: true - schema: - type: string - responses: - '200': - $ref: '../components/responses/OK.yaml' - '401': - $ref: '../components/responses/Unauthorized.yaml' - '403': - $ref: '../components/responses/Forbidden.yaml' - '400': - $ref: '../components/responses/BadRequest.yaml' - '404': - $ref: '../components/responses/NotFound.yaml' - '5XX': - $ref: '../components/responses/ServerError.yaml' diff --git a/openapi/paths/API@portal@profileEntry.yaml b/openapi/paths/API@portal@profileEntry.yaml deleted file mode 100644 index f23c2be..0000000 --- a/openapi/paths/API@portal@profileEntry.yaml +++ /dev/null @@ -1,73 +0,0 @@ -get: - tags: - - ProfileEntry - summary: Finds ProfileEntries - deprecated: true - description: | - Finds ProfileEntries with pagination params and filters - - - can search on `name` - - can filter on `page`,`name` and `parent_id` - - Warning: Since Bonita 7.13, ProfileEntry is deprecated - operationId: searchProfileEntries - parameters: - - $ref: '../components/parameters/pageIndex.yaml' - - $ref: '../components/parameters/pageCount.yaml' - - $ref: '../components/parameters/pageFilter.yaml' - - $ref: '../components/parameters/pageSearch.yaml' - responses: - '200': - description: "Success " - headers: - Content-Range: - schema: - type: integer - format: int64 - description: The total number of matching items - content: - application/json: - schema: - type: array - items: - $ref: '../components/schemas/ProfileEntry.yaml' - '401': - $ref: '../components/responses/Unauthorized.yaml' - '403': - $ref: '../components/responses/Forbidden.yaml' - '400': - $ref: '../components/responses/BadRequest.yaml' - '5XX': - $ref: '../components/responses/ServerError.yaml' -post: - tags: - - ProfileEntry - summary: Create the ProfileEntry - deprecated: true - description: | - Create the ProfileEntry - Warning: Since Bonita 7.13, ProfileEntry is deprecated - operationId: createProfileEntry - requestBody: - content: - application/json: - schema: - $ref: '../components/schemas/ProfileEntryCreateRequest.yaml' - description: Partial ProfileEntry description - required: true - responses: - '200': - content: - application/json: - schema: - $ref: '../components/schemas/ProfileEntry.yaml' - description: "Success " - '401': - $ref: '../components/responses/Unauthorized.yaml' - '403': - $ref: '../components/responses/Forbidden.yaml' - '400': - $ref: '../components/responses/BadRequest.yaml' - '5XX': - $ref: '../components/responses/ServerError.yaml' - x-codegen-request-body-name: body diff --git a/openapi/paths/API@portal@profileEntry@{id}.yaml b/openapi/paths/API@portal@profileEntry@{id}.yaml deleted file mode 100644 index 7d775b8..0000000 --- a/openapi/paths/API@portal@profileEntry@{id}.yaml +++ /dev/null @@ -1,97 +0,0 @@ -get: - tags: - - ProfileEntry - summary: Finds the ProfileEntry by ID - deprecated: true - description: | - Returns the single ProfileEntry for the given ID - Warning: Since Bonita 7.13, ProfileEntry is deprecated - operationId: getProfileEntryById - parameters: - - description: ID of the ProfileEntry to return - in: path - name: id - required: true - schema: - type: string - responses: - '200': - description: "Success " - content: - application/json: - schema: - $ref: '../components/schemas/ProfileEntry.yaml' - '401': - $ref: '../components/responses/Unauthorized.yaml' - '403': - $ref: '../components/responses/Forbidden.yaml' - '400': - $ref: '../components/responses/BadRequest.yaml' - '404': - $ref: '../components/responses/NotFound.yaml' - '5XX': - $ref: '../components/responses/ServerError.yaml' -put: - tags: - - ProfileEntry - summary: Update the ProfileEntry by ID - deprecated: true - description: | - Update the ProfileEntry for the given ID - Warning: Since Bonita 7.13, ProfileEntry is deprecated - operationId: updateProfileEntryById - parameters: - - description: ID of the ProfileEntry to return - in: path - name: id - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '../components/schemas/ProfileEntryUpdateRequest.yaml' - description: Partial ProfileEntry description - required: true - responses: - '200': - $ref: '../components/responses/OK.yaml' - '401': - $ref: '../components/responses/Unauthorized.yaml' - '403': - $ref: '../components/responses/Forbidden.yaml' - '400': - $ref: '../components/responses/BadRequest.yaml' - '404': - $ref: '../components/responses/NotFound.yaml' - '5XX': - $ref: '../components/responses/ServerError.yaml' -delete: - tags: - - ProfileEntry - summary: Delete the ProfileEntry by ID - deprecated: true - description: | - Delete the single ProfileEntry for the given ID - operationId: deleteProfileEntryById - parameters: - - description: ID of the ProfileEntry to delete - in: path - name: id - required: true - schema: - type: string - responses: - '200': - $ref: '../components/responses/OK.yaml' - '401': - $ref: '../components/responses/Unauthorized.yaml' - '403': - $ref: '../components/responses/Forbidden.yaml' - '400': - $ref: '../components/responses/BadRequest.yaml' - '404': - $ref: '../components/responses/NotFound.yaml' - '5XX': - $ref: '../components/responses/ServerError.yaml' diff --git a/openapi/paths/API@portal@theme.yaml b/openapi/paths/API@portal@theme.yaml deleted file mode 100644 index 0a9f96b..0000000 --- a/openapi/paths/API@portal@theme.yaml +++ /dev/null @@ -1,28 +0,0 @@ -post: - tags: - - Theme - summary: Create the Theme - deprecated: true - description: | - Create the Theme - Warning: Since Bonita 7.13, theme management is deprecated - operationId: createTheme - requestBody: - content: - application/json: - schema: - $ref: '../components/schemas/ThemeCreateRequest.yaml' - description: Partial Theme description - required: true - responses: - '200': - $ref: '../components/responses/OK.yaml' - '401': - $ref: '../components/responses/Unauthorized.yaml' - '403': - $ref: '../components/responses/Forbidden.yaml' - '400': - $ref: '../components/responses/BadRequest.yaml' - '5XX': - $ref: '../components/responses/ServerError.yaml' - x-codegen-request-body-name: body diff --git a/openapi/paths/API@portal@theme@unusedId.yaml b/openapi/paths/API@portal@theme@unusedId.yaml deleted file mode 100644 index 0d079f4..0000000 --- a/openapi/paths/API@portal@theme@unusedId.yaml +++ /dev/null @@ -1,30 +0,0 @@ -put: - tags: - - Theme - summary: Restore default Theme - deprecated: true - description: | - Restore the default theme - Warning: Since Bonita 7.13, theme management is deprecated - operationId: restoreTheme - requestBody: - content: - application/json: - schema: - $ref: '../components/schemas/ThemeRestoreRequest.yaml' - - description: Partial Theme description - required: true - responses: - '200': - $ref: '../components/responses/OK.yaml' - '401': - $ref: '../components/responses/Unauthorized.yaml' - '403': - $ref: '../components/responses/Forbidden.yaml' - '400': - $ref: '../components/responses/BadRequest.yaml' - '404': - $ref: '../components/responses/NotFound.yaml' - '5XX': - $ref: '../components/responses/ServerError.yaml'