<commit_before>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";
}<commit_msg>XWIKI-6871: Make XWiki Repository protocol more restfull<commit_after>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 = "/repository";

    // Extensions

    /**
     * ?start={offset}&number={number}
     */
    public final static String EXTENSIONS = ENTRYPOINT + "/extensions";

    public final static String EXTENSIONS_ID = EXTENSIONS + "/{extensionId}";

    public final static String EXTENSIONSVERSIONS = EXTENSIONS_ID + "/versions";

    public final static String EXTENSIONSVERSIONS_VERSION = EXTENSIONSVERSIONS + "/{extensionVersion}";

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

    // Search

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

    /**
     * ?q={keywords}
     */
    public final static String SEARCH_FROM_ID = EXTENSIONS_ID + "/search";
}
{'fraction_non_alphanumeric': 0.11729769858945806, 'fraction_numerical': 0.0014847809948032665, 'mean_word_length': 3.2914012738853504, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7157127', 'n_tokens_mistral': 803, 'n_tokens_neox': 766, 'n_words': 246}