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

API Information #82

Open
tommykennedy opened this issue Aug 5, 2015 · 3 comments
Open

API Information #82

tommykennedy opened this issue Aug 5, 2015 · 3 comments

Comments

@tommykennedy
Copy link

I am trying to use $sails.get and was wondering where the API was documented.

I want to pass some information in the request.

@ghost
Copy link

ghost commented Aug 27, 2015

+1

@TheSharpieOne
Copy link
Contributor

1.x is a wrapper for the sails.io client and as noted in the read me you can refer to the sails socket documention for the API. That documentation at least indicates what methods are available. 1.x wraps it so that you don't have to do all of the $apply() stuff and also provides a promise instead of accepting a callback.

2.x is a implementation of angular's $http that uses sockets to communicate with sails. You can refer to the angular $http documentation for methods (this is noted in the 2.x readme). Anything you can do with $http you can do with $sails in 2.x. If you can't do something that $http can do, file a defect.

Yeah, angular-sails should have it's own documentation rather than just referring to others in the readme...

@ghost
Copy link

ghost commented Aug 28, 2015

Thanks Evan, I'll bare that in mind. If I find some time I'll submit a pull request with some more detailed updated docs.

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

No branches or pull requests

2 participants