@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.