mswjs / data

Data modeling and relation library for testing JavaScript applications.

Home Page:https://npm.im/@mswjs/data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add toHandlers('json-api') support

leepfrog opened this issue · comments

Hello! Thanks for the awesome tool!

I am wondering if you would accept a PR that adds toHandlers('json-api')? This would add support for the JSON:API Specification: https://jsonapi.org

I have a rough-draft working implementation: https://gist.github.com/leepfrog/ae977c81fcb705d8fd0bc104016c0272 that I could refactor into the same usage pattern as toHandlers('rest') and toHandlers('graphql'), add tests for, etc..