Skip to content

Endpoint discoverability

Currently the client has a file config.json which stores the authority and the endpoints used e.g.

// config.json

{
    "xmpp":"https://jabber.happy-dev.fr/http-bind/",
    "authority":"https://localhost:8443/",
    "get": { "circles":"https://localhost:8443/circles/", ... },
    "post": { "circles":"https://localhost:8443/circles/", ... },
    ...
}

The endpoints are thus hardcoded, and the knowledge I have of what the circles endpoint is, is implicit

How should it work?

This seems like a reasonably-sized topic

A dynamic/universal approach was proposed by Ruben Verborgh using Shapes (#368 )

We could leave this to be a the client application's problem and I think that would be reasonable, which makes this a feature request

Edited by Calum Mackervoy