Commit Graph

20 Commits

Author SHA1 Message Date
Simon Michael
9439d1a611 require stackage nightly, for newer pandoc/swagger
Move to a newer stackage snapshot. This helps ensure a new-enough pandoc
will more be available for doc building without needing extra
compilation. Also we get to use the latest swagger and servant-swagger
for hledger-api, but we have to go to stackage nightly. With luck there
will be a lts 6 before next hledger release.
2016-04-05 16:17:08 -07:00
Simon Michael
f331ebec16 ui, api: switch to the quicker-building microlens
This may not make much difference since dependencies brick and
servant-swagger still depend on lens, but that might change.
2016-04-04 17:50:58 -07:00
Simon Michael
5697fbbd43 api: drop redundant imports 2016-02-19 17:52:40 -08:00
Simon Michael
0ab008ed5e api: merge tomk's WIP angular client, cleanups
- api routes (but not /swagger.json) are now under /api/v1
- the api has changed a bit, more to come
- files are served from the current directory by default, simplifying naming
- the startup message is more informative
- added some startup hints for the angular client
2016-01-24 13:37:34 -08:00
Simon Michael
f083a88e76 api: /swagger.json serves swagger 2.0 api docs 2016-01-21 14:49:28 -08:00
Simon Michael
b9b1cff22d api: --swagger shows swagger 2.0 api docs 2016-01-21 14:16:00 -08:00
Thomas R. Koll
1d18bf2a0f api: /accounts to return only the top accounts 2016-01-19 10:35:28 +01:00
Thomas R. Koll
efd1d8cdcd api: stuff all the endpoints under /api/v1/ 2016-01-19 09:15:59 +01:00
Thomas R. Koll
60de5a0df4 api: move endpoint for accounttransaction to /account/:name 2016-01-19 09:11:39 +01:00
Simon Michael
ae9defb718 api: --static-dir/-d option 2016-01-18 09:37:34 -08:00
Simon Michael
69e2218b09 api: drop /reports prefix; cleanup 2016-01-18 09:09:09 -08:00
Simon Michael
fb32d54a90 api: also serve files from static/; drop ServerT 2016-01-18 08:46:56 -08:00
Simon Michael
cabcd80ad5 api: cleanup 2016-01-17 11:07:26 -08:00
Simon Michael
ab1d47cfe2 api: /reports/accounttransactions/ACCTNAME 2016-01-17 10:19:48 -08:00
Simon Michael
798f4e82d0 api: /accounts returns Accounts, /accountnames just the names 2016-01-17 09:33:24 -08:00
Simon Michael
c7b138a2f6 api: /prices, /commodities, cleanup 2016-01-10 08:58:40 -08:00
Simon Michael
78b1b1b84e api: /transactions method 2016-01-10 08:32:42 -08:00
Simon Michael
4a552e6388 api: refactor, try docopt 2016-01-10 07:09:25 -08:00
Simon Michael
93826fdc85 api: first handler, GET /accounts
Serves the account names from the default journal file (as JSON, on port 8001).
2016-01-09 15:22:28 -08:00
Simon Michael
68f56764ab api: begin a web API server with examples (#316) 2016-01-09 07:48:24 -08:00