42 Commits

Author SHA1 Message Date
f5fd222ae3 added support for _delay in query string to delay response of request on per request basis (#673)
* added support for passing _delay as query parameter to delay response by X milliseconds

* added tests / fixed linting error
2017-11-06 13:10:55 +01:00
7bc529de47 Remove console.log (#677) 2017-11-02 20:59:09 +01:00
7c32f7121f update dependencies (#674) 2017-10-31 02:36:35 +01:00
bd3fb1f8cd Fix 2017-07-02 17:43:17 +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
9119b6e794 Fix 2017-06-28 01:17:42 +02:00
e39d25920c Fix lint 2017-06-27 23:17:27 +02:00
f1d7677d01 Allows for alternate foreign key attribute names, eg snake case (post_id). Defaults to 'Id' (#556) 2017-06-27 20:28:34 +02:00
9f8b5e9800 Refactor sort 2017-05-11 13:08:55 +02:00
fc90f4a19d Added support for multiple fields sorting (#512) 2017-05-09 12:56:38 +02:00
dcae2885a0 Fix #510 thanks to @robinvenneman 2017-04-12 21:16:37 +02:00
2c6fbf35b0 Refactor 2017-02-13 20:42:20 +01:00
ffda7238dd Pass the link to the newly created resource in the Location header (#473) 2017-02-13 20:25:10 +01:00
54e6d972fb Update to lowdb 0.15 2017-02-13 20:14:09 +01:00
7ce0279878 Fix duplicate query params error (Issue: #352) (#465) 2017-02-07 00:42:00 +01:00
d0596e1386 clean 2016-12-06 23:51:01 +01:00
46a5259584 Add stricter tests 2016-12-06 23:43:26 +01:00
f54de70738 Update test 2016-11-21 02:39:29 +01:00
eca6b763f2 fix filter for boolean value false (#412) (#413) 2016-11-21 02:24:35 +01: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
2b93bf5113 Exposing Link in the header instead of Links (#394)
- fix the small typo `Links` to `Link`
- update relevant tests
2016-11-02 23:33:55 +01:00
b070d56194 Expose the Links header. (#381) 2016-10-04 12:04:48 +02:00
61de2d86c8 Update pagination (#346) 2016-08-28 00:45:56 +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
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
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
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
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
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