Skip to content

Commit

Permalink
reduce and rename
Browse files Browse the repository at this point in the history
  • Loading branch information
cl0ete committed Oct 28, 2024
1 parent e824bb0 commit 56a7cd7
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions app/routes/wallet/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
summary="Fetch a list of credentials from the wallet",
)
async def list_credentials(
limit: Optional[str] = None,
offset: Optional[str] = None,
limit: Optional[int] = None,
offset: Optional[int] = None,
wql: Optional[str] = None,
auth: AcaPyAuth = Depends(acapy_auth_from_header),
) -> CredInfoList:
Expand Down Expand Up @@ -242,8 +242,8 @@ async def get_credential_revocation_status(
)
async def list_w3c_credentials(
schema_ids: Optional[List[str]] = Query(None),
issuer_id: Optional[str] = Query(None),
max_results: Optional[int] = Query(None),
issuer_did: Optional[str] = Query(None),
limit: Optional[int] = Query(None),
auth: AcaPyAuth = Depends(acapy_auth_from_header),
) -> VCRecordList:
"""
Expand All @@ -255,8 +255,11 @@ async def list_w3c_credentials(
Optional Parameters:
---
schema_ids: List[str]
issuer_id: str
max_results: int
Schema identifiers, all of which to match
issuer_did: str
Credential issuer identifier to match
Limit: int
Maximum number of results to return
Returns:
---
Expand All @@ -267,8 +270,8 @@ async def list_w3c_credentials(

body = W3CCredentialsListRequest(
schema_ids=schema_ids,
issuer_id=issuer_id,
max_results=max_results,
issuer_id=issuer_did,
max_results=limit,
)

async with client_from_auth(auth) as aries_controller:
Expand Down

0 comments on commit 56a7cd7

Please sign in to comment.