File

The response for the endpoint is directly mapped to the given file. The content-type is extracted from the file extension.

{
    "method": "GET",
    "route": "/file",
    "behaviour": [],
    "content": {
        "source": "file",
        "config": {
            "path": "./example/data/bar.json" 
        }
    }
}