Agent Accept a stored connection invitation status
Description
This API returns the current status of connection between Principal and Participant to the Connection Manager.
- AFJ agents call the API with configured webhook URL when the status is changed.
Status can be:
- Invited,
- Requested,
- Responded,
- Complete.
Update connection status API.
- Endpoint: POST
/v1/connections
Libraries
- nats
- @nestjs/microservices
Expected Input
{
"id": "265160e1-12f6-4b76-8bff-2d239c83b4de" ,
"state": 'complete',
"did": 'PNZyZVh8hcC3goEiu79CQJ',
"theirDid": '9YKWf1VQJT857ZkaPd3E1y',
"theirLabel": 'invitee'
}
Expected Output
- The connection Should be updated as the status changed agent side and it should reflect in the connection table.
{
statusCode: 200,
message: 'Connection status Updated successfully',
data: {
id: '0e15d082-96ff-428b-ba4b-d9cdcb640e7a',
connectionDate: 2022-03-09T11:46:33.020Z,
createdDate: 2022-03-09T11:46:33.020Z,
updatedDate: 2022-03-09T11:47:37.636Z,
connectionURL: '',
did: 'GYnXcAftprWFD8r1PnkG2n',
status: 'complete',
connectionId: '2730c1c8-49d6-433e-afc5-764983d73c5b',
theirDid: 'G13tqkTj7PzBvEPq2UBXuN',
theirLabel: 'invitee'
}
}
Steps to test
- The requested input should be in standard format for all the fields.
- Response should show the accurate status code and applicable message.
- Required parameters exceptions handled with the accurate status code and applicable message
Dependencies
- NA
Blocker
- NA