我在试着用一个蓝图。
如何像下面的Laravel代码一样编写apib?
public function getDownload()
{
//PDF file is stored under project/public/download/info.pdf
$file= public_path(). "/download/info.pdf";
$headers = array(
'Content-Type: application/pdf',
);
return Response::download($file, 'filename.pdf', $headers);
}apib文件
## getDownload [GET]
+ Response 200 (application/pdf)??发布于 2020-08-13 18:39:43
您缺少资源。它应该是这样的:
## Resource Title [/path-to-get-the-pdf]
### Download [GET]
+ Response 200 (application/pdf)https://stackoverflow.com/questions/63145562
复制相似问题