elesto-dao / elesto

The ElestoDAO node
Apache License 2.0
4 stars 1 forks source link

Expose functionality for query all credentials for a given did #121

Closed PaddyMc closed 2 years ago

PaddyMc commented 2 years ago

Enhance the grpc_query.go functionality to query for all credentials to a given issuer

https://github.com/elesto-dao/elesto/blob/main/proto/credential/v1/query.proto#L47

https://github.com/elesto-dao/elesto/blob/main/x/credential/keeper/grpc_query.go#L36-L50

singhhp1069 commented 2 years ago

@PaddyMc should we change the endpoint from

/elesto/credential/issuer/{did} to /elesto/credential/definitions/publisher/{did}.

because it clashes with this.

PaddyMc commented 2 years ago

Yeah thats perfect