radius-read
Version:
Realtime Dashboard
21 lines (20 loc) • 601 B
TypeScript
import { HTTP_METHOD } from "./../enums/http.enum";
import { EntityResult } from "./../models/result.model";
/**
* Service for managing API routes and handling requests.
*/
export declare class APIService {
/**
* Creates an instance of APIService.
*/
constructor();
/**
* Executes an HTTP request with the specified method, URL, headers, and payload.
* @param method
* @param url
* @param headers
* @param payload
* @returns
*/
static executeRequest(method: HTTP_METHOD, url: string, headers: any, payload: any): Promise<EntityResult>;
}