Skip to content

Commit

Permalink
Merge pull request #37 from didx-xyz/feature/minor-bugs
Browse files Browse the repository at this point in the history
Fix minor bugs in recovation and issuer api
  • Loading branch information
morrieinmaas authored May 12, 2021
2 parents a113f76 + 3889b8f commit 5bc8e30
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
21 changes: 18 additions & 3 deletions aries_cloudcontroller/controllers/issuer.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,24 @@ def __init__(
self.definitions = definition_controller

# Fetch all credential exchange records
async def get_records(self):

return await self.admin_GET(f"{self.base_url}/records")
async def get_records(
self,
connection_id: str = None,
thread_id: str = None,
state: str = None,
role: str = None,
):
params = {}
if connection_id:
params["connection_id"] = connection_id
if thread_id:
params["thread_id"] = thread_id
if state:
params["state"] = state
if role:
params["role"] = role

return await self.admin_GET(f"{self.base_url}/records", params=params)

async def get_record_by_id(self, cred_ex_id):
return await self.admin_GET(f"{self.base_url}/records/{cred_ex_id}")
Expand Down
6 changes: 3 additions & 3 deletions aries_cloudcontroller/controllers/revocation.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ def __init__(self, admin_url: str, client_session: ClientSession):

async def revoke_credential(
self,
cred_ex_id: str = "",
cred_rev_id: str = "",
rev_reg_id: str = "",
cred_ex_id: str = None,
cred_rev_id: str = None,
rev_reg_id: str = None,
publish: bool = False,
):
"""
Expand Down

0 comments on commit 5bc8e30

Please sign in to comment.