Closed ghost closed 5 years ago
Hi @Ts-alan, you can use api mock to return an image like this:
{
"expression": "some/url",
"method": "GET",
"name": "my-image-mock",
"responses": {
"image": {
"default": true,
"file": "path/to/image.png",
"headers": {
"Content-type": "image/png"
}
}
}
}
How to mock images via ng-apimock?