RestService
RestService is an Angular Factory in the Remote module with the name rest.js
. It provides functions to make RESTful calls to the server using the $http service. To use these functions, see the documentation on injecting Angular services.
Name | Summary |
---|---|
get | Make a RESTful GET request. |
post | Make a RESTful POST request. |
Function Descriptions
get
Make a RESTful GET request.
Example Usage | Arguments | Return Value |
---|---|---|
rs.get(url , callback , errorCb ); |
| none |
post
Make a RESTful POST request. (This function is experimental.)
Example Usage | Arguments | Return Value |
---|---|---|
rs.post(url , data , callbacks ); |
success: <function reference to be executed on success> error: <function reference to be executed on error> | none |