65 Commits

Author SHA1 Message Date
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
046b561f9d Add router.render 2015-06-15 19:52:37 +02:00
5c9309e117 Add --routes option 2015-06-15 18:57:45 +02:00
916788b99f Add no-cache for IE 2015-06-11 19:49:42 +02:00
e8fe1ad89a Add embed, thanks to @delfi 2015-05-25 14:48:22 +02:00
69eace2975 Fix query parameters conversion 2015-05-17 17:54:22 +02:00
4830fd7e02 Enhance query parameters parsing 2015-05-17 17:54:16 +02:00
b1ca61ba9e Fix code style 2015-05-13 18:34:22 +02:00
73f919ddd0 Fix POST status code, thanks to @lagoLast 2015-05-07 15:10:58 +02:00
0ff4e627f4 Refactor code and tests 2015-05-04 19:46:12 +02:00
34b95e2bac Added _limit param. Example usage: _start=2&_limit=3 alternative to _start=2&_end=5. 2015-04-28 15:16:14 +06:00
0489c83798 Return empty JSON for DELETE 2015-04-21 04:10:15 +02:00
15be545a13 Remove console.log 2015-04-21 03:42:21 +02:00
ca867e8563 Allow middlewares to be set before json-server middlewares 2015-04-17 21:35:24 +02:00
a4fa344f10 Support string id in /resources/:id 2015-04-12 23:55:21 +02:00
6ad3acaaab Add 404 for GET /:resource 2015-04-04 13:17:23 +02:00
7da6045201 Separate routes and server creation 2015-02-06 01:11:02 +01:00
80e0df1630 Refactor 2015-02-05 22:03:50 +01:00
ff83b3215b Handle string/hash based ids 2015-02-03 10:41:23 +01:00
2fe5ee3c73 Fix type conversion 2015-01-08 16:08:26 +01:00
e660f0bd6b Fix empty string conversion 2015-01-08 13:44:03 +00:00
2e3d833ec4 Fix default index 2014-11-16 18:13:19 +01:00
587ac74a53 Update README.md and test 2014-10-20 04:20:17 +02:00
b86bb22c07 Rename sortDir to order 2014-10-18 18:49:52 +02:00
6d88075ff2 Refactor and update to LowDB 0.4 2014-10-13 15:56:47 +02:00
05bf46e501 Add sorting test 2014-09-23 17:20:35 +02:00