如何将Swagger的InputStream
路径参数记录为List<Person>
? ApiPath似乎没有request和requstContainer参数。提前致谢。
@POST
@Path("/V1/person/batch")
public void postPersonBatch(InputStream in) throws IOException {
try (MappingIterator<Person> people = reader.readValues(in)) {
people.forEachRemaining(writer::write);
}
}