Class WikiSuggestionRest

java.lang.Object
fr.paris.lutece.plugins.wiki.rs.WikiSuggestionRest

@ApplicationScoped @Path("wiki/suggestion") public class WikiSuggestionRest extends Object
REST endpoint exposing every suggestion visible to the authenticated user in a single list, each row tagged with a scope ("mine" or "review"). Drives the unified suggestions page and the header badge.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Slim view of a suggestion suitable for list rendering, without heavy content.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.ws.rs.core.Response
    Returns all suggestions visible to the current user: every proposal they authored (any status), plus pending proposals on items they can edit and did not author themselves.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WikiSuggestionRest

      public WikiSuggestionRest()
  • Method Details

    • list

      @GET @Produces("application/json") public jakarta.ws.rs.core.Response list()
      Returns all suggestions visible to the current user: every proposal they authored (any status), plus pending proposals on items they can edit and did not author themselves.
      Returns:
      401 if no user is authenticated, otherwise the JSON list of WikiSuggestionRest.SuggestionDto