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 21, 2024
1 parent fe819b8 commit 00d9320
Show file tree
Hide file tree
Showing 11 changed files with 2,915 additions and 1,101 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.
110 changes: 59 additions & 51 deletions docs/User-Guide.md

Large diffs are not rendered by default.

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
Loading

0 comments on commit 00d9320

Please sign in to comment.