Defined REST for all API calls.