Diogo Biazus
6c275fcec2
Coalesce types UniformObjects and Payload into the new PayloadJSON
2016-11-27 23:55:26 -05:00
Diogo Biazus
16ac034aab
Tidy up postgrest function body
2016-11-27 23:55:19 -05:00
Diogo Biazus
b158b4924e
Use rightToMaybe instead of case
2016-11-27 23:55:14 -05:00
Diogo Biazus
98ada3f9ee
Change nesting of if clause making code more symetrical
2016-11-27 23:55:07 -05:00
Diogo Biazus
090a62a2c8
Removes error case from Payload type. Now we don't build a payload when the parsing fails.
2016-11-27 23:55:02 -05:00
Diogo Biazus
654ac6e62e
Move function to conver ApiRequestError to a Http Response to the Error module.
2016-11-27 23:54:58 -05:00
Diogo Biazus
fec769c80e
Move range validation to userApiRequest.
2016-11-27 23:54:52 -05:00
Diogo Biazus
6a02d9efd5
Remove PayloadParseError matcher from main app case since now we validate the request before building an ApiRequest.
2016-11-27 23:54:48 -05:00
Diogo Biazus
b8ddc30252
Remove ActionInappropriate constructor from type Action since now we validate the request before building an ApiRequest.
2016-11-27 23:54:37 -05:00
Diogo Biazus
47c4fbc8ef
Introduce the type ApiRequestError and make userApiRequest return an Either ApiRequestError ApiRequest
2016-11-27 23:54:23 -05:00
dsimunic and Joe Nelson
ae40641963
Introduce new 'Prefer' header, params=single-object ( #739 )
2016-11-20 14:14:39 -08:00
Joe Nelson and GitHub
4df853eff9
Take config path as first param, not flag
...
Include example config in usage message
2016-11-17 22:45:59 -08:00
Diogo Biazus and Joe Nelson
41c1cf6e01
Reduce app function ( #733 )
...
Simplify the big app function
2016-11-10 20:42:00 -08:00
Joe Nelson and GitHub
c3822da2d2
Merge pull request #728 from steve-chavez/master
...
Fix fatal error on postgres unsupported version, also fix #577 format…
2016-10-31 23:06:02 -07:00
Joe Nelson and GitHub
0fa072d04c
Merge pull request #726 from phanimahesh/nix-integration
...
add nix.packages to stack.yaml
2016-10-30 22:21:13 -07:00
Joe Nelson and GitHub
6dba37be47
Merge pull request #729 from jhr007/master
...
Update Contributing.md "Build from source link"
2016-10-29 22:57:32 -07:00
jhr007 and GitHub
fce84397f4
Update "Build from source link"
2016-10-29 18:46:39 -05:00
SteveBash
4064a7b984
Fix fatal error on postgres unsupported version, also fix #577 format of supported version
2016-10-29 13:38:19 -05:00
Joe Nelson and GitHub
d78ef56314
Merge pull request #725 from begriffs/count-star
...
count(*) is faster than count(1)
2016-10-26 22:09:43 -07:00
J Phani Mahesh
37d3c851cf
add nix.packages to stack.yaml
...
postgrest depends on postgres and zlib. When using stack's nix
integration, these dependencies must be specified explicitly.
Note that `--nix` must be passed to stack, or `nix.enable:true` must
be set in `stack.yaml` to enable using nix while building.
2016-10-26 15:49:53 +05:30
Joe Nelson and GitHub
fbf345fc68
Fix hyphenation
2016-10-24 10:07:28 -07:00
Joe Nelson
9dddd144a4
count(*) is faster than count(1)
2016-10-23 20:44:42 -07:00
Joe Nelson and GitHub
09b63eafad
Update readme ( #723 )
2016-10-23 20:24:22 -07:00
Joe Nelson and GitHub
9233d90075
Read settings from config file ( #714 )
2016-10-20 08:34:57 -07:00
Joe Nelson and GitHub
74e68408e6
Bring packages up to date ( #722 )
...
* Bring packages up to date
* New LTS includes deps now
Use stack to select most versions
* Alphabetize packages
* Strip down packages
Switch tests to protolude
* Appease cabal check with base version constraint
2016-10-19 22:25:58 -07:00
Joe Nelson and GitHub
726b2b9d18
Merge pull request #721 from begriffs/prune-repo
...
Remove things to lighten support burden
2016-10-19 20:44:34 -07:00
Joe Nelson and GitHub
0c0396d0d4
Merge pull request #720 from begriffs/claim-sql-name
...
Set request.jwt.claim.*
2016-10-18 08:24:18 -07:00
Joe Nelson
556b7129ca
Remove things to lighten support burden
2016-10-17 22:41:38 -07:00
Joe Nelson
c6cd8145eb
Set request.jwt.claim.*
2016-10-17 22:32:36 -07:00
Joe Nelson
5d904dfd66
Merge PR #713
...
Resolve petty CHANGELOG conflict
2016-10-12 20:52:40 -07:00
Joe Nelson and GitHub
dcb3b6ed4d
Merge pull request #712 from ruslantalpa/merge_upstream
...
fix relation detection bug and allow offset on lower levels
2016-10-11 23:32:46 -07:00
SteveBash
191601f129
Add ability to order by jsonb keys, fix #644
2016-10-05 14:46:12 -05:00
Ruslan Talpa
211e3d4141
fix relation detection bug and allow offset on lower levels
2016-10-05 11:34:07 +03:00
Joe Nelson and GitHub
980680f3d6
Merge pull request #711 from steve-chavez/master
...
Allow using nulls order without explicit order direction, fix #552
2016-10-04 20:00:34 -07:00
SteveBash
50ae48295d
Allow using nulls order without explicit order direction, fix #552
2016-10-04 16:11:19 -05:00
Joe Nelson and GitHub
9b7685e5d1
Merge pull request #703 from begriffs/jwt
...
Big bag of JWT fixes for accumulated issues
2016-10-03 10:40:06 -07:00
Joe Nelson
d17cfb0c5d
Note these changes in CHANGELOG
2016-10-03 10:15:19 -07:00
Joe Nelson
9cd65a4033
Avoid calling getPOSIXTime more than necessary
2016-10-03 09:55:28 -07:00
Joe Nelson
5a166e8e80
Fix custom pre-request handler
...
Uses Ruslan's technique
2016-09-27 23:17:08 -07:00
Joe Nelson
06363ccc77
WIP: add argument for custom pre-request handler
2016-09-27 00:19:05 -07:00
Joe Nelson
2f8ac24128
Do not share JWT secret with SQL
2016-09-24 23:40:54 -07:00
Joe Nelson
71bc666a8e
Forgot jwt fixture, also hlint fix
2016-09-24 21:32:47 -07:00
Joe Nelson
12a8c682bd
Use sql to generate jwt, rather than custom haskell
2016-09-24 21:32:47 -07:00
Joe Nelson
62ed9e2c4d
Do not require jwt secret, but die on auth without it
2016-09-24 21:28:08 -07:00
Joe Nelson
449480bf01
Require JWT secret, remove default, optionally read from file
...
Fixes #474 , fixes #495 when file is used
2016-09-24 21:28:08 -07:00
Joe Nelson
7bf5b0106d
Semantic WWW-Authenticate headers for problematic JWT
...
Adapting an OAuth 2.0 convention from RFC 6750 for use with JWT
2016-09-24 21:28:08 -07:00
Joe Nelson
fb5fce026d
Issue http 401 for expired jwt
...
Fixes #512
2016-09-24 21:28:08 -07:00
Joe Nelson and GitHub
35da4809d4
Merge pull request #706 from begriffs/func-descriptions
...
Include RPC endpoints in OpenAPI output
2016-09-24 20:38:42 -07:00
Joe Nelson
a88a704bef
Parse proc arg definitions that have multi-word types
2016-09-22 23:30:47 -07:00
Joe Nelson
539df21627
WIP: more comprehensive test of rpc args
...
Breaks toks2arg
2016-09-21 23:54:08 -07:00