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

Use a method_missing type tool to allow more readable API calls. #18

Open
cycomachead opened this issue Nov 23, 2015 · 1 comment
Open

Comments

@cycomachead
Copy link
Member

The format should be:
Course(1371647).group_categories(50724).groups(queryParams?, cb)
Which is the same as:
Course(1371647).group_categories(50724).groups.get(queryParams?, cb)

But should also exist:
Course(1371647).group_categories(50724).groups.delete(queryParams?, cb)
Course(1371647).group_categories(50724).groups.post(queryParams?, form?, cb)
Course(1371647).group_categories(50724).groups.put(queryParams?, form?, cb)

Where the default arguments format is followed.

@cycomachead
Copy link
Member Author

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