solidusjs / solidus

A simple server that generates pages from JSON and Templates
MIT License
28 stars 7 forks source link

Resource request options #73

Closed Fauntleroy closed 10 years ago

Fauntleroy commented 10 years ago

Add the ability to use an object of request options rather than just a url when specifying resources. This allows developers to specify API keys in headers, and sets the stage for defining resource parameters in a more centralized location.

...
    "resources": {
        "doges": {
            "url": "https://example.com/api/v2/resources/4521zb/such-doges",
            "headers": {
                "key": "123"
            },
            "auth": "user:pass"
        }
    }
...
Fauntleroy commented 10 years ago

@pushred review