-
Steffen Schulze authoreddfee4622
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
connection.http 746 B
### Get Connections
GET {{baseUrl}}/admin/connections
### Get Connection Information
GET {{baseUrl}}/admin/connections/{{userPeerDid}}
### Create Connection
POST {{baseUrl}}/admin/connections
Content-Type: application/json
{
"protocol": "nats",
"remoteDid": "{{userPeerDid}}",
"topic": "nats-topic-of-user",
"properties": {
"key" : "value",
"greeting": "hello-world"
}
}
### Delete Connection
DELETE {{baseUrl}}/admin/connections/{{userPeerDid}}
### Block Connection
POST {{baseUrl}}/admin/connections/block/{{userPeerDid}}
### Unblock Connection
POST {{baseUrl}}/admin/connections/unblock/{{userPeerDid}}
### Status (blocked or not)
GET {{baseUrl}}/admin/connections/isblocked/{{userPeerDid}}