tymly-api-mock
Mock REST API to simulate interactions with Tymly State Machines
Last updated 3 years ago by timneedham .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install tymly-api-mock 
SYNC missed versions from official npm registry.

tymly-api-mock

Mock REST API to simulate interactions with Tymly State Machines

Installation

To run the Tymly Mock API, you'll need Node.js installed (version 8.5.0 or higher).

$ npm install tymly-api-mock

Getting started

Before starting, please set following environment variables:

Variable Name Description
TYMLY_CERTIFICATE_PATH If you're using the RSA256 (or similar) algorithm as part of your Oauth set-up, then use this environment variable to point to your public key/certificate file, e.g. TYMLY_CERTIFICATE_PATH=d:/tymly-certificate.pem
TYMLY_AUTH_SECRET Alternatively, if you are using a lesser HS256 (or similar) algorithm then use this to configure your secret string, e.g. TYMLY_AUTH_SECRET=Shhh!.
TYMLY_AUTH_AUDIENCE Specifies an audience (aud) to be encoded in test tokens.`
TYMLY_MOCK_USERID Defines the userId which all requests will refer to e.g. TYMLY_MOCK_USERID=Dave

Running

$ npm start

Testing

$ npm test

License

MIT

Current Tags

  • 0.0.8                                ...           latest (3 years ago)

7 Versions

  • 0.0.8                                ...           3 years ago
  • 0.0.5                                ...           3 years ago
  • 0.0.4                                ...           3 years ago
  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
  • 0.0.7                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (11)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |