29 Commits

Author SHA1 Message Date
7c32f7121f update dependencies (#674) 2017-10-31 02:36:35 +01:00
6ca65ef982 #415 Missing body for POST request in middleware (#576)
* Missing postbody in middleware

Added body parser to server defaults.

* Test name change

Capitol letter is now lower case

* Missing postbody in middleware

Added body parser to server defaults.

* Test name change

Capitol letter is now lower case

* Added postbody as option to defaults

* Missing postbody in middleware

Added body parser to server defaults.

* Test name change

Capitol letter is now lower case

* Missing postbody in middleware

Added body parser to server defaults.

* Added postbody as option to defaults

* Setting bodyParser as enabled by default for cli
2017-07-14 02:41:55 +02:00
21d2fff3a9 Update rewriter (#580) 2017-07-05 13:17:10 +02:00
13a231d794 Add prettier 2017-07-02 15:09:32 +02:00
9bff1b6f3d Foreign key suffix (#570) 2017-06-28 23:05:21 +02:00
2b26630ac6 v0.9.0 (#404)
* Remove automatic type conversion

* Remove body-parser from default middlewares

* Ignore lib

* ES2015

* Use shortid

* Add babel-register

* Update paths to ./lib

* Add .npmignore

* Update bin

* temp fix

* Fix bin

* Add message when creating default db

* Use fs.watch

* Fix operator existence test

* Fix 0.12 tests

* Update dependencies

* Update

* Increase timeout

* Fix 0.12 support

* 0.9.0-beta.1

* Fix missing example.json issue

* 0.9.0-beta.2

* Update message

* Update CHANGELOG.md

* Update lowdb dependency

* Add error message

* Update README.md

* Add database validation

* Update

* Update

* Fix tests

* Update
2016-11-12 01:59:43 +01:00
0a9b9b610a fix lint 2016-08-17 22:37:27 +02:00
e2d37ba67d use yargs array for middlewares 2016-08-17 22:30:53 +02:00
ba3e32ca70 add config test 2016-08-17 21:51:22 +02:00
e9d1da2ab7 Add --middlewares option (#343)
* Add --middlewares option

* Support multiple middlewares files
2016-08-14 05:51:12 +02:00
988ddded82 style update to standard v7 2016-07-03 18:50:11 +02:00
26ff387dd3 Update tests 2016-06-30 22:58:29 +02:00
32c76f4a3f Update dependencies and watch 2016-06-30 12:36:51 +02:00
26c099bec4 fix: tests 2016-05-15 17:23:59 +02:00
71b6c95b4a test: should update json file 2016-05-15 16:31:48 +02:00
300d3cc90f Syntax 2016-04-18 18:28:58 +02:00
42bb9cb3a4 Add switch for GZIP Content-Encoding 2016-04-14 19:56:00 +02:00
c50532dd75 Allow disabling of CORS
It is desirable to disable CORS for development purposes in order to
validate same-origin policy and web security concepts. Additionally,
json-server could be used to show proxy concepts.

This change adds a new CLI option `--no-cors` which disables CORS by not
adding the CORS middleware. The change is backwards compatible since the
default behavior, i.e. adding CORS headers is retained.
2016-01-17 08:27:05 +01:00
672393e915 Add --read-only option 2016-01-07 04:12:04 +01:00
8681f0212a Make CLI tests faster 2015-10-15 22:22:40 +02:00
c259261153 Remove console.log 2015-10-14 08:31:59 +02:00
f0e6c9ad0c Add --snapshots and basic test 2015-10-14 08:28:02 +02:00
6c6333fa6d Add static option 2015-09-19 10:48:56 +02:00
aeb4906f11 Use server-ready to make CLI tests slightly faster 2015-09-17 22:16:20 +02:00
9fc0ef5bce Support OR in lists 2015-09-03 00:22:11 +02:00
a49db2c5c3 Fix CLI regressions and refactor 2015-07-23 08:04:29 +02:00
f277035c52 Add --delay option 2015-07-21 21:04:50 +02:00
43bd6b33a3 Update timeout 2015-07-15 19:16:21 +02:00
ccf67724e3 Refactor CLI and add tests 2015-07-15 18:44:33 +02:00