Link Search Menu Expand Document

Short Introduction to the Request Features

Installation

npm install @thekla/rest-abilities

Usage

import {Actor, See}                                                         from "@thekla/core";
import {ExecutingRestClient, UseTheRestApi, On, request, Get, Send, Method, Response} from "@thekla/rest-abilities";

const Martha = Actor.named(`Martha`);

const config = {};

const theRestClient = ExecutingRestClient.from(config);

Martha.can(UseTheRestApi.with(theRestClient));

const mathApiRequest = request(On.resource(`http://api.mathjs.org/v4/?expr=2*(7-3)`));

Martha.attemptsTo()