Skip to content

A demo for json-server and it's custom routes feature

Notifications You must be signed in to change notification settings

henry61024/json-server-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON Server Demo

A demo for json-server and it's custom routes feature

Installation

npm install

Start JSON Server

npm start

Examples

Change pagination parameter _page & _limit to page & limit

  1. Start JSON server

    npm start
  2. Go to http://localhost:3000/posts?page=2&limit=2, you'll get:

    [
      {
        "id": 3,
        "title": "json-server",
        "author": "typicode1"
      },
      {
        "id": 4,
        "title": "json-server",
        "author": "typicode1"
      }
    ]
    

See routes.json for custom route configuration details.

About

A demo for json-server and it's custom routes feature

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published