Skip to content

Commit

Permalink
tr(apis): deprecate some old apis (#64)
Browse files Browse the repository at this point in the history
* tr(cleanup): remove deprecated apis

* tenant
* theme
* profileEntry

* Integrate code review feedbacks
  • Loading branch information
educhastenier authored Nov 10, 2022
1 parent 7a3926e commit 8446135
Show file tree
Hide file tree
Showing 14 changed files with 53 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ This repository structure was inspired by https://github.com/Redocly/create-open
== Live Documentation

The api descriptor file can be used to render documentation sites. Those sites have different rendering and may show different parts of the specification file.
That's the reason why it is interessting to test and evaluate differents sites and rendering.
That's the reason why it is interesting to test and evaluate different sites and rendering.

You 'll need to install the https://github.com/redocly/openapi-cli[openapi-cli] to be able to work on the specification.

Expand Down
2 changes: 1 addition & 1 deletion openapi/components/schemas/SystemTenant.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ properties:
description: "system tenant id"
type: string
paused:
description: "wether the system tenant is paused or not"
description: "whether the system tenant is paused or not"
type: boolean
example:
id: 1
Expand Down
3 changes: 2 additions & 1 deletion openapi/components/schemas/Tenant.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
type: object
description: ""
deprecated: true
description: "Since Bonita 7.12, tenant management is deprecated"
properties:
id:
description: "id of the tenant"
Expand Down
2 changes: 2 additions & 0 deletions openapi/components/schemas/TenantCreateRequest.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
type: object
deprecated: true
description: "Since Bonita 7.12, tenant creation is deprecated"
properties:
name:
description: "the name of the tenant"
Expand Down
15 changes: 13 additions & 2 deletions openapi/components/schemas/TenantUpdateRequest.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
type: object
deprecated: true
description: "Since Bonita 7.12, tenant update is deprecated"
properties:
name:
description: "the name of the tenant"
Expand All @@ -13,8 +15,17 @@ properties:
description: "the password"
type: string
format: password
icon:
description: "the path of the icon"
type: string
state:
description: "the tenant state"
type: string
enum: [ ACTIVATED, DEACTIVATED ]
example:
name: "MyTenant"
description: "My tenant"
description: "My new tenant description"
username: "john"
password: "bpm"
password: "bpm"
icon: "/default.png"
state: "ACTIVATED"
2 changes: 2 additions & 0 deletions openapi/components/schemas/ThemeCreateRequest.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
type: object
deprecated: true
description: "Since Bonita 7.13, theme management is deprecated"
properties:
type:
description: theme type
Expand Down
2 changes: 2 additions & 0 deletions openapi/components/schemas/ThemeRestoreRequest.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
type: object
deprecated: true
description: "Since Bonita 7.13, theme management is deprecated"
properties:
type:
description: theme type
Expand Down
2 changes: 1 addition & 1 deletion openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ info:
license:
name: GPL-v2.0
url: 'http://www.gnu.org/licenses/gpl-2.0.txt'
version: 0.0.9
version: 0.0.10
title: Bonita HTTP API
description:
# Ignore IDE warnings
Expand Down
8 changes: 7 additions & 1 deletion openapi/paths/API@[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ get:
tags:
- Tenant
summary: Finds Tenants
deprecated: true
description: |
![edition](https://img.shields.io/badge/edition-entreprise-blue)
Expand All @@ -10,6 +11,8 @@ get:
- can order on `id`
- can search on `displayName`
- can filter on `displayName`
Warning: Since Bonita 7.12, multi-tenancy is deprecated
operationId: searchTenants
parameters:
Expand Down Expand Up @@ -45,10 +48,13 @@ post:
tags:
- Tenant
summary: Create the Tenant
deprecated: true
description: |
![edition](https://img.shields.io/badge/edition-entreprise-blue)
Create the Tenant
Create the Tenant.
Warning: Since Bonita 7.12, multi-tenancy is deprecated. Creating new tenants is strongly discouraged.
operationId: createTenant
requestBody:
content:
Expand Down
12 changes: 9 additions & 3 deletions openapi/paths/API@platform@tenant@{id}.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ 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
Expand Down Expand Up @@ -35,13 +37,16 @@ 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-entreprise-blue) ![edition](https://img.shields.io/badge/edition-community-brightgreen)
Update a Tenant
Update the Tenant for the given ID
Warning: Since Bonita 7.12, multi-tenancy is deprecated
operationId: updateTenantById
parameters:
- description: ID of the Tenant to return
- 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
Expand Down Expand Up @@ -71,6 +76,7 @@ delete:
tags:
- Tenant
summary: Delete the Tenant by ID
deprecated: true
description: |
![edition](https://img.shields.io/badge/edition-entreprise-blue)
Expand Down
4 changes: 4 additions & 0 deletions openapi/paths/API@[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ 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'
Expand Down Expand Up @@ -41,8 +43,10 @@ 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:
Expand Down
5 changes: 5 additions & 0 deletions openapi/paths/API@portal@profileEntry@{id}.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ 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
Expand Down Expand Up @@ -33,8 +35,10 @@ 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
Expand Down Expand Up @@ -67,6 +71,7 @@ delete:
tags:
- ProfileEntry
summary: Delete the ProfileEntry by ID
deprecated: true
description: |
Delete the single ProfileEntry for the given ID
operationId: deleteProfileEntryById
Expand Down
2 changes: 2 additions & 0 deletions openapi/paths/API@[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ 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:
Expand Down
2 changes: 2 additions & 0 deletions openapi/paths/API@portal@[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ 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:
Expand Down

0 comments on commit 8446135

Please sign in to comment.