1.20.0 • Published 4 years ago

saasify-faas-sdk v1.20.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

saasify-faas-sdk

HTTP client for invoking Saasify FaaS.

NPM Build Status JavaScript Style Guide

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