saasify-faas-sdk
v1.20.0
Published
HTTP client for invoking Saasify FaaS.
Downloads
17
Maintainers
Readme
saasify-faas-sdk
HTTP client for invoking Saasify FaaS.
Install
npm install --save saasify-faas-sdk
Usage
const SaasifySDK = require('saasify-faas-sdk')
const sdk = new SaasifySDK()
const helloWorldUrl = 'https://ssfy.sh/dev/hello-world'
const res = await sdk.post(helloWorldUrl, {
data: { name: 'Nala' }
})
{
"body": "Hello Nala!",
"contentType": "application/json",
"response": { /* raw axios response */ }
}
TODO
- [ ] use
nock
in unit tests to ensure robustness and enable offline testing - [ ] change stateful way the auth
token
is currently handled
License
MIT © Saasify