3

How to download File with open-feign, it's possible?
for example:

@RequestLine("GET /file")
File from (@Param("param") String param);
moffeltje
  • 4,521
  • 4
  • 33
  • 57
tsarenkotxt
  • 3,231
  • 4
  • 22
  • 38

1 Answers1

2

Are you using Spring?

You can use this code:

@RequestMapping(
        value = "/multipart/download/{fileId}",
        method = GET)
MultipartFile[] download(@PathVariable("fileId") String fileId);

Check the tutorial in the official Github.

Javier C.
  • 7,859
  • 5
  • 41
  • 53