-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upd: add individual, webhook endpoints
Signed-off-by: George J Padayatti <[email protected]>
- Loading branch information
1 parent
f334887
commit 2705077
Showing
23 changed files
with
714 additions
and
754 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,20 @@ | ||
type: object | ||
title: IndividualExtras | ||
required: | ||
- name | ||
- phone | ||
properties: | ||
name: | ||
type: string | ||
description: "Name of the individual" | ||
iamId: | ||
type: string | ||
description: "Create a user in keycloak and save the `id` as `iamId`" | ||
email: | ||
type: string | ||
description: "Email Id" | ||
phone: | ||
type: string | ||
imageId: | ||
type: string | ||
imageUrl: | ||
type: string | ||
lastVisit: | ||
type: string | ||
orgs: | ||
type: array | ||
items: | ||
required: | ||
- id | ||
- name | ||
- location | ||
- type | ||
- typeId | ||
- eulaAccepted | ||
type: object | ||
properties: | ||
id: | ||
type: string | ||
name: | ||
type: string | ||
location: | ||
type: string | ||
type: | ||
type: string | ||
typeId: | ||
type: string | ||
eulaAccepted: | ||
type: boolean | ||
apiKey: | ||
type: string | ||
roles: | ||
type: array | ||
items: | ||
required: | ||
- roleId | ||
- orgId | ||
type: object | ||
properties: | ||
roleId: | ||
type: integer | ||
format: int32 | ||
orgId: | ||
type: string | ||
incompleteProfile: | ||
type: boolean | ||
description: "Phone" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ required: | |
- skipSslVerification | ||
- timestamp | ||
type: object | ||
title: Webhook | ||
properties: | ||
id: | ||
type: string | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
type: object | ||
title: WebhookDelivery | ||
properties: | ||
id: | ||
type: string | ||
description: "Webhook delivery Id" | ||
webhookId: | ||
type: string | ||
description: "Webhook Id" | ||
responseStatusCode: | ||
type: integer | ||
format: int32 | ||
description: "Response status code" | ||
responseStatusStr: | ||
type: string | ||
description: "Response status string" | ||
timestamp: | ||
type: string | ||
description: "Response timestamp" | ||
status: | ||
type: string | ||
description: "Webhook delivery status" | ||
statusDescription: | ||
type: string | ||
description: "Webhook delivery status description" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
type: object | ||
title: WebhookPing | ||
required: | ||
- responseStatusCode | ||
- responseStatusStr | ||
- executionStartTimeStamp | ||
- executionEndTimeStamp | ||
- status | ||
- statusDescription | ||
properties: | ||
responseStatusCode: | ||
type: integer | ||
format: int32 | ||
description: "Response status code" | ||
responseStatusStr: | ||
type: string | ||
description: "Response status string" | ||
executionStartTimestamp: | ||
type: string | ||
description: "Execution start timestamp" | ||
executionEndTimestamp: | ||
type: string | ||
description: "Execution end timestamp" | ||
status: | ||
type: string | ||
description: "Status of webhook" | ||
statusDescription: | ||
type: string | ||
description: "Status description" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
tags: | ||
- config | ||
summary: "CREATE - Create an individual" | ||
operationId: "configCreatePolicy" | ||
description: "CREATE - Creates an Individual in the Consent system" | ||
parameters: [] | ||
x-specification-usecase: "" | ||
x-specification-scenario: "" | ||
x-specification-pii-or-sensitive: "True" | ||
x-specification-crudl-model: "Individual" | ||
responses: | ||
"200": | ||
description: "" | ||
|
||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
individual: | ||
allOf: | ||
- $ref: "../definitions/Individual.yaml" | ||
- $ref: "../definitions/IndividualExtras.yaml" | ||
description: An object of type Individual | ||
|
||
"400": | ||
description: bad input parameter | ||
security: | ||
- BearerAuth: [] | ||
|
||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
individual: | ||
allOf: | ||
- $ref: "../definitions/Individual.yaml" | ||
- $ref: "../definitions/IndividualExtras.yaml" | ||
description: An object of type Individual | ||
|
||
required: | ||
- individual |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
tags: | ||
- config | ||
summary: "DELETE - Delete an individual" | ||
operationId: "configDeleteIndividual" | ||
description: "DELETE - entirely removes an individual from the system and cascades necessary actions to related DataAgreementRecord objects" | ||
parameters: | ||
- in: path | ||
name: "individualId" | ||
description: "Unique ID of an object" | ||
required: true | ||
schema: | ||
type: string | ||
|
||
x-specification-usecase: "" | ||
x-specification-scenario: "" | ||
x-specification-pii-or-sensitive: "True" | ||
x-specification-crudl-model: "Individual" | ||
responses: | ||
"200": | ||
description: "" | ||
|
||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
individual: | ||
allOf: | ||
- $ref: "../definitions/Individual.yaml" | ||
- $ref: "../definitions/IndividualExtras.yaml" | ||
|
||
"400": | ||
description: bad input parameter | ||
security: | ||
- BearerAuth: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.