sasjs / minimal-seed-app

Vanilla JavaScript seed app for SASjs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Provide random responses in mocked getdata (JS)

allanbowe opened this issue · comments

Currently our mocked getdata response is static: https://github.com/sasjs/minimal-seed-app/blob/main/sasjs/mocks/services/common/getdata.js

We should randomly provide 2 or 3 different responses.

Actual responses can be obtained by deploying the app to SASjs Server with 'sas' as the primary RUN_TIMES setting.

We should sanitise any environment specific outputs before committing to the repo, eg:

"SYSUSERID":"sasjsuser",
"MF_GETUSER":"SASjs User",
"SYSSITE":"0",
"SYSTCPIPHOSTNAME":"https://sasjs.com",
"SYSVLONG":"",
"SYSHOSTINFOLONG":""