我有一个招摇的 API。端点示例:
@ApiOperation(value = "Returns a list of Pix transactions.",httpMethod = "POST",response = DResponse.class)
@PostMapping("/transactions")
public ResponseEntity<DResponse> getTransactions(@RequestBody PixTransactionRequest pixTransactionRequest) {
return ResponseEntity.ok(pixService.getTransactionsPix(pixTransactionRequest));
}
我的招摇页面正确地向我显示了所有信息:
但是当我尝试生成一个 yaml 文档时,这个描述不起作用。我在我的 yaml 文档中没有看到端点的描述(返回 Pix 事务列表。):
/api/pix/transactions:
post:
tags:
- pix-controller
operationId: getTransactions
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PixTransactionRequest'