Skip to content

Commit 5bc8e30

Browse files
authored
Merge pull request #37 from didx-xyz/feature/minor-bugs
Fix minor bugs in recovation and issuer api
2 parents a113f76 + 3889b8f commit 5bc8e30

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

aries_cloudcontroller/controllers/issuer.py

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,24 @@ def __init__(
2626
self.definitions = definition_controller
2727

2828
# Fetch all credential exchange records
29-
async def get_records(self):
30-
31-
return await self.admin_GET(f"{self.base_url}/records")
29+
async def get_records(
30+
self,
31+
connection_id: str = None,
32+
thread_id: str = None,
33+
state: str = None,
34+
role: str = None,
35+
):
36+
params = {}
37+
if connection_id:
38+
params["connection_id"] = connection_id
39+
if thread_id:
40+
params["thread_id"] = thread_id
41+
if state:
42+
params["state"] = state
43+
if role:
44+
params["role"] = role
45+
46+
return await self.admin_GET(f"{self.base_url}/records", params=params)
3247

3348
async def get_record_by_id(self, cred_ex_id):
3449
return await self.admin_GET(f"{self.base_url}/records/{cred_ex_id}")

aries_cloudcontroller/controllers/revocation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ def __init__(self, admin_url: str, client_session: ClientSession):
1515

1616
async def revoke_credential(
1717
self,
18-
cred_ex_id: str = "",
19-
cred_rev_id: str = "",
20-
rev_reg_id: str = "",
18+
cred_ex_id: str = None,
19+
cred_rev_id: str = None,
20+
rev_reg_id: str = None,
2121
publish: bool = False,
2222
):
2323
"""

0 commit comments

Comments
 (0)