@newskit-render/mock

0.52.14 • 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

Readme

Keywords

none

Package Sidebar

Install

npm i @newskit-render/mock

Weekly Downloads

89

Version

0.52.14

License

UNLICENSED

Unpacked Size

82.6 kB

Total Files

26

Last publish

Collaborators

  • newskit