$http.get('/someUrl').
URL = 'api/controler/action?parameter1=xxx¶meter2=xxx'
- in the case of a webapi2, it depends on the type of server you are consuming.
$http.post('/someUrl', {msg:'hello word!'}).
then(function(response) {
// this callback will be called asynchronously
// when the response is available
}, function(response) {
// called asynchronously if an error occurs
// or server returns response with an error status.
});
The Response Object has These properties:
data - {string|Object} - The Response body Transformed with the Transform functions.
status - {number} - HTTP status code of the
Response. headers - {Function([headerName])} - Header getter Function.
config - {Object} - The Configuration Object that was used to generate
the request. statusText - {string} - HTTP status text of the Response.