Add JS client for working with the json-ld API
Not sure how it would look like, but a small wrapper with something like this would be nice:
- generic, so not specific for any endpoint (maybe integrate with current jsonld lookup code?) but handle the URL building
- handle hydro collections and pagination (with generators maybe?)
- handles timeouts, and cancellation
- hide fetch() things a bit, like accept, error handling
- expose our custom api error codes