| A single transaction can be added by PUT to /add. (I read that PUT, not POST, should be used to create; perhaps the web add form should also use PUT ?) As with the web form, the `add` capability is required (and enabled by default). Here's how to test with curl: $ curl -s http://127.0.0.1:5000/add -X PUT -H 'Content-Type: application/json' --data-binary @in.json; echo New readJsonFile/writeJsonFile helpers in Hledger.Web.Json are handy for generating test data. Eg: >>> writeJsonFile "in.json" (head $ jtxns samplejournal) | ||
|---|---|---|
| .. | ||
| app | ||
| config | ||
| deploy | ||
| Hledger | ||
| static | ||
| templates | ||
| tests | ||
| .eslintrc.js | ||
| .ghci | ||
| .version | ||
| CHANGES.md | ||
| defs.m4 | ||
| hledger-web.1 | ||
| hledger-web.cabal | ||
| hledger-web.info | ||
| hledger-web.m4.md | ||
| hledger-web.txt | ||
| LICENSE | ||
| package.yaml | ||
| README | ||
| Setup.hs | ||
A basic web UI for hledger data. Intended to be robust and somewhat useful.