UNPKG

database-all

Version:

MIMS Drug Database integration

18 lines (16 loc) 698 B
import APIUrl from "../helpers/ApiUrl"; import MakeRequest from "../helpers/makeRequest"; import { IFullPISearchObj } from "../interfaces/Interfaces"; export default class FullPIs { static async searchProducts(searchParam: IFullPISearchObj) { const postData = null; const fullPIList = await MakeRequest.httpRequest(APIUrl.getFullPIListAPI(), "GET", postData, searchParam); return fullPIList; } static async fullPIDetails(fullPIId: string) { const postData = null; let params = null; const fullPIDetails = await MakeRequest.httpRequest(APIUrl.getFullPIDetailsAPI(fullPIId), "GET", postData, params); return fullPIDetails; } }