diff --git a/acapy_agent/askar/profile.py b/acapy_agent/askar/profile.py index 313c026bf3..8ca10d04f0 100644 --- a/acapy_agent/askar/profile.py +++ b/acapy_agent/askar/profile.py @@ -119,7 +119,7 @@ def bind_providers(self): IndyIssuer, ClassProvider("acapy_agent.indy.credx.issuer.IndyCredxIssuer", ref(self)), ) - injector.soft_bind_provider( + injector.bind_provider( VCHolder, ClassProvider( "acapy_agent.storage.vc_holder.askar.AskarVCHolder", diff --git a/acapy_agent/vc/routes.py b/acapy_agent/vc/routes.py index 47e7d1b8f6..f25b6f9cfd 100644 --- a/acapy_agent/vc/routes.py +++ b/acapy_agent/vc/routes.py @@ -133,6 +133,9 @@ async def verify_credential_route(request: web.BaseRequest): @docs(tags=["vc-api"], summary="Store a credential") +@request_schema(web_schemas.VerifyCredentialRequest()) +@response_schema(web_schemas.StoreCredentialResponse(), 200, description="") +@tenant_authentication async def store_credential_route(request: web.BaseRequest): """Request handler for storing a credential. diff --git a/acapy_agent/vc/vc_ld/models/web_schemas.py b/acapy_agent/vc/vc_ld/models/web_schemas.py index 6bd6a93035..3f43f153e9 100644 --- a/acapy_agent/vc/vc_ld/models/web_schemas.py +++ b/acapy_agent/vc/vc_ld/models/web_schemas.py @@ -47,6 +47,12 @@ class VerifyCredentialResponse(OpenAPISchema): results = fields.Nested(PresentationVerificationResultSchema) +class StoreCredentialResponse(OpenAPISchema): + """Request schema for verifying an LDP VP.""" + + credentialId = fields.Str() + + class ProvePresentationRequest(OpenAPISchema): """Request schema for proving a presentation."""