Interface ClassificationRestService

  • All Known Implementing Classes:
    ClassificationRestServiceImpl

    @Path("classifications")
    @Produces("application/json")
    @Consumes("application/json")
    public interface ClassificationRestService
    • Method Detail

      • getRules

        @GET
        @Produces("application/json")
        javax.ws.rs.core.Response getRules​(@Context
                                           javax.ws.rs.core.UriInfo uriInfo)
      • getRule

        @GET
        @Path("{id}")
        javax.ws.rs.core.Response getRule​(@PathParam("id")
                                          int id)
      • saveRule

        @POST
        javax.ws.rs.core.Response saveRule​(RuleDTO ruleDTO)
      • deleteRules

        @DELETE
        javax.ws.rs.core.Response deleteRules​(@Context
                                              javax.ws.rs.core.UriInfo uriInfo)
      • deleteRule

        @DELETE
        @Path("{id}")
        javax.ws.rs.core.Response deleteRule​(@PathParam("id")
                                             int id)
      • updateRule

        @PUT
        @Path("{id}")
        javax.ws.rs.core.Response updateRule​(@PathParam("id")
                                             int id,
                                             RuleDTO newValue)
      • classify

        @POST
        @Path("classify")
        javax.ws.rs.core.Response classify​(ClassificationRequestDTO classificationRequestDTO)
      • getGroups

        @GET
        @Path("groups")
        javax.ws.rs.core.Response getGroups​(@Context
                                            javax.ws.rs.core.UriInfo uriInfo)
      • getGroup

        @GET
        @Path("groups/{id}")
        @Produces({"application/json","text/comma-separated-values"})
        javax.ws.rs.core.Response getGroup​(@PathParam("id")
                                           int groupId,
                                           @QueryParam("format")
                                           String format,
                                           @QueryParam("filename")
                                           String requestedFilename,
                                           @HeaderParam("Accept")
                                           String acceptHeader)
      • saveGroup

        @POST
        @Path("groups")
        javax.ws.rs.core.Response saveGroup​(GroupDTO groupDTO)
      • deleteGroup

        @DELETE
        @Path("groups/{id}")
        javax.ws.rs.core.Response deleteGroup​(@PathParam("id")
                                              int groupId)
      • updateGroup

        @PUT
        @Path("groups/{id}")
        javax.ws.rs.core.Response updateGroup​(@PathParam("id")
                                              int id,
                                              GroupDTO newValue)
      • importRules

        @POST
        @Path("groups/{id}")
        @Consumes("text/comma-separated-values")
        javax.ws.rs.core.Response importRules​(@PathParam("id")
                                              int id,
                                              @Context
                                              javax.ws.rs.core.UriInfo uriInfo,
                                              InputStream inputStream)
      • getProtocols

        @GET
        @Path("protocols")
        javax.ws.rs.core.Response getProtocols()