kadaster-labs / solid-quest

Our journey on SOLID
https://labs.kadaster.nl/cases/Solid-Pods
MIT License
3 stars 1 forks source link

Add VC API #37

Closed kad-busses closed 1 year ago

kad-busses commented 1 year ago

Follows on https://github.com/kadaster-labs/solid-quest/pull/31.

This PR adds a VC API server, added as git submodule. This means that while the code is included in this repo (for easy building with Docker Compose) it is instead located at https://github.com/kadaster-labs/vc-api-nodejs.

This PR simultaneously adds the client code for said VC API, using the same API definitions (the spec from https://github.com/w3c-ccg/vc-api/). This provides a clean and easy to use interface for accessing the VC API:

const api = new IssuerApi({ basePath: "http://localhost:8080" });
const credential = await api.issueCredential();
console.log("Recieved credential", credential);

This should lay a nice foundation for further VC demo functionality

kad-busses commented 1 year ago

Haha ja, deze heeft nog wat uitleg nodig, daarom was die ook nog in draft 🙈

marcvanandel commented 1 year ago

Cloned with git submodule update --init --recursive