public Workspaces getWorkspaces ( String repositoryName ) { String url = jsonRestClient . appendToBaseURL ( repositoryName ) ; JSONRestClient . Response response = jsonRestClient . doGet ( url ) ; if ( ! response . isOK ( ) ) { throw new RuntimeException ( JdbcI18n . invalidServerResponse . text ( url , response . asString ( ) ) ) ; } return new Workspaces ( response . json ( ) ) ; }
Returns all the workspaces for the named repository .