Class SubscriptionRest


  • @Path("/rest/notificationstore-broadcast/api/v{version}/subscriptions")
    public class SubscriptionRest
    extends Object
    SubscriptionRest
    • Constructor Detail

      • SubscriptionRest

        public SubscriptionRest()
    • 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 version
        demand_type_id - the demand_type_id
        mail - the mail
        frequency - 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 version
        id - the id
        demand_type_id - the demand_type_id
        mail - the mail
        frequency - 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 version
        id - the id
        Returns:
        the Subscription List if deleted
      • getSubscription

        @GET
        @Path("/{id}")
        @Produces("application/json")
        public javax.ws.rs.core.Response getSubscription​(@PathParam("version")
                                                         Integer nVersion,
                                                         @PathParam("id")
                                                         Integer id)
        Get Subscription
        Parameters:
        nVersion - the API version
        id - the id
        Returns:
        the Subscription