Am Montag, den 08.12.2014, 14:46 +0100 schrieb Simon Tennant:
> Thinking about Buddycloud.js:
> * Discovering the REST API can be done with DNS or by using
A common discovery mechanism in the web is to use a well-known URL [1].
For instance, a HTTP request such as
GET /.well-known/buddycloud-api HTTP/1.1
Host:
example.com
could yield a JSON response such as the following:
{
"api-version": 1,
"api-root": "
https://buddycloud.example.com/api/v1"
}
Regards,
Denis
[1]
https://www.rfc-editor.org/rfc/rfc5785.txt