Class DocumentsResource

java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.rest.documents.impl.resources.DocumentsResource
All Implemented Interfaces:
RestResource

@Path("/documents") public class DocumentsResource extends AbstractRestResource
This class is used for dms related endpoints that should be shown in our public swagger documentation.
  • Constructor Details Link icon

  • Method Details Link icon

    • getDomains Link icon

      @GET @Produces("application/json") public CollectionBean getDomains()
    • getAll Link icon

      @Path("/all") @GET @Produces("application/json") public CollectionBean getAll()
    • getChildren Link icon

      @Path("/{node-type}/{pk}") @GET @Produces("application/json") public CollectionBean getChildren(@PathParam("node-type") String nodeType, @PathParam("pk") String pk)
    • addDocs Link icon

      @Path("/{node-type}/{pk}") @POST @Consumes("multipart/form-data") @Produces("application/json") public jakarta.ws.rs.core.Response addDocs(@PathParam("node-type") String nodeType, @PathParam("pk") String pk, org.glassfish.jersey.media.multipart.FormDataMultiPart multiPart)
    • getDomainsCount Link icon

      @GET @Produces("application/json") @Path("/count") public CountBean getDomainsCount()
    • getAllCount Link icon

      @GET @Produces("application/json") @Path("/all/count") public CountBean getAllCount()
    • getChildrenCount Link icon

      @GET @Produces("application/json") @Path("/{node-type}/{pk}/count") public CountBean getChildrenCount(@PathParam("node-type") String nodeType, @PathParam("pk") String pk)
    • move Link icon

      @Path("/move") @POST @Consumes("application/json") public jakarta.ws.rs.core.Response move(MoveRequestBean bean)
    • delete Link icon

      @POST @Consumes("application/json") @Produces("application/json") @Path("/delete") public DeleteEntitiesResponseBean delete(DeleteRequestBean bean)