java.lang.Object
fr.paris.lutece.plugins.mydashboard.modules.favorites.rest.rs.FavoritesRest

@Path("/rest/favorites-api") public class FavoritesRest extends Object
FavoritesRest
  • Constructor Details

    • FavoritesRest

      public FavoritesRest()
  • Method Details

    • getFavorites

      @GET @Path("/lastFavorites") @Produces("application/json") public javax.ws.rs.core.Response getFavorites(@Context javax.servlet.http.HttpServletRequest request)
      Get last favorites
      Parameters:
      request -
      nNbFavoritesToShow -
      Returns:
      Json
    • getAllFavorites

      @GET @Path("/allFavorites") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response getAllFavorites(@Context javax.servlet.http.HttpServletRequest request)
      Get all favorites
      Parameters:
      request -
      nNbFavoritesToShow -
      Returns:
      Json
    • addFavorite

      @POST @Path("/add") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response addFavorite(String strFavoriteJson, @HeaderParam("X-API-KEY") String strApiKey)
    • removeFavorite

      @DELETE @Path("/remove/{id}") @Produces("application/json") public javax.ws.rs.core.Response removeFavorite(@PathParam("id") Integer id, @HeaderParam("X-API-KEY") String strApiKey)