-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📝 Update wallet credentials docstrings (#814)
* update wallet credentials docstrings * make endpoint POST has a body * remove wql,count,start not used in agent * rename to record_id as it is in the credential * update docstrings * update docstrings and revert back to credential_id * extend models and add credential_id field * remove unused imports * route classes with get indy credential by id * update docstrings and revert back to credential_id * formatting * remove full stop * rename models * formatting * update models * update docstrings * formatting * add description to models * update docstrings * remove link from docstrings * minor updates to docstrings * reduce and rename * add deprecated and change description * 🎨 --------- Co-authored-by: ff137 <[email protected]> Co-authored-by: cl0ete <[email protected]>
- Loading branch information
Showing
2 changed files
with
220 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,43 @@ | ||
from typing import List, Optional | ||
|
||
from aries_cloudcontroller.models.indy_cred_info import ( | ||
IndyCredInfo as IndyCredInfoAcaPy, | ||
) | ||
from aries_cloudcontroller.models.vc_record import VCRecord as VCRecordAcaPy | ||
from pydantic import BaseModel, Field | ||
|
||
|
||
class SetDidEndpointRequest(BaseModel): | ||
endpoint: str = Field(...) | ||
|
||
|
||
class VCRecord(VCRecordAcaPy): | ||
credential_id: str = Field( | ||
..., alias="record_id", description="Credential identifier" | ||
) | ||
record_id: str = Field( | ||
..., | ||
alias="credential_id", | ||
description="(deprecated - renamed to credential_id) Credential identifier", | ||
deprecated=True, | ||
) | ||
|
||
|
||
class VCRecordList(BaseModel): | ||
results: Optional[List[VCRecord]] = None | ||
|
||
|
||
class IndyCredInfo(IndyCredInfoAcaPy): | ||
credential_id: str = Field( | ||
..., alias="referent", description="Credential identifier" | ||
) | ||
referent: str = Field( | ||
..., | ||
alias="credential_id", | ||
description="(deprecated - renamed to credential_id) Credential identifier", | ||
deprecated=True, | ||
) | ||
|
||
|
||
class CredInfoList(BaseModel): | ||
results: Optional[List[IndyCredInfo]] = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ek het hierdie gemis. GET /w3c was ge-rename na GET /list/w3c. Ek dink nie ons moes dit verander nie.