This package has been deprecated

Author message:

Deprecated

stuckapi

0.0.3 • Public • Published

stuckapi

Create read only API from your data with one command.

Usage

  • Add your data in json files to data dir.
  • File name equals resource name, e.g. users.json equals /users
  • Run npm start.
  • Go to localhost:3000/<your-api-endpoint>

Filtering

You can filter data passing properties as parameters. E.g. example.json with

[{
    a:1,
    b:2,
    c:3
}, {
    a:4,
    b:5,
    c:6
}]

Request http://localhost:3000/example?a=4 returns

[{
    a:4,
    b:5,
    c:6
}]

Run server

npm start

Run tests

npm test

Readme

Keywords

Package Sidebar

Install

npm i stuckapi

Weekly Downloads

3

Version

0.0.3

License

none

Last publish

Collaborators

  • npm