First part for the REST API