feathers-hooks-jsonapify:羽毛钩子以兼容JSON-API的方式输出数据

时间:2021-05-03 16:00:33
【文件属性】:
文件名称:feathers-hooks-jsonapify:羽毛钩子以兼容JSON-API的方式输出数据
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-03 16:00:33
json-api-serializer feathers-hook JavaScript feathers-hooks-jsonapify 羽毛钩子以兼容JSON-API的方式输出数据。 目前可与Sequelize用作适配器配合使用。 计划将来支持更多的适配器。 正在安装 只需运行npm install --save feathers-hooks-jsonapify ,您就可以开始了! 用法 该钩子旨在与feathers-rest一起使用,因为它将把该提供程序的响应转换为JSON-API兼容的文档。 需要挂钩: const jsonapify = require ( 'feathers-hooks-jsonapify' ) ; 然后选择如何实现它。 捆绑服务 app . service ( 'messages' ) . hooks ( { after : { find : [ jsonapify ( ) ] , get : [ jsonapify
【文件预览】:
feathers-hooks-jsonapify-master
----.gitignore(578B)
----package.json(684B)
----package-lock.json(927B)
----LICENSE(1KB)
----index.js(11KB)
----README.md(6KB)

网友评论