I am writing a simple API documentation, but at one endpoint, I am sending pdf or img files in Express.js with res.status(200).download(file); How can I add this to the example response of the API documentation list ?
If it would be res.status(200).json({msg: "success"}); then I would add it as
{
"msg" : "success"
}
But how do I show it in the documentation ?