SOC-4326 | 4. Implement the rest service for spaces