Discovery hints with REST API

Does anyone know how to use the discovery hint interface? I can’t get it to work, although I can use other parts of the API.

It was introduced here:

And documented here: http://docs.syncthing.net/rest/system-discovery-hint-post.html

$ STTRACE=discover,http syncthing
$ curl -X POST --header "X-API-Key:exampleapikey" http://127.0.0.1:8080/rest/system/discovery/hint?device=REMOTE-EXAMPL-EDEVIC-E12345\&addr=192.0.2.1:22000
404 page not found

And then in the logs:

[LOCAL] 2015/07/08 15:07:53.893464 gui.go:309: DEBUG: http: POST "/rest/system/discovery/hint?device=REMOTE-EXAMPL-EDEVIC-E12345&addr=192.0.2.1:22000": status 404, 19 bytes in 0.25 ms

the documentation or the code is wrong, it seems to be /rest/system/discovery, without /hint

@lfam

Do you use this feature? What for?

/cc @Nutomic as the original requester, @Zillode as another involved Android wrapper…

I’m not actively using that part of the interface.

I had wanted to connect it to a external, decentralized discovery system, but I lost steam and haven’t completed it.

I still would like to make that system work, so something like the discovery hints would be useful.

1 Like

A post was split to a new topic: Own web page using the REST API

I just grepped, we don’t use that anywhere.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.