2c53d62860
lint
2016-08-28 00:51:31 +02:00
61de2d86c8
Update pagination ( #346 )
2016-08-28 00:45:56 +02: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
33cb2de999
Support x-www-form-urlencoded
2016-07-04 20:43:12 +02:00
3a23d8663b
Add basic pagination
2016-07-04 20:13:41 +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
8113f1c2f4
test: add test
2016-05-15 18:19:38 +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
dfea2b3400
make _like operator case insensitive
2016-05-12 21:46:17 +02:00
fc08f60898
refactor: update lowdb and lodash
2016-05-08 18:54:49 +02:00
4db6727ba7
[sort] nested
2016-05-04 14:37:27 -04:00
300d3cc90f
Syntax
2016-04-18 18:28:58 +02:00
85ad7d4795
Used JavaScript Standard Style for seed
2016-04-15 17:51:17 +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
a38d748fe0
Add _like operator, credit goes to @tony-kerz for the idea
2015-12-13 15:43:05 +01:00
9c40912a89
Add "not equal" operator
2015-11-29 19:32:15 +01:00
e04389cd7c
Add POST /:resource/:id/:nested route
2015-11-26 00:37:29 +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
94cfbabd41
Update DELETE to return 404 if resource doesn't exist
2015-10-13 21:55:14 +02:00
2d278fbcb8
Fix PUT should replace resource
2015-10-03 16:03:29 +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
645a3ab485
Ignore unknown query parameters
2015-09-17 09:02:16 +02:00
cdd6891d18
Add range support
2015-09-09 08:34:24 +02:00
9fc0ef5bce
Support OR in lists
2015-09-03 00:22:11 +02:00
abec9490d9
Add route GET /resources?_embed&_expand
2015-09-01 03:08:31 +02:00
6b0d870364
Merge branch 'expand-resources' of https://github.com/adamsea/json-server into adamsea-expand-resources
...
Conflicts:
src/router.js
test/server/plural.js
2015-07-31 22:55:07 +02:00
a49db2c5c3
Fix CLI regressions and refactor
2015-07-23 08:04:29 +02:00
756b8b4823
Fix standard
2015-07-22 07:25:50 +02:00
95f334f095
Add singular resources
2015-07-22 07:25:50 +02:00
f277035c52
Add --delay option
2015-07-21 21:04:50 +02:00
3056b963cb
Make q and other query parameters not mutually exclusive
2015-07-17 02:39:21 +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
6317c41d55
Fix deepQuery
2015-06-26 11:51:26 +02:00
69a6f842d6
When expanding only return a singular resource
2015-06-19 12:53:00 -04:00
f8cd38564a
Add _expand parameter when retrieving single resource
2015-06-19 12:39:55 -04:00
936b6b4ef8
Allow deep filtering using lodash syntax
2015-06-18 20:15:01 +02:00
34f6fd3412
Simplify rewriter
2015-06-16 02:16:15 +02:00
cd710213e0
Refactor
2015-06-16 01:45:25 +02:00