Skip to main content
Version: 3.5.x

Get Pure REST request with BLOB response

import Joi from "joi";
import { PureRestRequest, IResponse } from "@mihanizm56/fetch-api";

export const getPhotoRequest = (): Promise<IResponse> =>
  new PureRestRequest().getBlobRequest({
    endpoint: "http://localhost:3000",
    responseSchema: Joi.any()
  });