@foscia/rest
v0.12.1
Published
Type safe, modular and intuitive API/data client for JS/TS.
Downloads
19
Readme
@foscia/rest
REST implementation for Foscia actions.
Usage
This package provides factories to create a JSON REST API action factory.
import { makeActionFactory } from '@foscia/core';
import { makeJsonRestAdapter, makeJsonRestDeserializer, makeJsonRestSerializer } from '@foscia/rest';
export default makeActionFactory({
...makeJsonRestDeserializer(),
...makeJsonRestSerializer(),
...makeJsonRestAdapter({
baseURL: '/api',
}),
});
License
@foscia/rest
is an open-sourced software licensed under the MIT license.