@newskit-render/mock

0.52.1 • Public • Published

@newskit-render/mock

Mock Rest API for our NewsKit Render Demo Site

Usage

use json-server to create two endpoint:

  • articles
  • pages

Start server with - yarn start
Go to - http://localhost:4000 to see your endpoints

http://localhost:4000/articles
http://localhost:4000/page

There are 10 articles you can filter from (1 to 10)
http://localhost:4000/articles/demo-1
http://localhost:4000/articles/demo-10

There are 3 pages you can filter
http://localhost:4000/pages/homepage
http://localhost:4000/pages/section-one
http://localhost:4000/pages/section-two

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @newskit-render/mock

    Weekly Downloads

    0

    Version

    0.52.1

    License

    UNLICENSED

    Unpacked Size

    79.8 kB

    Total Files

    26

    Last publish

    Collaborators

    • newskit