@newskit-render/mock

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

    Keywords

    none

    Install

    npm i @newskit-render/mock

    DownloadsWeekly Downloads

    0

    Version

    0.44.0

    License

    UNLICENSED

    Unpacked Size

    76 kB

    Total Files

    26

    Last publish

    Collaborators

    • newskit