eduvpn / eduvpn-common

Code to be shared between eduVPN clients
MIT License
5 stars 3 forks source link

Discovery: search & return less JSON keys #45

Closed jwijenbergh closed 3 months ago

jwijenbergh commented 4 months ago

This patch adds a second argument to DiscoOrganizations and DiscoServers for the search query. empty string = return all, see the docs https://github.com/eduvpn/eduvpn-common/blob/discovery-search/docs/src/api/functiondocs.md#discoorganizations

Furthermore it returns a subset of the discovery to the client, this makes it trivial for us to implement discovery v3 without breaking clients as the upstream discovery format does not match the discovery format that we return to the client now. Also due to the fact that we return very few keys, there is a lot less data to convert when disco v3 is implemented.

Removed organizations keys:

Removed servers keys:

Removed server keys:

Removed organization keys: