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

Support fluent API to register resource and function. #3

Closed
zackyang000 opened this issue Jan 13, 2015 · 3 comments
Closed

Support fluent API to register resource and function. #3

zackyang000 opened this issue Jan 13, 2015 · 3 comments

Comments

@zackyang000
Copy link
Owner

Example:

odata
.all()
  .auth(function(){...})
.delete()
  .before(function(){...})
.resource
  .create()
  .url('/book')
  .model(model)
  .all()
    .auth(function(){...})
  .get()
    .after(function(){...})
  .delete()
    .before(function(){...})
  .post()
    .action('50-off')
      .handle(function(){...})
  .options()
    .orderby('date desc')
@zackyang000 zackyang000 changed the title Use fluent API to register resource. Support fluent API to register resource. Jan 13, 2015
@zackyang000 zackyang000 changed the title Support fluent API to register resource. Support fluent API to register resource and function. Jan 13, 2015
@xuubin
Copy link

xuubin commented Jan 14, 2015

+1

@zackyang000
Copy link
Owner Author

#22, Methods can return this to help with method chaining.

@zackyang000
Copy link
Owner Author

done v0.7

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

2 participants