https://github.com/matcornic/sd-sample-api
https://github.com/matcornic/sd-sample-api
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/matcornic/sd-sample-api
- Owner: matcornic
- Created: 2022-11-03T14:09:26.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-04T10:38:21.000Z (almost 4 years ago)
- Last Synced: 2025-01-20T18:11:19.206Z (over 1 year ago)
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sd-sample-api
1. Install json-server `npm install -g json-server`
2. Run `json-server --watch db.json`
3. Go to `http://localhost:3000/` and see resources
You can get all players with an HTTP GET on `http://localhost:3000/players`.
You can get a player stats with an HTTP GET on `http://localhost:3000/stats?playerId=` or `http://localhost:3000/stats/` .
You can change the player stats by editing the `db.json` file for your tests.