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

  • Method Details

    • getDomains

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

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

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

      @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

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

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

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

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

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