Skip to content

matcornic/sd-sample-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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=<player 'id'> or http://localhost:3000/stats/<player 'statId'> .

You can change the player stats by editing the db.json file for your tests.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published