strongloop/loopback-connector-rest — pull request #22 by raymondfeng (2014-11-24 06:37:23+00:00)
Title: Feature/pass options to request

The PR allows defaults/options to be configured and passed to underlying request module.

For example,

## connector level
```json
{
"connector": "rest",
"defaults": {
"headers": {
"accept": "application/json",
"content-type": "application/json"
},
"strictSSL": false,
}
}
```

## operation level:
```js
{
connector: 'rest',
operations: [
{
template: {
"method": "GET",
"url": "http://maps.googleapis.com/maps/api/geocode/{format=json}",
"query": {
"address": "{street},{city},{zipcode}",
"sensor": "{sensor=false}"
},
"options": {
"strictSSL": true,
"useQuerystring": true
},
"responsePath": "$.results[0].geometry.location"
},
functions: {
"geocode": ["street", "city", "zipcode"]
}
}