Mock Rest API for our NewsKit Render Demo Site
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