From c4b3e279913fda7ca617edd0478ced7973317539 Mon Sep 17 00:00:00 2001 From: Mourits de Beer <31511766+ff137@users.noreply.github.com> Date: Mon, 2 Dec 2024 10:43:45 +0200 Subject: [PATCH] :rewind: Revert change to `list_w3c_credentials` endpoint (#1213) * :rewind: Revert change to `list_w3c_credentials` endpoint * :art: Rearrange query params --- app/routes/wallet/credentials.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/routes/wallet/credentials.py b/app/routes/wallet/credentials.py index cc9971d3b..a1d7ad698 100644 --- a/app/routes/wallet/credentials.py +++ b/app/routes/wallet/credentials.py @@ -233,14 +233,14 @@ async def get_credential_revocation_status( @router.get( - "/list/w3c", + "/w3c", response_model=VCRecordList, summary="Fetch a list of W3C credentials from the wallet", ) async def list_w3c_credentials( - schema_ids: Optional[List[str]] = None, - issuer_did: Optional[str] = None, limit: Optional[int] = None, + issuer_did: Optional[str] = None, + schema_ids: Optional[List[str]] = None, auth: AcaPyAuth = Depends(acapy_auth_from_header), ) -> VCRecordList: """ @@ -251,12 +251,12 @@ async def list_w3c_credentials( Optional Parameters: --- - schema_ids: List[str] - Schema identifiers to match - issuer_did: str - Credential issuer did to match limit: int Maximum number of results to return + issuer_did: str + Credential issuer did to match + schema_ids: List[str] + Schema identifiers to match Returns: ---