Class SubscriptionRest
- java.lang.Object
-
- fr.paris.lutece.plugins.notificationstore.modules.broadcast.rs.SubscriptionRest
-
@Path("/rest/notificationstore-broadcast/api/v{version}/subscriptions") public class SubscriptionRest extends ObjectSubscriptionRest
-
-
Constructor Summary
Constructors Constructor Description SubscriptionRest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsecreateSubscription(String demand_type_id, String mail, String frequency, Integer nVersion)Create Subscriptionjavax.ws.rs.core.ResponsedeleteSubscription(Integer nVersion, Integer id)Delete Subscriptionjavax.ws.rs.core.ResponsegetSubscription(Integer nVersion, Integer id)Get Subscriptionjavax.ws.rs.core.ResponsegetSubscriptionList(Integer nVersion)Get Subscription Listjavax.ws.rs.core.ResponsemodifySubscription(Integer id, String demand_type_id, String mail, String frequency, Integer nVersion)Modify Subscription
-
-
-
Method Detail
-
getSubscriptionList
@GET @Path("") @Produces("application/json") public javax.ws.rs.core.Response getSubscriptionList(@PathParam("version") Integer nVersion)Get Subscription List- Parameters:
nVersion- the API version- Returns:
- the Subscription List
-
createSubscription
@POST @Path("") @Produces("application/json") public javax.ws.rs.core.Response createSubscription(@FormParam("demand_type_id") String demand_type_id, @FormParam("mail") String mail, @FormParam("frequency") String frequency, @PathParam("version") Integer nVersion)Create Subscription- Parameters:
nVersion- the API versiondemand_type_id- the demand_type_idmail- the mailfrequency- the frequency- Returns:
- the Subscription if created
-
modifySubscription
@PUT @Path("/{id}") @Produces("application/json") public javax.ws.rs.core.Response modifySubscription(@PathParam("id") Integer id, @FormParam("demand_type_id") String demand_type_id, @FormParam("mail") String mail, @FormParam("frequency") String frequency, @PathParam("version") Integer nVersion)Modify Subscription- Parameters:
nVersion- the API versionid- the iddemand_type_id- the demand_type_idmail- the mailfrequency- the frequency- Returns:
- the Subscription if modified
-
deleteSubscription
@DELETE @Path("/{id}") @Produces("application/json") public javax.ws.rs.core.Response deleteSubscription(@PathParam("version") Integer nVersion, @PathParam("id") Integer id)Delete Subscription- Parameters:
nVersion- the API versionid- the id- Returns:
- the Subscription List if deleted
-
-