Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

mainmatter/ember-api-actions

Repository files navigation

@mainmatter/ember-api-actions

This is an Ember.js addon allowing you to easily implement non-CRUD actions for your Ember Data models.

Compatibility

  • Ember.js v3.28 or above
  • Ember CLI v3.28 or above
  • Node.js v14 or above

Installation

ember install @mainmatter/ember-api-actions

Usage

import Model from '@ember-data/model';
import { apiAction } from '@mainmatter/ember-api-actions';

class User extends Model {
async follow() {
return await apiAction(this, { method: 'PUT', path: 'follow' });
}
}

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

About

Ember.js addon allowing you to easily implement non-CRUD actions for your Ember Data models

Topics

Resources

Readme

License

MIT license

Contributing

Contributing

Stars

Watchers

Forks

Contributors