Skip to content

Creating FAKE REST API using the json-server npm package

Notifications You must be signed in to change notification settings

Ebrutokgoz/fake-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Creating FAKE REST API using the json-server npm package

  1. Run npm init command to create a package.json file.
  2. Run npm i json-server command to download the json-server package.
  3. Update package.json
   "scripts": {
   "start:server": "json-server --watch students.json"
   },
  1. Use npm run start:server command to run Fake Api.

Request examples:

We may need dummy or fake APIs

  • to test an application with a ready frontend.
  • to create a prototype for a backend work we are considering.
  • to make requests for different HTTP methods on an API platform like Postman.

About

Creating FAKE REST API using the json-server npm package

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published