Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update JIT Credential Issuance documentation #115

Draft
wants to merge 32 commits into
base: dev
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
4ffa6d1
feat init agetn_holder
nanderstabel Aug 22, 2024
ebfc36d
feat: add `HolderState`
nanderstabel Aug 26, 2024
bca826e
feat: add Holder functionality to `agent_store` and `agent_api_rest`
nanderstabel Aug 26, 2024
75d7a31
feat: add Holder functionality to Event Publisher
nanderstabel Aug 26, 2024
c2b2d62
feat: add `SendCredentialOffer` to `agent_verification`
nanderstabel Aug 26, 2024
87d061f
feat: add `/offers/send` issuance endpoint to `agent_api_rest`
nanderstabel Aug 26, 2024
34ff280
fix: remove incorrect Content Type
nanderstabel Aug 27, 2024
7f1ab4f
feat: add `Status` enum
nanderstabel Aug 27, 2024
302e63f
feat: add REST API for Holder
nanderstabel Aug 27, 2024
2673bac
feat: add `AllOffersView`
nanderstabel Aug 27, 2024
5ee0ae4
feat: add Holder views to `init.sql`
nanderstabel Aug 27, 2024
1babdd4
fix: fix `OfferView` update
nanderstabel Aug 27, 2024
7bcc730
feat: add credentials endpoint for Holder
nanderstabel Aug 27, 2024
2000769
refactor: refactor Router
nanderstabel Aug 27, 2024
7599bee
test: refactor test framework
nanderstabel Aug 30, 2024
805591e
refactor: deprecate `path` closure
nanderstabel Aug 30, 2024
dc8c25d
refactor: remove unused dependencies
nanderstabel Aug 30, 2024
9f20fb6
style: add clippy exception
nanderstabel Aug 30, 2024
7c13929
build: bump oid4vc dependencies
nanderstabel Aug 30, 2024
384244c
refactor: move all `CustomQuery` logic to `agent_shared`
nanderstabel Aug 30, 2024
4c39ac7
fix: add Into<SubjectSyntaxType> for SupportedDidMethod
nanderstabel Aug 30, 2024
29f25da
fix: return 200 OK when list is empty
nanderstabel Aug 30, 2024
e08a045
refactor: clean up code
nanderstabel Aug 30, 2024
f307da3
fix: Fix error handling for the Offer aggregate
nanderstabel Aug 30, 2024
29e90d1
fix: add error handling for to Offer aggregate
nanderstabel Aug 30, 2024
cda0b76
refactor: apply clippy suggestion
nanderstabel Aug 30, 2024
bb43a33
test: update Postman Collection
nanderstabel Aug 30, 2024
5aae168
feat: add Events to `config.rs`
nanderstabel Aug 30, 2024
3056a09
docs: add new Holder events to `agent_event_publisher_http` document…
nanderstabel Aug 30, 2024
fa0e631
Merge branch 'dev' into feat/holder-init
nanderstabel Aug 30, 2024
266a1ba
docs: update JIT Credential Issuance documentation
nanderstabel Aug 30, 2024
5120404
docs: use http code block
nanderstabel Aug 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: deprecate path closure
nanderstabel committed Aug 30, 2024
commit 805591e499de509639c0cd457f434de6d193884c
22 changes: 6 additions & 16 deletions agent_api_rest/src/lib.rs
Original file line number Diff line number Diff line change
@@ -19,26 +19,16 @@ pub struct ApplicationState {
pub verification_state: Option<VerificationState>,
}

pub fn app(state: ApplicationState) -> Router {
let ApplicationState {
pub fn app(
ApplicationState {
issuance_state,
holder_state,
verification_state,
} = state;

let base_path = get_base_path();

let path = |suffix: &str| -> String {
if let Ok(base_path) = &base_path {
format!("/{}{}", base_path, suffix)
} else {
suffix.to_string()
}
};

}: ApplicationState,
) -> Router {
Router::new()
.nest(
&path(Default::default()),
&get_base_path().unwrap_or_default(),
Router::new()
.merge(issuance_state.map(issuance::router).unwrap_or_default())
.merge(holder_state.map(holder::router).unwrap_or_default())
@@ -89,7 +79,7 @@ fn get_base_path() -> Result<String, ConfigError> {

tracing::info!("Base path: {:?}", base_path);

base_path
format!("/{}", base_path)
})
}

Loading