Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Commit

Permalink
Add RemoveCredentialByName to aries js helpers (#3318)
Browse files Browse the repository at this point in the history
Function was available in the core but was missing from the JavaScript
wrappers.

Signed-off-by: Boran Car <boran.car@gmail.com>
  • Loading branch information
borancar authored Jan 30, 2023
1 parent 9b1e5b7 commit 76c8467
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/aries-js-worker/src/agent-rest-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ const pkgs = {
method: "GET",
pathParam: "name"
},
RemoveCredentialByName: {
path: "/verifiable/credential/remove/name/{name}",
method: "POST",
pathParam: "name"
},
GetCredentials: {
path: "/verifiable/credentials",
method: "GET",
Expand Down
4 changes: 4 additions & 0 deletions cmd/aries-js-worker/src/aries.js
Original file line number Diff line number Diff line change
Expand Up @@ -1086,6 +1086,10 @@ const Aries = function (opts) {
return invoke(aw, pending, this.pkgname, "GetCredentialByName", req, "timeout while retrieving verifiable credential by name")
},

removeCredentialByName: async function (req) {
return invoke(aw, pending, this.pkgname, "RemoveCredentialByName", req, "timeout while removing credential")
},

/**
* Retrieves verifiable credential records containing name and id.
*
Expand Down

0 comments on commit 76c8467

Please sign in to comment.