Joe Nelson
e4cf1ce207
Translate raise_exception to http 400
...
Fixes #661
2016-07-06 21:48:32 -07:00
Joe Nelson and GitHub
63046baffd
Merge pull request #620 from ruslantalpa/rpc_refactor
...
Rpc refactor
2016-07-06 20:51:05 -07:00
Joe Nelson and GitHub
d102d954ac
Merge pull request #657 from diogob/protolude-first-fugues
...
Protolude first fugues
2016-06-30 08:27:58 -07:00
Diogo Biazus
578ae6b5dd
Import GHC.Show without qualifying it
2016-06-30 08:35:42 -04:00
Diogo Biazus
b17fa09393
Add explicit import Prelude to remaining modules to compile and run specs
2016-06-29 09:26:47 -04:00
Diogo Biazus
0e172b8030
Port Auth to prolude
2016-06-29 09:25:57 -04:00
Diogo Biazus
3308012dcf
Add protolude to dependencies, include NoImplicitPrelude in default extensions and port Error module to protolude.
2016-06-29 09:25:57 -04:00
Diogo Biazus
376b67be9e
Remove unnecessary string conversions
2016-06-29 00:18:29 -04:00
Ruslan Talpa
1372de6f43
query simplification by @diogob
2016-06-28 12:18:12 +03:00
Ruslan Talpa
430baf23b9
embed entities to the results returned by procs
2016-06-28 12:09:58 +03:00
Ruslan Talpa
2f166088c8
response shaping and filtering for rpc proc calls
2016-06-28 12:09:58 +03:00
Ruslan Talpa
744bbf7203
cache the names of functions returning JWT and avoid extra query on each rpc call
2016-06-28 12:09:58 +03:00
Ruslan Talpa
a253ff325d
don't check if proc exists, just call it and return 400 if it does not
2016-06-28 12:09:57 +03:00
Joe Nelson and GitHub
acd75a3997
Merge pull request #639 from hudayou/swagger2
...
Provide a swagger2 spec for the dynamic API
2016-06-20 15:12:58 -07:00
Martin Gammelsæter and Joe Nelson
46b3ce5631
Name custom types and domains on OPTIONS requests ( #640 )
2016-06-20 09:49:52 -07:00
Jacky Hu
e571cb9fcb
Ability to set addresses to listen on
...
Fixes #461
2016-06-18 10:46:02 +08:00
Jacky Hu
a9ffde4d5f
Fix the invalid order parameter bug found by test
2016-06-18 10:18:43 +08:00
Jacky Hu
11aeb4fbda
Add all supported successful responses
2016-06-18 10:18:43 +08:00
Jacky Hu
d3d1fbe7e5
Return HTTP 415 on non root path for openapi req
2016-06-18 10:18:43 +08:00
Jacky Hu
816d577f53
Add undocumented "return=none" preference
2016-06-18 10:18:43 +08:00
Jacky Hu
e88a0577e5
Avoid repeating mime types
2016-06-18 10:18:43 +08:00
Jacky Hu
0be5f5299f
Reponse with the correct header for openapi
2016-06-18 10:18:43 +08:00
Jacky Hu
fd0b354cd0
Remove redundant consumes property for get operation
2016-06-18 10:18:43 +08:00
Jacky Hu
733b2cc05b
Move around encodeFn and realted helpers
2016-06-18 10:18:43 +08:00
Jacky Hu
077bb5a434
Verbose parse error for OpenAPI
2016-06-18 10:18:43 +08:00
Jacky Hu
d1ed884a8d
Introduce the OpenAPI header
...
Also bring back the original behavior of GET "/"
2016-06-18 10:18:43 +08:00
Jacky Hu
103fa0550c
Use a specific name for OpenAPI module
2016-06-18 10:18:43 +08:00
Jacky Hu
563c5fa778
Make hostname configurable
2016-06-18 10:18:43 +08:00
Jacky Hu
0e456543bf
Add a root path item
2016-06-18 10:18:43 +08:00
Jacky Hu
74ea4aba37
Fix all hlint errors except for pattern error
2016-06-18 10:18:43 +08:00
Jacky Hu
cf4e157de7
Provide a swagger2 spec for the dynamic API
...
Related issue: #144
2016-06-18 10:18:43 +08:00
Ruslan Talpa and Joe Nelson
b916ed907b
fix #637 ( #647 )
2016-06-17 10:45:25 -07:00
Joe Nelson and GitHub
42110643a3
Use newer deps for GHC 8 compatibility ( #619 )
2016-06-09 18:50:13 -07:00
Joe Nelson
e315dbc91e
Include allow header in options response ( #628 )
2016-06-08 23:12:29 -07:00
Joe Nelson
7563b5e2f4
Move unwords higher for branch parity
2016-06-02 08:40:24 -07:00
Joe Nelson
5e3d9442af
Use table defaults for empty object insert
...
Fixes #616
2016-06-02 08:40:24 -07:00
Ruslan Talpa
6ebd7fd2d7
implement select/return representation for DELETE queries ( fix #518 )
2016-06-02 13:37:33 +03:00
Ruslan Talpa
dc727f900d
suggested cleaup by @begriffs
2016-05-31 14:55:31 +03:00
Ruslan Talpa
7c83edc402
Limit embeded items
2016-05-26 09:56:28 +03:00
Christopher League
0940b2dccf
Simplify serialization of location header
...
Possible after bug fix in a Hasql that we picked up with the new
dependency bounds in #606 . Also includes test to ensure location header
is omitted on bulk insert.
2016-05-22 21:54:26 -04:00
Joe Nelson
c7d863c998
Merge pull request #605 from diogob/microlens
...
Replace lens dependency for microlens
2016-05-21 11:48:07 -07:00
Joe Nelson
a87dcd5553
Merge pull request #603 from diogob/refactor-jwtClaims
...
jwtClaims should always return Left for invalid JWT
2016-05-21 11:14:57 -07:00
Joe Nelson
592dd39222
Merge pull request #602 from ruslantalpa/order_limit_embeded
...
Ability to order embedded items (closes #509 )
2016-05-21 11:08:24 -07:00
Ruslan Talpa
45d0f85b0d
ability to order embeded items ( closes #509 )
2016-05-21 20:52:13 +03:00
Diogo Biazus
b68fcd2522
Replace lens dependency for microlens
2016-05-21 13:31:39 -04:00
Diogo Biazus
abd81c998b
jwtClaims should always return Left for invalid JWT
2016-05-21 13:18:45 -04:00
Christopher League
5c38b4328b
URL-encode Location header ( closes #588 )
...
The database returns an array of key-value strings like `"k1=eq.hello
world"`. Haskell URL-encodes the portion after the equal sign and joins
them with `&`.
Includes updates to tests in Feature.InsertSpec: The CompoundPK has been
modified to have one Int and one String. We attempt to add a key with a
String that has spaces and other special characters. This requires that
the returned Location header is properly URL-encoded.
2016-05-20 10:42:55 -04:00
Christopher League
b089e0a7dd
Tweak .cabal to avoid unneeded recompilation
...
Previously when making a change and running `stack test`, it would
compile each module 3 times: for the library, the executable, and the
test suite.
This change more cleanly segregates the hs-source-dirs for each target,
which avoids recompilation. The only source change is moving Main.hs
into its own directory (but it's otherwise unchanged). See also:
<http://stackoverflow.com/questions/6711151/how-to-avoid-recompiling-in-this-cabal-file >
2016-05-18 09:55:52 -04:00
Joe Nelson
a21464ddca
Merge pull request #592 from begriffs/form-urlencoded
...
Accept POST requests from HTML forms
2016-05-18 00:38:42 -07:00
Joe Nelson
900b9f1991
Explain use of Left value
2016-05-18 00:06:16 -07:00