This project was created for document purpose.
Download code from Github
https://github.com/thanhtamha/mockserver.git.
Run npm install, to download dependency
Run npm start, to start the mock server Open browser to view all api -> http://localhost:3002/
Mock data is put in mockdata folder. You may change the folder structure and path accordingly.
- Create api url in mockdata/api.json
- Create folder structure accordingly with api url
- View on API Document Interface or access from browser/postman (example: http://localhost:3002/bo/system/ping)