Interface NotifyRestService

  • All Known Implementing Classes:
    NotifyRestServiceImpl

    public interface NotifyRestService
    Version:
    Septempber 15, 2017
    Author:
    Yuriy Movchan
    • Method Detail

      • registerDevice

        @POST
        @Consumes("application/x-www-form-urlencoded")
        @Produces("application/json")
        @Path("/register")
        jakarta.ws.rs.core.Response registerDevice​(@HeaderParam("Authorization")
                                                   String authorization,
                                                   @FormParam("token")
                                                   String token,
                                                   @FormParam("user_data")
                                                   String userData,
                                                   @Context
                                                   jakarta.servlet.http.HttpServletRequest httpRequest)
      • sendNotification

        @POST
        @Consumes("application/x-www-form-urlencoded")
        @Produces("application/json")
        @Path("/notify")
        jakarta.ws.rs.core.Response sendNotification​(@HeaderParam("Authorization")
                                                     String authorization,
                                                     @FormParam("enpoint")
                                                     String endpoint,
                                                     @FormParam("message")
                                                     String message,
                                                     @Context
                                                     jakarta.servlet.http.HttpServletRequest httpRequest)