public List < Namespace > getNamespaces ( int page , int perPage ) throws GitLabApiException { Response response = get ( Response . Status . OK , getPageQueryParams ( page , perPage ) , "namespaces" ) ; return ( response . readEntity ( new GenericType < List < Namespace > > ( ) { } ) ) ; }
Get a list of the namespaces of the authenticated user . If the user is an administrator a list of all namespaces in the GitLab instance is returned .