Test your endpoint with real Request and Response objects.
import {testEndpoint} from '@rest-vir/host';import {HttpMethod} from '@rest-vir/api';const response = await testEndpoint( myApiImplementation.implementation.endpoints['/my-endpoint'], HttpMethod.Get, () => { return {context: undefined}; },); Copy
import {testEndpoint} from '@rest-vir/host';import {HttpMethod} from '@rest-vir/api';const response = await testEndpoint( myApiImplementation.implementation.endpoints['/my-endpoint'], HttpMethod.Get, () => { return {context: undefined}; },);
@rest-vir/host
Test your endpoint with real Request and Response objects.