Add GET
method for Issuer /credentials
and /offers
endpoints
#118
Labels
Added
A new feature that requires a minor release.
Description
This will ensure that all Credentials and Offers can be queried.
A
ListAllQuery
need to be added toagent_store
similar to the way it is implemented infn holder_state
in bothpostgres.rs
andin_memory.rs
.The endpoints handlers need to be added to
agent_api_rest
The following can be copied into
fn issuer_state
(including the lines that initialize theall_credentials
andall_offers
View Repositories):Important detail is that in order for the
view_id
's not to overlap with each other those current three lines infn holder_state
need to be changed to:This means that all other code occurrences of
all_credentials
andall_offers
need to be updated as well (including inside theinit.sql
file):all_credentials
-->all_holder_credentials
all_offers
-->all_received_offers
The View Repositories are added to
agent_holder::state::ViewRepositories
infn holder_state
. The exact same thing needs to be implemented infn issuer_state
. This means thatagent_issuer::state::ViewRepositories
needs to be updated to include theall_credentials
andall_offers
View Repositories the same way it is done inagent_holder::state::ViewRepositories
:This also means that
AllCredentialsView
andAllOffersView
can be copy-pasted from theagent_holder
crate. In the same fashion as earlier mentioned, the following occurrences should be renamed:AllCredentialsView
-->AllHolderCredentialsView
AllOffersView
-->AllReceivedOffersView
Motivation
Improves UniCore's utility
Resources
n/a
To-do List
AllCredentialsView
andAllOffersView
GET
method for/credentials
GET
method for/offers
The text was updated successfully, but these errors were encountered: