package org.xwiki.extension.repository.xwiki;

/**
 * Resources to use to access Extension Manager REST service.
 * <p>
 * Resources producing list of result support the following arguments:
 * <ul>
 * <li>start: offset where the search start to return results</li>
 * <li>number: maximum number of results</li>
 * </ul>
 * <p>
 * Resources producing extensions descriptor support the following arguments:
 * <ul>
 * <li>language: language used to resolve the descriptor values</li>
 * </ul>
 * 
 * @version $Id$
 */
public class Resources
{
    // Entry point

    public final static String ENTRYPOINT = "/extensions";

    // Extensions

    /**
     * ?start={offset}&number={number}
     */
    public final static String EXTENSION_ID = ENTRYPOINT + "/ids/{extensionId}";

    public final static String EXTENSION = EXTENSION_ID + "/versions/{extensionVersion}";

    public final static String EXTENSIONFILE = EXTENSION + "/file";

    // Search

    /**
     * ?q={keywords}
     */
    public final static String SEARCH = ENTRYPOINT + "/search";

    /**
     * ?q={keywords}
     */
    public final static String SEARCH_FROM_ID = EXTENSION_ID + "/search";

    // Index

    public final static String EXTENSION_INDEX = ENTRYPOINT + "/index";
}

@@ -601,26 +601,26 @@
 INT = %22/
-extensions
+repository
 %22;%0A%0A    
@@ -729,19 +729,17 @@
 XTENSION
-_ID
+S
  = ENTRY
@@ -752,11 +752,83 @@
 + %22/
-ids
+extensions%22;%0A%0A    public final static String EXTENSIONS_ID = EXTENSIONS + %22
 /%7Bex
@@ -881,16 +881,25 @@
 XTENSION
+SVERSIONS
  = EXTEN
@@ -894,32 +894,33 @@
 IONS = EXTENSION
+S
 _ID + %22/versions
@@ -919,16 +919,102 @@
 versions
+%22;%0A%0A    public final static String EXTENSIONSVERSIONS_VERSION = EXTENSIONSVERSIONS + %22
 /%7Bextens
@@ -1084,16 +1084,25 @@
 XTENSION
+SVERSIONS
  + %22/fil
@@ -1317,16 +1317,17 @@
 XTENSION
+S
 _ID + %22/
@@ -1338,94 +1338,7 @@
 ch%22;
-%0A%0A    // Index%0A%0A    public final static String EXTENSION_INDEX = ENTRYPOINT + %22/index%22;
 %0A%7D%0A

Make XWiki Repository protocol more restfull