Skip to content

Commit 7f441e6

Browse files
committed
WIP Add additional/optional body to creating invitation form that:
* allows specifying more oprtions that * are covered in SWAGGER but not in our code yet
1 parent 25d9aec commit 7f441e6

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

aries_cloudcontroller/controllers/connections.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ async def create_invitation(
7070
auto_accept: bool = None,
7171
public: bool = None,
7272
multi_use: bool = None,
73+
invite_options: dict = None,
7374
):
7475
params = {}
7576
if alias:
@@ -80,6 +81,21 @@ async def create_invitation(
8081
params["public"] = public
8182
if multi_use in [True, False]:
8283
params["multi_use"] = multi_use
84+
if invite_option:
85+
"""A dictionary of the form:
86+
{
87+
"mediation_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
88+
"metadata": {},
89+
"recipient_keys": [
90+
"H3C2AVvLMv6gmMNam3uVAjZpfkcJCwDwnZn6z3wXmqPV"
91+
],
92+
"routing_keys": [
93+
"H3C2AVvLMv6gmMNam3uVAjZpfkcJCwDwnZn6z3wXmqPV"
94+
],
95+
"service_endpoint": "http://192.168.56.102:8020"
96+
}
97+
"""
98+
params['body'] = invite_options
8399

84100
invite_details = await self.admin_POST(
85101
"/connections/create-invitation", params=params

0 commit comments

Comments
 (0)