Exposing restful service.