Interface RestURLGenerator


  • @Role
    public interface RestURLGenerator
    Component to generate REST URLs for entities.
    Since:
    7.2M1
    Version:
    $Id: 969fc2091c8a4fc2d8fea257f01b1b49c79ee26d $
    • Method Detail

      • getURL

        URL getURL​(EntityReference entityReference)
            throws XWikiRestException
        Generate a REST URL to access the given entity.
        Parameters:
        entityReference - entity
        Returns:
        the REST URL to access the given entity
        Throws:
        XWikiRestException - if problems occur (e.g. the entity type is not supported)