- node 4.x and npm (note: hihger version node/npm might not be working )
- node -v should return 4.x.x
- npm -v should return 5.x.x
cd robohydra_demo
npm installcd robohydra_demo
npm startplease read plugins/hello/index.js to see how those urls are handled in mock server
- admin URL: http://127.0.0.1:4000/robohydra-admin
- static response : http://127.0.0.1:4000/hello
- dynamic response : http://127.0.0.1:4000/slow?millis=500
- static response from file system : http://127.0.0.1:4000/assets/test1.txt
- proxy to some url : http://127.0.0.1:4000/goto
- hello.conf defines global settings. like plugin path, logging.. etc
- plugins : each plugin can be one mock , multiple plugsin are supported
-
case A. enable scenario 'dnyResult' from GUI or curl -X POST -d "active=true" http://171.71.50.214:4000/robohydra-admin/rest/plugins/accedo_mock/scenarios/dynResults
-
case B. enable scenario 'proxy' from GUI
-
Example: ctap ( not working for this folder yet, working for ctap)
http://171.71.50.214:4000/auth/createSession?apiKey=06147cc8adfe7bb678acec5c08b489fa http://171.71.50.214:4000/v3/applications?sessionKey=