Package fr.paris.lutece.plugins.wiki.rs
Class WikiItemRest
java.lang.Object
fr.paris.lutece.plugins.wiki.rs.WikiItemRest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDTO for destination search results -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsegetItemByCode(String strCode) jakarta.ws.rs.core.ResponsesearchDestinations(String strCode, String strSearch, Integer nLimit) Search for valid move destinations for an item
-
Constructor Details
-
WikiItemRest
public WikiItemRest()
-
-
Method Details
-
getItemByCode
@GET @Path("/{code}") @Produces("application/json") public jakarta.ws.rs.core.Response getItemByCode(@PathParam("code") String strCode) -
searchDestinations
@GET @Path("/destinations/{code}") @Produces("application/json") public jakarta.ws.rs.core.Response searchDestinations(@PathParam("code") String strCode, @QueryParam("search") String strSearch, @QueryParam("limit") Integer nLimit) Search for valid move destinations for an item- Parameters:
strCode- the code of the item to movestrSearch- the search term (optional)nLimit- the maximum number of results (default 20)- Returns:
- list of destination options
-