bda-controller/src/main/java/gr/ntua/ece/cslab/selis/bda/controller/resources/MessageResource.java
@DELETE
    @Path("{slug}/{messageTypeId}")
    public Response deleteMessageType(@PathParam("slug") String slug,
                                      @PathParam("messageTypeId") Integer id) {

        try {
            MessageType.destroy(slug, id);
        } catch (Exception e) {
            e.printStackTrace();

            return Response.serverError().entity(
                    new RequestResponse("ERROR", "Could not destroy Message Type.")
            ).build();
        }

        return Response.ok(
                new RequestResponse("OK", "")
        ).build();
    }
/**
     * Delete a specific message type.
     */
Delete a specific message type.
Delete a specific message type .
@DELETE
    @Path("{slug}/{messageTypeId}")
    public Response deleteMessageType(@PathParam("slug") String slug,
                                      @PathParam("messageTypeId") Integer id) {
        try {
            MessageType.destroy(slug, id);
        } catch (Exception e) {
            e.printStackTrace();
            return Response.serverError().entity(
                    new RequestResponse("ERROR", "Could not destroy Message Type.")
            ).build();
        }
        return Response.ok(
                new RequestResponse("OK", "")
        ).build();
    }
@ DELETE @ Path ( "{slug}/{messageTypeId}" ) public Response deleteMessageType ( @ PathParam ( "slug" ) String slug , @ PathParam ( "messageTypeId" ) Integer id ) { try { MessageType . destroy ( slug , id ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; return Response . serverError ( ) . entity ( new RequestResponse ( "ERROR" , "Could not destroy Message Type." ) ) . build ( ) ; } return Response . ok ( new RequestResponse ( "OK" , "" ) ) . build ( ) ; }
Delete a specific message type.
Delete a specific message type .