Commit graph

49 commits

Author SHA1 Message Date
Alp Mestanogullari
2b13d064ed add split server-side bits into servant-server 2014-12-10 16:11:57 +01:00
Alp Mestanogullari
501dafaeba add Servant.API.Header 2014-12-08 12:28:11 +01:00
Alp Mestanogullari
17607212b3 cabal file typos 2014-12-08 11:00:26 +01:00
Alp Mestanogullari
55eb020d10 polish up cabal file, add a README 2014-12-08 10:56:02 +01:00
Alp Mestanogullari
67abcff47f first shot at splitting servant into servant, servant-client and servant-docs 2014-11-27 18:28:01 +01:00
Julian K. Arni
dee47654f9 Rename ApiQuasiQuoting.
And fix haddocks for it.
2014-11-25 16:35:56 +01:00
Alp Mestanogullari
dacea018a7 preliminary readme 2014-11-22 13:54:24 +01:00
Alp Mestanogullari
f36e488f9e Merge pull request #36 from alpmestan/some_refactorings
Client instance for Raw, API documentation serving, some refactoring.
2014-11-14 13:17:31 +01:00
Alp Mestanogullari
e7b72561ee Merge pull request #35 from alpmestan/static_files_shahn
Static files shahn
2014-11-14 11:12:47 +01:00
Julian K. Arni
d8ab4ec418 Switch from hspec2 to hspec ~ 2. 2014-11-14 09:14:08 +01:00
Sönke Hahn
9ee7373608 cabal: remove -Werror to allow deprecation warnings 2014-11-13 19:56:44 +08:00
Sönke Hahn
82ff0a6ad7 added Servant.Utils.StaticFiles.serveDocumentation 2014-11-13 14:54:10 +08:00
Sönke Hahn
fc3c2c4128 fixup cabal file 2014-11-13 14:54:10 +08:00
Sönke Hahn
d8b0e4c7e5 add S.Utils.StaticFiles 2014-11-13 14:54:10 +08:00
Julian K. Arni
614c06b6e5 Switch to Parsec for QQ parsing 2014-11-12 11:34:33 +01:00
Sönke Hahn
165022a554 module refactoring: putting some things in Servant.Common 2014-11-07 19:12:27 +08:00
Sönke Hahn
1cd35034e9 module renaming: S.API.Elem -> S.Utils.Links 2014-11-07 16:59:36 +08:00
Sönke Hahn
af00035b99 module renaming: S.API.QQ -> S.Utils.ApiQuasiQuoting 2014-11-07 16:55:17 +08:00
Sönke Hahn
2f9fb2b713 removed S.Utils.Client (and put the code into S.Client.Req) 2014-11-07 15:23:50 +08:00
Sönke Hahn
bec10dd16a put Req in Servant.Utils.Req 2014-11-07 12:41:00 +08:00
Sönke Hahn
8e72c70767 moved S.Client.BaseUrl to S.Utils.BaseUrl 2014-11-07 11:58:41 +08:00
Sönke Hahn
93195abed6 put BaseUrl in it's own module 2014-11-07 11:09:54 +08:00
Sönke Hahn
f0bca3852c implement BaseUrl to allow https for Clients 2014-11-05 20:03:57 +08:00
Julian K. Arni
11f82633da Type safe links. 2014-11-04 12:24:52 +01:00
Sönke Hahn
fd636ead19 test suite: quickcheck property for a more complex client function 2014-10-31 15:49:58 +01:00
Sönke Hahn
16dbf9b188 Allow arbitrary JSON values (not only arrays and objects)
And added tests for QueryFlag.
2014-10-31 20:29:00 +08:00
Sönke Hahn
a9eeff14bd client: correctly handle exceptions on error status codes 2014-10-31 18:01:00 +08:00
Sönke Hahn
f058a3051a HasClient: changing URI to URIAuth (and adding the first client test
case)
2014-10-31 18:01:00 +08:00
Sönke Hahn
08e2a6a895 renamed Union -> Alternative 2014-10-30 18:37:58 +08:00
Sönke Hahn
8539fa10fa cabal file: tweaks 2014-10-30 15:50:05 +08:00
Sönke Hahn
d326215103 tweaked copyright holder 2014-10-30 15:47:54 +08:00
Alp Mestanogullari
c61238c488 cabal file tweaks 2014-10-29 18:51:09 +01:00
Julian K. Arni
c6264dd202 Add queryParam.
And update names.
2014-10-29 13:10:04 +01:00
Julian K. Arni
e6be95fb9e Basic QQ data types and parsing. 2014-10-29 12:15:08 +01:00
Alp Mestanogullari
82a7428507 rename JsonBody to ReqBody 2014-10-28 16:29:04 +01:00
Alp Mestanogullari
9b375b137f rename RQBody to JsonBody everywhere 2014-10-28 15:29:07 +01:00
Alp Mestanogullari
fc67c3b7aa rename GetParam to QueryParam everywhere 2014-10-28 15:06:47 +01:00
Sönke Hahn
71de673df2 refactoring: move Servant.Text to Servant.Utils.Text 2014-10-28 12:39:50 +01:00
Alp Mestanogullari
1181eb8d5e add client, server and docs support for PUT 2014-10-28 09:17:28 +01:00
Alp Mestanogullari
97d4133eb1 add client, server and docs support for the DELETE HTTP method 2014-10-28 09:14:10 +01:00
Alp Mestanogullari
4ebc4944c2 Add automatic doc generation support, including instances for all our API combinators so far 2014-10-28 09:04:27 +01:00
Alp Mestanogullari
d85231d093 Merge pull request #6 from zalora/wip-travis
made travis file work
2014-10-28 08:12:48 +01:00
Sönke Hahn
b749f7fbc6 added Servant.API.Raw (only with HasServer) 2014-10-28 13:42:37 +08:00
Sönke Hahn
5a011b53d1 made travis file work 2014-10-28 13:10:40 +08:00
Sönke Hahn
13664a218c test suite: added initial test suite 2014-10-27 07:24:23 +01:00
Alp Mestanogullari
d838191ec8 reorganize everything into a sane(r) module structure 2014-10-25 01:27:39 +02:00
Alp Mestanogullari
50f5c36727 revamp a lot of the HasClient code to thread a Req object around instead of just the path. allows for a cleaner way to handle path, query string and request body modification. add support for GET params too 2014-10-24 19:39:03 +02:00
Alp Mestanogullari
8c8bc15ea9 get rid of a lot of useless proxies and implement POST requests support on server and client side 2014-10-24 13:36:19 +02:00
Alp Mestanogullari
c35a510f12 beginning of a new implementation, using Soenke's typed rest 2014-10-21 15:25:34 +02:00