Exposing rest endpoint. Need to work on securing.