Adding in the REST endpoint