如何配置RAML以返回文件

时间:2015-06-01 19:56:47

标签: java raml

我正在使用RAML和Java。基于RAML文档,我可以执行以下操作来返回GET调用的文件

/file-content:
  description: The file to be reproduced by the client
  get:
    description: Get the file content
    responses:
      200:
        body:
          binary/octet-stream:
            example:
              !include heybulldog.mp3

有谁知道如何返回整个文件而不是将文件转换为二进制流?

0 个答案:

没有答案