REST interface to a directory application