36 Commits

Author SHA1 Message Date
c597a20276 fix #341 (#350) 2016-08-30 17:21:14 +02:00
2c53d62860 lint 2016-08-28 00:51:31 +02:00
61de2d86c8 Update pagination (#346) 2016-08-28 00:45:56 +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
32c76f4a3f Update dependencies and watch 2016-06-30 12:36:51 +02:00
54d30ebf16 Make link to jquery agnostic to http/s 2016-06-22 20:45:29 +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
42bb9cb3a4 Add switch for GZIP Content-Encoding 2016-04-14 19:56:00 +02:00
ab3e611d5c Use relative path in resource list 2016-03-16 13:53:54 +01: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
b751cec815 Add gzip compression. Thanks to @Werner0 2016-01-07 20:12:19 +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
4e27a0fa36 feature: add optional --quiet argument
Suppress log messages from output.

- Use logger middleware only if `--quiet` is `false`
2015-11-06 17:44:12 +01:00
1c970474d0 Remove duplication
Remove duplication of

  // Expose database
  router.db = db
2015-10-28 00:13:23 +03: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
6610adbf05 Fix standard 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
cb516def96 Enhance error msg for unsupported types 2015-08-04 04:37:19 +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
95f334f095 Add singular resources 2015-07-22 07:25:50 +02:00
3056b963cb Make q and other query parameters not mutually exclusive 2015-07-17 02:39:21 +02:00
ccf67724e3 Refactor CLI and add tests 2015-07-15 18:44:33 +02:00