0.6.0 • Published 1 year ago

@mainmatter/ember-api-actions v0.6.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

0.5.0

1 year ago

0.6.0

1 year ago

0.4.1

1 year ago

0.3.0

1 year ago

0.4.0

1 year ago

0.2.0

1 year ago

0.1.2

2 years ago

0.1.1

2 years ago