Skip to content

Commit

Permalink
tr(cleanup): remove deprecated apis
Browse files Browse the repository at this point in the history
* tenant
* theme
* profileEntry
  • Loading branch information
educhastenier committed Oct 31, 2022
1 parent b127503 commit 8bde0b3
Show file tree
Hide file tree
Showing 16 changed files with 24 additions and 575 deletions.
10 changes: 9 additions & 1 deletion openapi/components/schemas/ApplicationUpdateRequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
description: "My application description"
themeId: "2"
layoutId: "17"
33 changes: 0 additions & 33 deletions openapi/components/schemas/ProfileEntry.yaml

This file was deleted.

30 changes: 0 additions & 30 deletions openapi/components/schemas/ProfileEntryCreateRequest.yaml

This file was deleted.

30 changes: 0 additions & 30 deletions openapi/components/schemas/ProfileEntryUpdateRequest.yaml

This file was deleted.

38 changes: 0 additions & 38 deletions openapi/components/schemas/Tenant.yaml

This file was deleted.

20 changes: 0 additions & 20 deletions openapi/components/schemas/TenantCreateRequest.yaml

This file was deleted.

20 changes: 4 additions & 16 deletions openapi/components/schemas/TenantUpdateRequest.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,8 @@
type: object
properties:
name:
description: "the name of the tenant"
state:
description: "the new tenant state"
type: string
description:
description: "the description"
type: string
username:
description: "the username"
type: string
password:
description: "the password"
type: string
format: password
enum: [ ACTIVATED, DEACTIVATED ]
example:
name: "MyTenant"
description: "My tenant"
username: "john"
password: "bpm"
state: "ACTIVATED"
12 changes: 0 additions & 12 deletions openapi/components/schemas/ThemeCreateRequest.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions openapi/components/schemas/ThemeRestoreRequest.yaml

This file was deleted.

20 changes: 1 addition & 19 deletions 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.11
title: Bonita HTTP API
description:
# Ignore IDE warnings
Expand Down Expand Up @@ -103,9 +103,7 @@ x-tagGroups:
tags:
- Page
- Profile
- ProfileEntry
- ProfileMember
- Theme
- Upload

- name: System
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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'

Expand All @@ -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
# =======================
Expand Down
65 changes: 10 additions & 55 deletions openapi/paths/API@platform@tenant.yaml
Original file line number Diff line number Diff line change
@@ -1,75 +1,30 @@
get:
put:
tags:
- Tenant
summary: Finds Tenants
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`
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
description: |
![edition](https://img.shields.io/badge/edition-entreprise-blue)
Create the Tenant
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'
Loading

0 comments on commit 8bde0b3

Please sign in to comment.