Skip to content

Commit

Permalink
docs(country risk): Update documentation for arc 42
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiodmota committed May 16, 2024
1 parent ac4347d commit 06cb9ea
Show file tree
Hide file tree
Showing 9 changed files with 537 additions and 161 deletions.
482 changes: 326 additions & 156 deletions docs/Arc42-Documentation.md

Large diffs are not rendered by default.

Binary file added docs/Images/catalog-page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/Images/negotiation_controller_trigger.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/Images/userInfo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions docs/User-Guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ Choose the Login Option you want and its setup.

![Dashboard](../docs/User-Guide-Images/Dashboard.png)

6. You can only see all data available if data negotiation as been done if not you should go to the Catalog Page to do the Negotiation ( if you have permissions )

![userinfo](../docs/Images/userInfo.png)

7. If you have the right permissions you can see the Negotiation Option and you should open the Catalog Page

![catalog](../docs/Images/catalog-page.png)

8. You must select the data offers and click to trigger negotiation


## Country Rating Component

Expand Down
6 changes: 3 additions & 3 deletions docs/api/dashboard_controller.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.0.1
info:
title: VAS API
description: Swagger documentation for the Value Added Services APIs
title: VAS API - Dashboard
description: Swagger documentation for the Dashboard APIs
version: '1.0'
servers:
- url: /
Expand All @@ -14,7 +14,7 @@ paths:
put:
tags:
- Dashboard Controller
summary: Update Reports that
summary: Update Reports
operationId: updateReports
parameters:
- name: companyUserDTO
Expand Down
196 changes: 196 additions & 0 deletions docs/api/negotiation_controller.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@
openapi: 3.0.1
info:
title: VAS API - Negotiation
description: Swagger documentation for the Negotiation APIs
version: '1.0'
servers:
- url: /
security:
- open_id_scheme:
- read
- write
paths:
/api/negotiation/triggerNegotiation:
post:
tags:
- Negotiation Controller
summary: Triggers negotiation with selected items
operationId: triggerNegotiation
requestBody:
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/NegotiationRequestDTO'
required: true
responses:
'200':
description: Negotiation initiated successfully
content:
text/plain: {}
'400':
description: Bad Request
content:
'*/*':
schema:
type: array
items:
$ref: '#/components/schemas/NegotiationResponseDTO'
'401':
description: Authentication Required
content:
'*/*':
schema:
type: array
items:
$ref: '#/components/schemas/NegotiationResponseDTO'
'500':
description: Internal Server Error
content:
'*/*':
schema:
type: array
items:
$ref: '#/components/schemas/NegotiationResponseDTO'
security:
- bearerAuth: []
- open_id_scheme: []
/api/negotiation/queryCatalog:
get:
tags:
- Negotiation Controller
summary: Retrieves catalog items available for negotiation
operationId: queryCatalog
responses:
'200':
description: Successfully retrieved catalog items
content:
application/json:
schema:
$ref: '#/components/schemas/CatalogItemDTO'
'401':
description: Authentication Required
content:
'*/*':
schema:
type: array
items:
$ref: '#/components/schemas/CatalogItemDTO'
'500':
description: Internal Server Error
content:
'*/*':
schema:
type: array
items:
$ref: '#/components/schemas/CatalogItemDTO'
security:
- bearerAuth: []
- open_id_scheme: []
components:
schemas:
CompanyUserDTO:
required:
- companyName
- email
- name
type: object
properties:
name:
type: string
example: John
email:
type: string
example: [email protected]
companyName:
type: string
example: TestCompany
NegotiationRequestDTO:
required:
- id
- offerId
type: object
properties:
id:
type: string
description: Unique identifier of the catalog item
example: '1'
offerId:
type: string
description: Identifier of the offer associated with the catalog item
example: offer123
usagePurpose:
type: string
description: Specific usage purpose or partner category
example: cx.bpdm.pool:1
description: Data Transfer Object for initiating a negotiation request
NegotiationResponseDTO:
required:
- id
- offerId
type: object
properties:
id:
type: string
description: Unique identifier of the catalog item
example: '1'
offerId:
type: string
description: Identifier of the offer associated with the catalog item
example: offer123
provider:
type: string
description: Provider of the catalog item
example: Provider A
status:
type: string
description: Status of negotiation of the catalog item
example: Negotiated
description: Data Transfer Object with negotiation status
CatalogItemDTO:
required:
- id
- offerId
type: object
properties:
id:
type: string
description: Unique identifier of the catalog item
example: '1'
offerId:
type: string
description: Identifier of the offer associated with the catalog item
example: offer123
provider:
type: string
description: Provider of the catalog item
example: Provider A
subject:
type: string
description: Subject of the catalog item
example: cx-taxo:ReadAccessPoolForCatenaXMember
description:
type: string
description: Description of the catalog item
example: Grants the Catena-X Member read access to the Pool API...
usagePurpose:
type: string
description: Specific usage purpose or partner category
example: cx.bpdm.pool:1
description: Represents a catalog item available for negotiation
securitySchemes:
bearerAuth:
bearerFormat: JWT
scheme: bearer
type: http
open_id_scheme:
flows:
authorizationCode:
authorizationUrl: https://centralidp.dev.demo.catena-x.net/auth/realms/CX-Central/protocol/openid-connect/auth
scopes:
admin: Grants access to admin operations
read: Grants read access
write: Grants write access
tokenUrl: https://centralidp.dev.demo.catena-x.net/auth/realms/CX-Central/protocol/openid-connect/token
type: oauth2
4 changes: 2 additions & 2 deletions docs/api/sharing_controller.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.0.1
info:
description: Swagger documentation for the Value Added Services APIs
title: VAS API
title: VAS API - Sharing
description: Swagger documentation for the Sharing APIs
version: '1.0'
servers:
- url: /
Expand Down

0 comments on commit 06cb9ea

Please sign in to comment.