Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 818 Bytes

README.md

File metadata and controls

45 lines (32 loc) · 818 Bytes

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.