Wrote a basic rest server.