This project was created for document purpose.
Download code from Github
https://github.com/thanhtamha/jsonserver.git.
Run npm install, to download dependency
Run npm start, to start the mock server Open browser to view all api -> http://localhost:3002/
Test URL http://localhost:3002/bo/user/getUserById
Mock data is put in mockdata folder. You may change the folder structure and path accordingly.
- Create new api with sample folder Example folder with path as bo/user/getUserById Then API URL http://localhost:3002/bo/user/getUserById