如何为swagger描述zip文件?

n7taea2i  于 2021-06-30  发布在  Java
关注(0)|答案(0)|浏览(159)

rest服务返回一个zip文件。我想用招摇来形容这个。
例如,如果rest服务返回一个dto,我写:

@ApiResponse(responseCode = "200", description = "OK", content = @Content(
                mediaType = MediaType.APPLICATION_JSON_VALUE,
                schema = @Schema(implementation = Response.class)))

结果如下:

{
  "uuid": "string",
  "data": "string"
}

如何对zip文件执行此操作?文件内容不应以炫耀的方式出现

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题