egg*_*egg 5 swagger swagger-codegen
我正在使用 swagger-codegen 生成 JAVA 类。
我想用 ResponseEntity 生成一个类ResponseEntity<InputStreamResource>。
例如:
ResponseEntity<InputStreamResource> pmml(@RequestParam(value = "modelUuid") String modelUuid);
Run Code Online (Sandbox Code Playgroud)
我使用下面的 yaml 生成 JAVA 类。
paths:
/report:
get:
summary: Returns the report in the PDF format
responses:
'200':
description: A PDF file
content:
application/octet-stream:
schema:
type: string
format: binary
Run Code Online (Sandbox Code Playgroud)
但它只生成 java 类,如下所示:
paths:
/report:
get:
summary: Returns the report in the PDF format
responses:
'200':
description: A PDF file
content:
application/octet-stream:
schema:
type: string
format: binary
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
908 次 |
| 最近记录: |