Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #36 from catenax-ng/main
Browse files Browse the repository at this point in the history
Add new DTOS On Sharing Controller
  • Loading branch information
almadigabor authored Oct 11, 2023
2 parents e51335a + 9d41bd7 commit 14bda7e
Show file tree
Hide file tree
Showing 11 changed files with 239 additions and 120 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Changed Dependencies file with new library versions.
- Changed Mapping to adapt new Data Model on BPDM Gate
- Enable Hidden endpoints for Sharing Controller
- Change Dtos of Sharing Controllers


### Fixes
Expand Down
59 changes: 28 additions & 31 deletions docs/swagger/dashboard_controller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ paths:
type: array
items:
$ref: '#/components/schemas/RangeDTO'
maxItems: 3
required: true
responses:
'200':
Expand Down Expand Up @@ -227,6 +228,7 @@ paths:
type: array
items:
$ref: '#/components/schemas/DataSourceDTO'
maxItems: 20
'401':
description: Authentication Required
security:
Expand All @@ -246,6 +248,7 @@ paths:
type: array
items:
$ref: '#/components/schemas/RatingDTO'
maxItems: 20
default: []
- name: companyUser
in: query
Expand All @@ -268,6 +271,7 @@ paths:
type: array
items:
$ref: '#/components/schemas/DashBoardWorldMapDTO'
maxItems: 20
'401':
description: Authentication Required
security:
Expand All @@ -294,6 +298,7 @@ paths:
type: array
items:
$ref: '#/components/schemas/RangeDTO'
maxItems: 20
'401':
description: Authentication Required
security:
Expand All @@ -320,6 +325,7 @@ paths:
type: array
items:
$ref: '#/components/schemas/CompanyUserDTO'
maxItems: 20
'401':
description: Authentication Required
security:
Expand Down Expand Up @@ -347,6 +353,7 @@ paths:
items:
type: string
format: byte
maxItems: 20
'401':
description: Authentication Required
security:
Expand All @@ -367,6 +374,7 @@ paths:
items:
$ref: '#/components/schemas/RatingDTO'
default: []
maxItems: 20
- name: year
in: query
required: false
Expand All @@ -388,6 +396,7 @@ paths:
type: array
items:
$ref: '#/components/schemas/DashBoardTableDTO'
maxItems: 20
'401':
description: Authentication Required
security:
Expand Down Expand Up @@ -419,6 +428,7 @@ paths:
type: array
items:
$ref: '#/components/schemas/ReportValuesDTO'
maxItems: 20
'401':
description: Authentication Required
security:
Expand All @@ -445,6 +455,7 @@ paths:
type: array
items:
$ref: '#/components/schemas/ReportDTO'
maxItems: 20
'401':
description: Authentication Required
security:
Expand All @@ -471,6 +482,7 @@ paths:
type: array
items:
$ref: '#/components/schemas/CountryDTO'
maxItems: 20
'401':
description: Authentication Required
security:
Expand All @@ -497,6 +509,7 @@ paths:
type: array
items:
$ref: '#/components/schemas/BusinessPartnerDTO'
maxItems: 20
'401':
description: Authentication Required
security:
Expand All @@ -523,6 +536,7 @@ paths:
type: array
items:
$ref: '#/components/schemas/CountryDTO'
maxItems: 20
'401':
description: Authentication Required
security:
Expand All @@ -549,6 +563,7 @@ paths:
type: array
items:
$ref: '#/components/schemas/CompanyGatesDTO'
maxItems: 20
'401':
description: Authentication Required
security:
Expand Down Expand Up @@ -576,6 +591,7 @@ paths:
items:
type: integer
format: int32
maxItems: 20
'401':
description: Authentication Required
security:
Expand Down Expand Up @@ -666,6 +682,7 @@ components:
type: array
items:
$ref: '#/components/schemas/ReportValuesDTO'
maxItems: 20
ReportValuesDTO:

Check warning on line 686 in docs/swagger/dashboard_controller.yml

View workflow job for this annotation

GitHub Actions / Analyze

[MEDIUM] Additional Properties Too Permissive

Objects should not accept 'additionalProperties' if it is possible

Check warning on line 686 in docs/swagger/dashboard_controller.yml

View workflow job for this annotation

GitHub Actions / Analyze

[MEDIUM] Additional Properties Too Permissive

Objects should not accept 'additionalProperties' if it is possible

Check warning on line 686 in docs/swagger/dashboard_controller.yml

View workflow job for this annotation

GitHub Actions / Analyze

[MEDIUM] Additional Properties Too Permissive

Objects should not accept 'additionalProperties' if it is possible

Check warning on line 686 in docs/swagger/dashboard_controller.yml

View workflow job for this annotation

GitHub Actions / Analyze

[MEDIUM] Additional Properties Too Permissive

Objects should not accept 'additionalProperties' if it is possible

Check warning on line 686 in docs/swagger/dashboard_controller.yml

View workflow job for this annotation

GitHub Actions / Analyze

[MEDIUM] Additional Properties Too Permissive

Objects should not accept 'additionalProperties' if it is possible

Check warning on line 686 in docs/swagger/dashboard_controller.yml

View workflow job for this annotation

GitHub Actions / Analyze

[MEDIUM] Additional Properties Too Permissive

Objects should not accept 'additionalProperties' if it is possible
type: object
properties:
Expand Down Expand Up @@ -767,7 +784,7 @@ components:
example: '633104'
city:
type: string
example: Covilhã
example: Covilha
country:
type: string
example: Portugal
Expand All @@ -783,35 +800,6 @@ components:
customer:
type: boolean
example: true
ShareDTO:
type: object
properties:
id:
type: integer
format: int64
bpn:
type: string
example: BPN-NUMBER
country:
type: string
example: Portugal
iso2:
type: string
example: PT
rating:
type: array
items:
$ref: '#/components/schemas/ShareRatingDTO'
ShareRatingDTO:
type: object
properties:
dataSourceName:
type: string
example: Fake Rating
score:
type: number
format: float
example: 100
RatingDTO:

Check warning on line 803 in docs/swagger/dashboard_controller.yml

View workflow job for this annotation

GitHub Actions / Analyze

[MEDIUM] Additional Properties Too Permissive

Objects should not accept 'additionalProperties' if it is possible

Check warning on line 803 in docs/swagger/dashboard_controller.yml

View workflow job for this annotation

GitHub Actions / Analyze

[MEDIUM] Additional Properties Too Permissive

Objects should not accept 'additionalProperties' if it is possible

Check warning on line 803 in docs/swagger/dashboard_controller.yml

View workflow job for this annotation

GitHub Actions / Analyze

[MEDIUM] Additional Properties Too Permissive

Objects should not accept 'additionalProperties' if it is possible

Check warning on line 803 in docs/swagger/dashboard_controller.yml

View workflow job for this annotation

GitHub Actions / Analyze

[MEDIUM] Additional Properties Too Permissive

Objects should not accept 'additionalProperties' if it is possible
type: object
properties:
Expand Down Expand Up @@ -840,9 +828,13 @@ components:
type: string
example: Germany
iso3:
maxLength: 2
minLength: 0
type: string
example: DEU
iso2:
maxLength: 3
minLength: 0
type: string
example: DE
continent:
Expand Down Expand Up @@ -890,7 +882,7 @@ components:
example: '633104'
city:
type: string
example: Covilhã
example: Covilha
country:
type: string
example: Portugal
Expand Down Expand Up @@ -933,7 +925,12 @@ components:
authorizationCode:
authorizationUrl: https://centralidp.dev.demo.catena-x.net/auth/realms/CX-Central/protocol/openid-connect/auth
tokenUrl: https://centralidp.dev.demo.catena-x.net/auth/realms/CX-Central/protocol/openid-connect/token
scopes:
read: Grants read access
write: Grants write access
admin: Grants access to admin operations
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT

Loading

0 comments on commit 14bda7e

Please sign in to comment.