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