-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
591 additions
and
43 deletions.
There are no files selected for viewing
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
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,36 @@ | ||
Checks if an incomming request can be successfully accepted. | ||
|
||
The items array indicate the decision made for each individual request item in the request. | ||
|
||
## Example Body | ||
|
||
```json | ||
{ | ||
"items": [ | ||
{ "accept": true }, | ||
{ "accept": false } | ||
] | ||
} | ||
``` | ||
|
||
{% include rapidoc api_route_regex="^put /api/v2/Requests/Incoming/{id}/CanAccept$" %} | ||
|
||
## Example | ||
|
||
```shell | ||
curl --location --request PUT 'http://{connector_url}/api/v2/Requests/Incoming/{id}/CanAccept' \ | ||
--header 'X-API-KEY: xxx' \ | ||
--header 'Content-Type: application/json' \ | ||
--data '{ | ||
"items": [ | ||
{ | ||
"accept": true | ||
}, | ||
{ | ||
"accept": false, | ||
"code": "an.error.code", | ||
"message": "Error Message" | ||
} | ||
] | ||
}' | ||
``` |
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,36 @@ | ||
Checks if an incomming request can be successfully rejected. | ||
|
||
The items array indicate the decision made for each individual request item in the request. | ||
|
||
## Example Body | ||
|
||
```json | ||
{ | ||
"items": [ | ||
{ "accept": false }, | ||
{ "accept": false } | ||
] | ||
} | ||
``` | ||
|
||
{% include rapidoc api_route_regex="^put /api/v2/Requests/Incoming/{id}/CanReject$" %} | ||
|
||
## Example | ||
|
||
```shell | ||
curl --location --request PUT 'http://{connector_url}/api/v2/Requests/Incoming/{id}/CanReject' \ | ||
--header 'X-API-KEY: xxx' \ | ||
--header 'Content-Type: application/json' \ | ||
--data '{ | ||
"items": [ | ||
{ | ||
"accept": true | ||
}, | ||
{ | ||
"accept": false, | ||
"code": "an.error.code", | ||
"message": "Error Message" | ||
} | ||
] | ||
}' | ||
``` |
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,60 @@ | ||
Validates an outgoing request without creating it. | ||
|
||
The content is the to be created request defined in the [data model](/integrate/data-model-overview#request). | ||
|
||
## Example Body | ||
|
||
```json | ||
{ | ||
"content": { | ||
"expiresAt": "2024-01-01T00:00:00.000Z", | ||
"items": [ | ||
{ | ||
"@type": "ShareAttributeRequestItem", | ||
"mustBeAccepted": true, | ||
"attribute": { | ||
"@type": "IdentityAttribute", | ||
"owner": "", | ||
"value": { | ||
"@type": "DisplayName", | ||
"value": "Example" | ||
} | ||
}, | ||
"sourceAttributeId": "<id of attribute above, generated on creation>" | ||
} | ||
] | ||
}, | ||
"peer": "peerId" | ||
} | ||
``` | ||
|
||
{% include rapidoc api_route_regex="^post /api/v2/Requests/Outgoing/Validate$" %} | ||
|
||
## Example | ||
|
||
```shell | ||
curl --location --request POST 'http://{connector_url}/api/v2/Requests/Outgoing/Validate' \ | ||
--header 'X-API-KEY: xxx' \ | ||
--header 'Content-Type: application/json' \ | ||
--data-raw '{ | ||
"content": { | ||
"expiresAt": "2024-01-01T00:00:00.000Z", | ||
"items": [ | ||
{ | ||
"@type": "ShareAttributeRequestItem", | ||
"mustBeAccepted": true, | ||
"attribute": { | ||
"@type": "IdentityAttribute", | ||
"owner": "", | ||
"value": { | ||
"@type": "DisplayName", | ||
"value": "Example" | ||
} | ||
}, | ||
"sourceAttributeId": "<id of attribute above, generated on creation>" | ||
} | ||
] | ||
}, | ||
"peer": "peerId" | ||
}' | ||
``` |
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,3 @@ | ||
// TODO! | ||
|
||
// This is an internal use case not exposed by the HTTP-API |
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,39 @@ | ||
Create an attribute. | ||
|
||
The content is the to be created attribute, either an 'IdentityAttribute' or an | ||
'RelationshipAttribute', defined in the [data model](/integrate/data-model-overview#attributes). | ||
|
||
## Example Body | ||
|
||
```json | ||
{ | ||
"content": { | ||
"@type": "IdentityAttribute", | ||
"owner": "<your address>", | ||
"value": { | ||
"@type": "DisplayName", | ||
"value": "Example" | ||
} | ||
} | ||
} | ||
``` | ||
|
||
{% include rapidoc api_route_regex="^post /api/v2/Attributes$" %} | ||
|
||
## Example | ||
|
||
```shell | ||
curl --location --request POST 'http://{connector_url}/api/v2/Attributes' \ | ||
--header 'X-API-KEY: xxx' \ | ||
--header 'Content-Type: application/json' \ | ||
--data-raw '{ | ||
"content": { | ||
"@type": "IdentityAttribute", | ||
"owner": "<your address>", | ||
"value": { | ||
"@type": "DisplayName", | ||
"value": "Example" | ||
} | ||
} | ||
}' | ||
``` |
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,3 @@ | ||
// TODO! | ||
|
||
// This is an internal use case not exposed by the HTTP-API |
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,3 @@ | ||
// TODO! | ||
|
||
// This is an internal use case not exposed by the HTTP-API |
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,3 @@ | ||
// TODO! | ||
|
||
// This is an internal use case not exposed by the HTTP-API |
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,60 @@ | ||
Create outgoing request. | ||
|
||
The content is the to be created request defined in the [data model](/integrate/data-model-overview#request). | ||
|
||
## Example Body | ||
|
||
```json | ||
{ | ||
"content": { | ||
"expiresAt": "2024-01-01T00:00:00.000Z", | ||
"items": [ | ||
{ | ||
"@type": "ShareAttributeRequestItem", | ||
"mustBeAccepted": true, | ||
"attribute": { | ||
"@type": "IdentityAttribute", | ||
"owner": "", | ||
"value": { | ||
"@type": "DisplayName", | ||
"value": "Example" | ||
} | ||
}, | ||
"sourceAttributeId": "<id of attribute above, generated on creation>" | ||
} | ||
] | ||
}, | ||
"peer": "peerId" | ||
} | ||
``` | ||
|
||
{% include rapidoc api_route_regex="^post /api/v2/Requests/Outgoing$" %} | ||
|
||
## Example | ||
|
||
```shell | ||
curl --location --request POST 'http://{connector_url}/api/v2/Requests/Outgoing' \ | ||
--header 'X-API-KEY: xxx' \ | ||
--header 'Content-Type: application/json' \ | ||
--data-raw '{ | ||
"content": { | ||
"expiresAt": "2024-01-01T00:00:00.000Z", | ||
"items": [ | ||
{ | ||
"@type": "ShareAttributeRequestItem", | ||
"mustBeAccepted": true, | ||
"attribute": { | ||
"@type": "IdentityAttribute", | ||
"owner": "", | ||
"value": { | ||
"@type": "DisplayName", | ||
"value": "Example" | ||
} | ||
}, | ||
"sourceAttributeId": "<id of attribute above, generated on creation>" | ||
} | ||
] | ||
}, | ||
"peer": "peerId" | ||
}' | ||
``` |
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,4 @@ | ||
|
||
// TODO! | ||
|
||
// This is an internal use case not exposed by the HTTP-API |
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,4 @@ | ||
|
||
// TODO! | ||
|
||
// This is an internal use case not exposed by the HTTP-API |
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,4 @@ | ||
|
||
// TODO! | ||
|
||
// This is an internal use case not exposed by the HTTP-API |
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,4 @@ | ||
|
||
// TODO! | ||
|
||
// This is an internal use case not exposed by the HTTP-API |
Oops, something went wrong.