UNPKG

fluentrest-ts

Version:

A lightweight, fluent TypeScript API testing library inspired by Java's RestAssured. Built on top of Axios, JSONPath, and Joi for powerful request handling and response validation.

9 lines (8 loc) 338 B
import { AxiosResponse } from "axios"; /** * Extracts a value from the Axios response body using a JSONPath expression. * @param response - Axios response * @param path - JSONPath string expression * @returns The first match from the path, or undefined */ export declare function extract(response: AxiosResponse, path: string): any;