Package fr.paris.lutece.plugins.wiki.rs
Class WikiSuggestionRest
java.lang.Object
fr.paris.lutece.plugins.wiki.rs.WikiSuggestionRest
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 ClassesModifier and TypeClassDescriptionstatic classSlim view of a suggestion suitable for list rendering, without heavy content. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Responselist()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.
-
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
-