Joe Nelson
f4c49f03f4
Allow NULL in csv field and unquote the multipart headers
2015-04-16 12:43:22 -07:00
Joe Nelson
a87f13f9bb
Fix original tests
2015-04-16 10:45:24 -07:00
Joe Nelson
7d03a71fed
All tests but one are passing
2015-04-12 19:56:33 -07:00
Joe Nelson
70d33445db
WIP: nice but doomed approach to making multipart response
2015-04-12 13:03:16 -07:00
Joe Nelson
4dbcf45555
WIP: typechecking but not yet sending back links
...
Rather amazing how well this actually works given
it only type checked
2015-04-11 21:41:32 -07:00
Joe Nelson
87acee924e
WIP: parsing csv
2015-04-05 17:13:16 -07:00
Joe Nelson
a22cf82688
Build sql for inserting multiple rows
2015-04-04 20:20:13 -07:00
Joe Nelson
9792b9b46a
Allow filtering by values inside json columns
2015-04-04 17:38:54 -07:00
Joe Nelson
ca1c524ede
WIP: working on querying and ordering with jsonb paths
...
Affects #118
2015-03-30 00:51:52 -07:00
Jonathan Daugherty
6dfbe854a0
Make postgrest show long help output with defaults on usage errors
...
This makes optparse-applicative show the long version of help output.
Its default behavior is not to do this since the showHelpOnError
setting defaults to False. This turns it on.
2015-03-16 13:27:22 -07:00
Joe Nelson
42d3d0de6c
Fix location header for inserted objects with nulls
2015-03-15 18:26:32 -07:00
Joe Nelson
ddb5ba8b64
Can now post nulls, but header link is wrong
...
affects #166
2015-03-15 16:30:42 -07:00
João Cristóvão and Joe Nelson
f4e0c12cba
IS/IS NOT null, true, false
2015-03-15 13:37:45 -07:00
João Cristóvão and Joe Nelson
97c9bfe93f
Added support for nulls first / nulls last
2015-03-15 10:28:21 -07:00
Joe Nelson
3d3c7277c7
Allow user to override schema used for v1 of api
2015-03-03 22:29:37 -08:00
Joe Nelson
5be0b5d5ae
Return inserted object from POST when Prefer: return=representation
...
Fixes #27
Fixes #159
2015-03-01 21:42:05 -08:00
Joe Nelson
6474a83221
Support IN query param operator
2015-03-01 18:30:08 -08:00
Joe Nelson
9b15071f23
Log requests
...
Fixes #141
2015-02-28 09:31:00 -08:00
Brikou Carré
a93e6c050d
Add 'Location' to exposed headers
2015-02-18 10:22:24 +01:00
Joe Nelson
337b49f386
Expose Content-Range response header (and others) in CORS
...
Fixes #148
2015-02-16 19:35:25 -08:00
Adam C. Baker and Joe Nelson
5cc77709ba
Add like/ilike
2015-02-15 15:23:18 -08:00
João Cristóvão
0a3057e92d
Update PgQuery.hs
...
I'm a bit baffled nobody noticed this before :P
Anyhow, without it order does not work.
Thanks,
Cheers
2015-02-11 19:49:31 +00:00
Joe Nelson
d77b6df851
Use new optparse-applicative and bcrypt
...
Fixes #131 and affects #129
2015-02-07 14:21:40 -08:00
Joe Nelson
90f9b00e5e
Include JSON content type for errors
2015-01-31 12:33:44 -08:00
Joe Nelson
27450fae66
Fix NULL input problem
...
Relates to #127
Still auth problems though
2015-01-28 23:58:17 -08:00
Joe Nelson
da6318f5a2
Fix warnings, lint, and ambiguous hasql imports
2015-01-28 20:37:19 -08:00
Adam C. Baker
3151aa2ebc
fix table parsing
2015-01-26 18:42:46 -08:00
Adam C. Baker
e1ad5cb1ae
handle errors in the app too
2015-01-26 18:07:38 -08:00
Adam C. Baker
ead346816b
reporting errors, but not passing tests.
2015-01-26 17:31:59 -08:00
Joe Nelson
b504473790
WIP: Upgrade to hasql 7
...
Still fails handling query errors
2015-01-25 18:33:50 -08:00
Joe Nelson
003685ff46
Add support for DELETE verb
...
Fixes #125
2015-01-17 00:48:49 -08:00
Joe Nelson
4c74e54ae1
Do not add WHERE clause if only param is order
...
Fixes #119
2015-01-05 22:37:49 -08:00
Joe Nelson
2c635cfde8
Optimization when auth role coincides with anon role
...
No need to set/reset role because it is already correct
2014-12-29 09:39:13 -08:00
Joe Nelson
30e9733719
Hide db details on connection failure
2014-12-22 15:40:35 -08:00
Joe Nelson
0830772384
Provide better diagnostics for exception parse failure
2014-12-22 15:40:20 -08:00
Joe Nelson
f689ce684a
Provide proper JSON details for errors
...
Refines HTTP codes for server vs client problems
Fixes #92
Fixes #40
2014-12-21 19:34:21 -08:00
Joe Nelson
07b039370d
Postgres error message parser
2014-12-17 14:15:12 -08:00
Joe Nelson
dbe1f59066
Update project name in strings
...
Fixes #105
2014-12-17 10:24:24 -08:00
Joe Nelson
9712549d64
Use "::unknown" type casts to overcome binary protocol restrictions
...
Fixes #112
2014-12-16 20:09:01 -08:00
Joe Nelson
19b62c00ee
Enclose entire app response in single Tx
2014-12-12 13:55:09 -08:00
Joe Nelson
d763e27bb2
More readable conditional
2014-12-07 21:32:36 -08:00
Joe Nelson
b302843e10
Parse args more sensibly, and use correct port for postgres connection
2014-12-07 18:42:18 -08:00
Joe Nelson
1fd757c2ad
Remove coerce dependency for ghc 7.6
2014-12-07 14:46:33 -08:00
Joe Nelson
782d6520a2
Upgrade hasql to 0.4.0
2014-12-07 00:11:14 -08:00
Joe Nelson
4d8c508a17
Parse db uri again
2014-12-06 23:21:49 -08:00
Joe Nelson
a45718e992
Re-enable authentication
2014-12-06 17:42:22 -08:00
Joe Nelson
fb6e297e88
Do not include .0 on integers in generated links
2014-12-06 17:42:22 -08:00
Joe Nelson
f1ecbec543
Do not quote params in Location header
...
Also treat the enum field in OPTIONS as an array uniformly
2014-12-06 17:42:21 -08:00
Joe Nelson
42faaa97c9
Include all fields in Location header when no primary keys defined
2014-12-06 17:42:21 -08:00
Joe Nelson
e3d3a07d14
Fun, fun, offbyone
2014-12-06 17:42:21 -08:00