我正在尝试将开放式 API 添加到我的项目中,以便它可以向我的 baseURL 公开 swagger。 这是我的请求映射
@PostMapping(path = "/{referenceId}")
public Mono<DocumentUploadResponse> upload(
@PathVariable(value = "referenceId") String referenceId,
@RequestPart(value = "documents") List<FilePart> document,
@RequestPart(value = "documentsMetaData") DocumentMetaDataApplicationRequest documentMetaDataApplicationRequest) {
return documentStorageService.upload(referenceId, document, documentMetaDataApplicationRequest);
}
这是我的 APIContract
parameters = {
@Parameter(
in = ParameterIn.PATH,
name = "referenceId",
description = "unique Id provided by consumer application, against which documents are stored for respective bookings"),
@Parameter(
in = ***? what to write here for my @RequestPart?***
name = "documents",
description = "The number of the booking."),
@Parameter(
in = **? what to write here for my @RequestPart?**
name = "documentsMetaData",
description = "The number of the booking.")
})
我应该在这里使用什么 -in = ParameterIn.PATH for @RequestPart