A javascript interface to get the facilities from a rest service endpoint (test)