Neglected Pulse Machine

    fake-rest-api

    0.3.1 • Public • Published

    fake-rest-api

    your fake REST API server

    NPM Version NPM Downloads

    fake-rest-api

    features

    • fake api
    • fake locations
    • fake HTTP status codes
    • fake JSON-responses

    install

    npm install -g fake-rest-api
    

    fast start

    fake-rest-api start
    

    go http://localhost:8000

    configure

    create backup directory

    mkdir -p ~/fake_rest_api_backup
    

    config.json

    {
        "host": "localhost",
        "port": 8000,
        "backup": { 
            "path": "~/fake_rest_api_backup/"
        }
    }
    

    start

    fake-rest-api -c ./config.json start
    

    cli options

    option description
    -c, --config path to custom config.json
    -p, --port server tcp port

    Keywords

    Install

    npm i fake-rest-api

    DownloadsWeekly Downloads

    0

    Version

    0.3.1

    License

    MIT

    Last publish

    Collaborators

    • alekzonder