mardi 26 mai 2015

Testing a Rest Api which accepts a zip file as input

I have a rest Api like below.

@POST
@Path("/importFile")
@Consumes("application/zip")
@ApiOperation(value = "Importing File")
public List<String> importFile(InputStream is) throws IOException {
    ZipInputStream zipInputStream = new ZipInputStream(is);
    return importFile(zipInputStream);
}

How can I test it ?

Aucun commentaire:

Enregistrer un commentaire