Skip to content

Commit

Permalink
Upd: audit endpoints
Browse files Browse the repository at this point in the history
Signed-off-by: George J Padayatti <[email protected]>
  • Loading branch information
georgepadayatti committed Oct 21, 2023
1 parent 8706db0 commit 3a793dc
Show file tree
Hide file tree
Showing 14 changed files with 410 additions and 222 deletions.
329 changes: 235 additions & 94 deletions openapi/v2023.8.2/bundled.yaml

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions openapi/v2023.8.2/definitions/DataAgreementRecordHistory.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
required:
- id
- organisationId
- dataAgreementId
- log
- timestamp
type: object
properties:
id:
type: string
description: Data agreement record history Id
organisationId:
type: string
description: Organisation Id
dataAgreementId:
type: string
description: Data agreement Id
log:
type: string
description: Log string
timestamp:
type: string
description: Timestamp in ISO 8601 date time format
example:
id: 64e91591e2f6a8000142c665
organisationId: 603e683c69dd720001c74f93
dataAgreementId: 61e183127c81650001f97d43
log: Updated consent value to <Allow> for the purpose <Customer Loyalty Card Issuance> in organization <The Retail Company (Germany)>
timestamp: '2023-08-25T20:56:49Z'
21 changes: 14 additions & 7 deletions openapi/v2023.8.2/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ paths:
$ref: ./paths/serviceCreateIndividualConsentRecord.yaml
get:
$ref: ./paths/serviceReadIndividualRecordRead.yaml

/service/individual/record/data-agreement-record/draft:
post:
$ref: ./paths/serviceCreateIndividualConsentRecordDraft.yaml
Expand All @@ -284,27 +284,34 @@ paths:
/service/individual/record/data-agreement-record/{dataAgreementRecordId}:
put:
$ref: ./paths/serviceUpdateIndividualConsentRecord.yaml

/service/individual/record/data-agreement-record/{dataAgreementRecordId}/signature:
post:
$ref: ./paths/serviceCreateIndividualConsentRecordSignature.yaml
put:
$ref: ./paths/serviceUpdateIndividualConsentRecordSignature.yaml

/service/individual/record/data-agreement/{dataAgreementId}/all:
get:
$ref: ./paths/serviceListIndividualAgreementConsentRecordList.yaml


/service/individual/record/data-agreement-record/history':
get:
$ref: "./paths/serviceListDataAgreementRecordHistory.yaml"
/audit/admin/logs:
get:
$ref: ./paths/auditAdminLogs.yaml
/audit/data-agreement-records:
get:
$ref: "./paths/auditDataAgreementRecordsList.yaml"
/audit/data-agreement-record/{dataAgreementRecordId}:
get:
$ref: ./paths/auditConsentRecordRead.yaml
$ref: ./paths/auditDataAgreementRecordRead.yaml
/audit/data-agreements:
get:
$ref: "./paths/auditDataAgreementList.yaml"
/audit/data-agreement/{dataAgreementId}:
get:
$ref: ./paths/auditReadRecord.yaml
$ref: ./paths/auditReadDataAgreement.yaml
servers:
- description: Development server
url: https://api.bb-consent.dev/v2
Expand Down
5 changes: 5 additions & 0 deletions openapi/v2023.8.2/parameters/dataAgreementIdQueryParam.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
description: Unique ID of an object
in: query
name: dataAgreementId
schema:
type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
description: Unique ID of an object
in: query
name: dataAgreementRecordId
schema:
type: string
5 changes: 5 additions & 0 deletions openapi/v2023.8.2/parameters/individualIdQueryParam.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
description: Unique ID of an object
in: query
name: individualId
schema:
type: string
13 changes: 13 additions & 0 deletions openapi/v2023.8.2/parameters/lawfulBasisQueryParam.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
description: Unique ID of an object
in: query
name: lawfulBasis
schema:
type: string
description: "Lawful basis of the agreement - consent / legal_obligation / contract / vital_interest / public_task / legitimate_interest"
enum:
- consent
- legal_obligation
- contract
- vital_interest
- public_task
- legitimate_interest
51 changes: 0 additions & 51 deletions openapi/v2023.8.2/paths/auditAgreementList.yaml

This file was deleted.

49 changes: 0 additions & 49 deletions openapi/v2023.8.2/paths/auditConsentRecordList.yaml

This file was deleted.

30 changes: 30 additions & 0 deletions openapi/v2023.8.2/paths/auditDataAgreementList.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
description: LIST - Fetch all data agreements stored in the system
operationId: auditDataAgreementList
parameters:
- $ref: "../parameters/offset.yaml"
- $ref: "../parameters/limit.yaml"
responses:
"200":
content:
application/json:
schema:
type: object
properties:
dataAgreements:
items:
$ref: ../definitions/DataAgreement.yaml
type: array
pagination:
$ref: "../definitions/Pagination.yaml"
description: ""
"400":
description: bad input parameter
security:
- BearerAuth: []
summary: LIST - Fetch all data agreements stored in the system
tags:
- audit
x-specification-crudl-model: ""
x-specification-pii-or-sensitive: "False"
x-specification-scenario: ""
x-specification-usecase: UC-C-PIC-AT-001, UC-C-PIC-AT-003
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
description: READ - Fetch a single data agreement record
operationId: auditConsentRecordRead
parameters:
- description: Unique ID of an object
in: path
name: dataAgreementRecordId
required: true
schema:
type: string
- $ref: "../parameters/dataAgreementRecordId.yaml"
responses:
"200":
content:
application/json:
schema:
$ref: ../definitions/DataAgreementRecord.yaml
type: object
properties:
dataAgreementRecord:
$ref: ../definitions/DataAgreementRecord.yaml
description: ""
"400":
description: bad input parameter
Expand Down
34 changes: 34 additions & 0 deletions openapi/v2023.8.2/paths/auditDataAgreementRecordsList.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
description: LIST - Fetch all data agreement records
operationId: auditDataAgreementRecordsList
parameters:
- $ref: "../parameters/offset.yaml"
- $ref: "../parameters/limit.yaml"
- $ref: "../parameters/lawfulBasisQueryParam.yaml"
- $ref: "../parameters/individualIdQueryParam.yaml"
- $ref: "../parameters/dataAgreementIdQueryParam.yaml"
- $ref: "../parameters/dataAgreementRecordIdQueryParam.yaml"
responses:
"200":
content:
application/json:
schema:
type: object
properties:
dataAgreementRecords:
items:
$ref: ../definitions/DataAgreementRecord.yaml
type: array
pagination:
$ref: "../definitions/Pagination.yaml"
description: ""
"400":
description: bad input parameter
security:
- BearerAuth: []
summary: LIST - Fetch all data agreement records
tags:
- audit
x-specification-crudl-model: ""
x-specification-pii-or-sensitive: "False"
x-specification-scenario: ""
x-specification-usecase: UC-C-PIC-AT-003
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
description: READ - Fetch a single data agreement.
operationId: auditReadRecord
parameters:
- description: Unique ID of an object
in: path
name: dataAgreementId
required: true
schema:
type: string
- $ref: "../parameters/dataAgreementId.yaml"
responses:
'200':
"200":
content:
application/json:
schema:
$ref: ../definitions/DataAgreement.yaml
description: ''
'400':
type: object
properties:
dataAgreement:
$ref: ../definitions/DataAgreement.yaml
description: ""
"400":
description: bad input parameter
security:
- BearerAuth: []
summary: READ - Fetch a single data agreement.
tags:
- audit
x-specification-crudl-model: ''
x-specification-pii-or-sensitive: 'False'
x-specification-scenario: ''
- audit
x-specification-crudl-model: ""
x-specification-pii-or-sensitive: "False"
x-specification-scenario: ""
x-specification-usecase: UC-C-PIC-AT-001, UC-C-PIC-AT-003
23 changes: 23 additions & 0 deletions openapi/v2023.8.2/paths/serviceListDataAgreementRecordHistory.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
operationId: serviceListDataAgreementRecordHistory
tags:
- service
description: LIST - Fetch all data agreement record history
summary: LIST - Fetch all data agreement record history
parameters:
- $ref: "../parameters/offset.yaml"
- $ref: "../parameters/limit.yaml"
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
properties:
dataAgreementRecordHistory:
$ref: "../definitions/DataAgreementRecordHistory.yaml"
pagination:
$ref: "../definitions/Pagination.yaml"
deprecated: false
security:
- BearerAuth: []

0 comments on commit 3a793dc

Please sign in to comment.