@zaiusinc/app-dev-runtime
v1.0.0
Published
Optimizely OCP app development runtime
Downloads
2
Keywords
Readme
App Dev Runtime
Dev Runtime for Zaius Apps
Usage
Add this module as a dev dependency and run the start-app script from the
yarn start-app
Endpoints
Install
You can manage the install lifecycle using the install lifecycle endpoint.
URL: http://localhost:3000/lifecycle/install
GET - returns the installation status of the app POST - installs the app, calling the app's onInstall lifecycle hook DELETE - uninstalls the app, calling app's onUninstall lifecycle hook
Functions
Getting a list of available function endpoints
If the app is installed, a list of available endpoints can be retrieved.
GET - http://localhost:3000/functions
These endpoints can be called using a tool like curl to exercise the functions.