Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add service wrapper / model layer #12

Open
tsantef opened this issue Mar 24, 2016 · 0 comments
Open

Add service wrapper / model layer #12

tsantef opened this issue Mar 24, 2016 · 0 comments

Comments

@tsantef
Copy link
Member

tsantef commented Mar 24, 2016

Here is an example of a service/model layer that would be useful.

var creatives = anxApl.service('creative');

creatives.getById(983904).then(function (creative) {
  creative.name = 'new name';
  return creative.save();
})

creatives.get(pageNumber, pageSize).then(function (records) { ... })

creatives.next() // gets next page
creatives.prev() // get previous page
creatives.all()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant