code: @GET
     @Produces(MediaType.APPLICATION_JSON)
     @RolesAllowed("administrators")
     @Path("/repositories")
     public Response getRepositoryNames()
     {
        List<String> repositories = new ArrayList<String>();
  
        for (RepositoryEntry rEntry : repositoryService.getConfig().getRepositoryConfigurations())
        {
           repositories.add(rEntry.getName());
        }
  
        return Response.ok(new NamesList(repositories)).cacheControl(NO_CACHE).build();
     }
docs: Gives the name of all the existing repositories.
  
  @return Response return the Response with list of repository names
  @response
  {code:json}
  {"names" : the name of all the existing repositories }
  {code}
  @LevelAPI Experimental