public List < Space > getSpaces ( int orgId ) { return getResourceFactory ( ) . getApiResource ( "/org/" + orgId + "/space/" ) . get ( new GenericType < List < Space > > ( ) { } ) ; }
Returns all the spaces for the organization .