Skip to main content

Foscia

Website Documentation

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