src/main/java/org/trellisldp/http/MultipartUploader.java
/**
     * Get a list of the uploads
     * @param partition the partition
     * @param id the upload id
     * @return a response
     *
     * <p>Note: the response structure will be like this:</p>
     * <pre>{
     *   "1": "somehash",
     *   "2": "otherhash",
     *   "3": "anotherhash"
     * }</pre>
     */
Get a list of the uploads
@param partition the partition
@param id the upload id
@return a response


Get a list of the uploads @param partition the partition @param id the upload id @return a response
@GET
    @Timed
    @Produces("application/json")
    public String listUploads(@PathParam("partition") final String partition,
            @PathParam("id") final String id) {
        final JsonObjectBuilder builder = Json.createObjectBuilder();
        binaryService.getResolverForPartition(partition)
            .filter(BinaryService.Resolver::supportsMultipartUpload)
            .filter(res -> res.uploadSessionExists(id))
            .map(res -> res.listParts(id))
            .orElseThrow(NotFoundException::new)
            .forEach(x -> builder.add(x.getKey().toString(), x.getValue()));
        return builder.build().toString();
    }
@ GET @ Timed @ Produces ( "application/json" ) public String listUploads ( @ PathParam ( "partition" ) final String partition , @ PathParam ( "id" ) final String id ) { final JsonObjectBuilder builder = Json . createObjectBuilder ( ) ; binaryService . getResolverForPartition ( partition ) . filter ( BinaryService . Resolver :: supportsMultipartUpload ) . filter ( res -> res . uploadSessionExists ( id ) ) . map ( res -> res . listParts ( id ) ) . orElseThrow ( NotFoundException :: new ) . forEach ( x -> builder . add ( x . getKey ( ) . toString ( ) , x . getValue ( ) ) ) ; return builder . build ( ) . toString ( ) ; }
Get a list of the uploads
 @param partition the partition
 @param id the upload id
 @return a response
Get a list of the uploads @param partition the partition @param id the upload id @return a response