UNPKG

mims-drug-database

Version:

MIMS Drug Database integration

18 lines (16 loc) 720 B
import APIUrl from "../helpers/ApiUrl"; import MakeRequest from "../helpers/makeRequest"; import { IABBREVPIsSearchObj } from "../interfaces/Interfaces"; export default class ABBREVPI { static async searchProducts(searchParam: IABBREVPIsSearchObj) { const postData = null; const productsList = await MakeRequest.httpRequest(APIUrl.getABBREVPIListAPI(), "GET", postData, searchParam); return productsList; } static async getABBREVPIDetails(abbrevPIId: string) { const postData = null; let params = null; const brandDetails = await MakeRequest.httpRequest(APIUrl.getABBREVPIDetailsAPI(abbrevPIId), "GET", postData, params); return brandDetails; } }