/*
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */

package org.xwiki.repository.internal.resources;

import javax.inject.Singleton;
import javax.ws.rs.GET;
import javax.ws.rs.Path;

import org.xwiki.component.annotation.Component;
import org.xwiki.extension.repository.xwiki.model.jaxb.Repository;
import org.xwiki.repository.Resources;

/**
 * @version $Id$
 * @since 7.1RC1
 */
@Component("org.xwiki.repository.internal.resources.RepositoryRESTResource")
@Path(Resources.ENTRYPOINT)
@Singleton
public class RepositoryRESTResource extends AbstractExtensionRESTResource
{
    @GET
    public Repository get()
    {
        Repository result = this.extensionObjectFactory.createRepository();

        result.setFilterable(true);
        result.setSortable(true);
        result.setVersion(Resources.VERSION11);

        return result;
    }
}

@@ -1409,16 +1409,80 @@
 ource%0A%7B%0A
+    /**%0A     * @return the root repository informations%0A     */%0A
     @GET

Implement advanced search in XWiki based Extension Repository REST * fix checkstyle