Closed stevenvegt closed 3 years ago
@stevenvegt isn't this fixed now?
It was not broken. This is a proposal for endpoint resolving. Will be build along side the demo ehr needs.
I meant "solved", of course :-)
It might even be an API for vdr
and not didman
since resolving references is defined by the specs.
as discussed: didman
Currently didman
has only a single API for 'getting' endpoints: getCompoundServices
which returns a list of compound services for a DID. It should specify if these use resolved URLs or not.
Allow an application to resolve endpoints for a certain DID. Use the spec at https://github.com/nuts-foundation/nuts-specification/issues/78.
Create api endpoint in DIDMan to resolve endpoints for a did by type. This should automatically follow refs. It returns a
map[name]URI
.GET nodeaddress:port/internal/didman/v1/did/{did}/serviceEndpoint?type={type}
Example:
GET nodeaddress:port/internal/didman/v1/did/did:nuts:123/serviceEndpoint?type=eOverdracht
Gets internally resolved to: