Class CollectMetadataInternalResource

java.lang.Object
fr.gouv.vitam.common.server.application.resources.ApplicationStatusResource
fr.gouv.vitam.collect.internal.rest.CollectMetadataInternalResource

@Path("/collect-internal/v1") public class CollectMetadataInternalResource extends ApplicationStatusResource
  • Constructor Details

  • Method Details

    • getUnitById

      @Path("/units/{unitId}") @GET @Produces("application/json") public javax.ws.rs.core.Response getUnitById(@PathParam("unitId") String unitId)
    • uploadObjectGroup

      @Path("/units/{unitId}/objects/{usage}/{version}") @POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response uploadObjectGroup(@PathParam("unitId") String unitId, @PathParam("usage") String usageString, @PathParam("version") Integer version, @Valid @Valid ObjectDto objectDto)
    • getObjectById

      @Path("/objects/{gotId}") @GET @Produces("application/json") public javax.ws.rs.core.Response getObjectById(@PathParam("gotId") String gotId)
    • upload

      @Path("/units/{unitId}/objects/{usage}/{version}/binary") @POST @Consumes("application/octet-stream") @Produces("application/json") public javax.ws.rs.core.Response upload(@PathParam("unitId") String unitId, @PathParam("usage") String usageString, @PathParam("version") Integer version, InputStream uploadedInputStream) throws CollectInternalException
      Throws:
      CollectInternalException
    • download

      @Path("/units/{unitId}/objects/{usage}/{version}/binary") @GET @Produces("application/octet-stream") public javax.ws.rs.core.Response download(@PathParam("unitId") String unitId, @PathParam("usage") String usageString, @PathParam("version") Integer version)