ember-api-actions:在ember.js应用中触发API操作

时间:2024-06-01 04:20:28
【文件属性】:

文件名称:ember-api-actions:在ember.js应用中触发API操作

文件大小:266KB

文件格式:ZIP

更新时间:2024-06-01 04:20:28

TypeScript

余烬API作用 在通常不适合CRUD RESTful API设计的余烬数据资源上触发“远程”操作。 例如,如果您有宁静的API端点,例如 GET /fruits POST /fruits GET /fruits/123 PUT /fruits/123 DELETE /fruits/123 如果您想使用以下API端点会发生什么: PUT /fruits/123/ripen GET /fruits/citrus Rails API路由示例: config / routes.rb Rails . application . routes . draw do resources :fruits do member do put 'ripen' to : 'fruits#ripen' end colle


【文件预览】:
ember-api-actions-master
----.travis.yml(2KB)
----.ember-cli(280B)
----ember-cli-build.js(514B)
----vendor()
--------.gitkeep(0B)
----addon()
--------utils()
--------index.ts(311B)
--------.gitkeep(0B)
----config()
--------ember-try.js(2KB)
--------environment.js(90B)
----index.js(71B)
----renovate.json(56B)
----.jscsrc(67B)
----.watchmanconfig(37B)
----package.json(3KB)
----tslint.json(292B)
----.github()
--------workflows()
----.prettierrc(153B)
----tests()
--------acceptance()
--------test-helper.js(228B)
--------index.html(1KB)
--------unit()
--------dummy()
--------.jshintrc(831B)
--------helpers()
----app()
--------.gitkeep(0B)
----testem.js(581B)
----.npmignore(294B)
----.eslintrc.js(1008B)
----.template-lintrc.js(62B)
----tsconfig.json(933B)
----LICENSE.md(1KB)
----.gitignore(361B)
----CHANGELOG.md(8KB)
----types()
--------ember-data()
--------dummy()
----README.md(6KB)
----.jshintrc(518B)
----yarn.lock(609KB)
----.eslintignore(225B)
----.editorconfig(368B)
----.vscode()
--------settings.json(137B)

网友评论