Commit graph

49 commits

Author SHA1 Message Date
Alp Mestanogullari
6a11656aa7 Merge pull request #14 from haskell-servant/api-to-js-code-string
add a jsForAPI function that takes an API type proxy and generates js fu...
2015-04-20 11:40:29 +03:00
Alp Mestanogullari
95a120f110 jsForAPI now needs to take into account Canonicalize 2015-04-20 10:21:03 +02:00
Alp Mestanogullari
d90b59e902 fix a couple of typos 2015-04-20 09:59:03 +02:00
Alp Mestanogullari
0644c8dd79 canonicalize API type before generating jquery functions, flattening everything on the way 2015-04-20 09:59:03 +02:00
Alp Mestanogullari
b09e2bf9da add a test for jsForAPI 2015-04-19 11:56:29 +02:00
Alp Mestanogullari
9838aca752 fix a couple of typos 2015-04-19 11:06:12 +02:00
Alp Mestanogullari
36e038a7c9 Merge branch 'canonical-types' 2015-04-19 10:36:03 +02:00
Alp Mestanogullari
504793b3b3 Merge branch 'master' into canonical-types 2015-04-19 10:35:24 +02:00
Alp Mestanogullari
21b6e96891 add a jsForAPI function that takes an API type proxy and generates js functions for each endpoint, collecting the result in a big String. fixes #12 2015-04-19 10:07:58 +02:00
Julian Arni
8c6f327c0d Merge pull request #11 from haskell-servant/pr5
Matrix params
2015-04-08 12:28:30 +02:00
Julian K. Arni
ad900cda51 More PR5 fixes 2015-04-08 12:08:18 +02:00
Julian K. Arni
467df6dd66 Rebase fix 2015-03-19 17:16:44 +01:00
Daniel Larsson
8ee9b60a50 Added support for matrix parameters. 2015-03-19 17:08:39 +01:00
Daniel Larsson
9e5bed268e Added support for matrix parameters. 2015-03-19 17:07:19 +01:00
Alp Mestanogullari
ad0c6521ed canonicalize API type before generating jquery functions, flattening everything on the way 2015-03-09 22:54:41 +01:00
Alp Mestanogullari
84f8f814c7 add a changelog entry for the content-type aware instances 2015-03-04 11:19:51 +01:00
Julian Arni
af8e395664 Merge pull request #9 from anchor/content-types
Code changes to support Jkarni/content types.
2015-03-04 11:10:20 +01:00
Alp Mestanogullari
229bfc3a57 prepare changelog for next version 2015-03-04 02:02:13 +01:00
Timo von Holtz
2c2a2fcb54 Extend tests with more content types 2015-03-04 08:59:36 +11:00
Julian K. Arni
b7131b45c4 Use github servant-server. 2015-03-02 15:56:02 +01:00
Julian K. Arni
2da16c751a Enable coveralls 2015-02-19 22:35:09 +01:00
Timo von Holtz
5578488538 Code changes to support Jkarni/content types.
These are just straight forward changes to compile against servant.
2015-02-19 11:45:15 +11:00
Alp Mestanogullari
f62bb79da1 Merge pull request #6 from rtrvrtg/wip-header-value-templates
Extend HeaderArg to support advanced HTTP Header handling
2015-01-22 02:01:11 +01:00
Geoffrey Roberts
d7f9e30fc8 Add a test to explicitly cover header variable template replacement 2015-01-22 11:41:06 +11:00
Geoffrey Roberts
8aa5ce504e Switched again to Text because it made more sense given the dependency structure 2015-01-22 11:33:19 +11:00
Geoffrey Roberts
21e9c9f5c9 Switched out MissingH for an implementation using split 2015-01-22 11:24:36 +11:00
Geoffrey Roberts
745dbd09a9 Actually sanitise function names and handle X-Custom headers 2015-01-21 19:32:06 +11:00
Geoffrey Roberts
158eab5157 Changed template for ReplaceHeaderArg. Got tests working. 2015-01-21 18:47:23 +11:00
Geoffrey Roberts
e16f90f107 Extended HeaderArg to allow header arguments to replace the contents of a template, allowing specially composed headers to create specially formatted headers 2015-01-21 18:27:25 +11:00
Alp Mestanogullari
3dc9424765 add a changelog, bump version to 0.2.2 2015-01-04 17:41:51 +01:00
Julian Arni
7f1792be62 Merge pull request #4 from haskell-servant/jkarni/issue2
Fix top-level raw code-gen issue.
2015-01-02 10:58:24 +01:00
Julian K. Arni
8dfb3294b8 Fix top-level raw code-gen issue. 2015-01-02 10:46:21 +01:00
Alp Mestanogullari
fb153d4e08 Merge pull request #3 from haskell-servant/jkarni/issue1
Fix dot in function name issue.
2014-12-24 14:02:47 +01:00
Julian K. Arni
58b27cd957 Fix dot in function name issue. 2014-12-24 13:55:25 +01:00
Alp Mestanogullari
d106989d62 adapt to the servant/servant-server split, prepare new release 2014-12-10 16:29:50 +01:00
Alp Mestanogullari
c660b9cb0b -Wall police 2014-12-09 15:39:41 +01:00
Alp Mestanogullari
d760149ce0 put quotes around header name 2014-12-08 13:34:26 +01:00
Alp Mestanogullari
3d467cfab2 add jq support for Servant.API.Header 2014-12-08 13:32:47 +01:00
Alp Mestanogullari
0a2d3bc12c polish up cabal file, add README 2014-12-08 12:01:56 +01:00
Alp Mestanogullari
ffb3392cff travis: build with ghc 7.8 and clone servant from git before building 2014-12-02 17:50:44 +01:00
Alp Mestanogullari
470df01c47 add travis file 2014-12-02 17:26:05 +01:00
Alp Mestanogullari
99215cd654 first shot at generating function names automatically 2014-12-01 17:36:18 +01:00
Alp Mestanogullari
3e76058d25 drop the dependency on interpolate and hence on haskell-src-exts, it's becoming too annoying to keep 2014-12-01 17:23:25 +01:00
Alp Mestanogullari
91fc74b70e add LICENSE files to all projects 2014-12-01 16:38:43 +01:00
Alp Mestanogullari
c7dd48cbdf fix travis script... 2014-12-01 16:29:42 +01:00
Alp Mestanogullari
0458716b93 small README tweak for the counter example 2014-11-25 19:43:44 +01:00
Alp Mestanogullari
327006e25f add an example for servant-jquery: a shared counter whose value is updated via a button in an HTML page 2014-11-25 19:42:52 +01:00
Alp Mestanogullari
e3af6a6af3 uri-encode capture values in the generated javascript code for servant-jquery 2014-11-25 15:58:08 +01:00
Alp Mestanogullari
06d8c8005a first shot for jquery codegen based on a servant API type 2014-11-25 01:36:34 +01:00