Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							115643a024 
							
						 
					 
					
						
						
							
							web: silence one more pesky warning  
						
						
						
					 
					
						2019-02-20 20:45:09 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							0bc16d4af6 
							
						 
					 
					
						
						
							
							lib, cli, web: rename porigin -> poriginal  
						
						
						
					 
					
						2019-02-20 20:23:54 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							2dc716cdb4 
							
						 
					 
					
						
						
							
							web: support adding new transactions via JSON PUT ( #316 )  
						
						... 
						
						
						
						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) 
						
					 
					
						2019-02-20 20:23:51 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							b46212ae50 
							
						 
					 
					
						
						
							
							web: better ToJSON instances, new FromJSON instances, utilities ( #316 )  
						
						
						
					 
					
						2019-02-20 20:23:45 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							782e6d3272 
							
						 
					 
					
						
						
							
							collect some langage pragmas in dev.hs  
						
						
						
					 
					
						2019-02-20 18:08:33 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							8620e5414f 
							
						 
					 
					
						
						
							
							regen manuals  
						
						... 
						
						
						
						[ci skip] 
						
					 
					
						2019-02-20 17:37:25 -08:00 
						 
				 
			
				
					
						
							
							
								Jakub Zárybnický 
							
						 
					 
					
						
						
						
						
							
						
						
							861baadb2b 
							
						 
					 
					
						
						
							
							web: Re-add 'balanced transaction' validation to add form  
						
						
						
					 
					
						2019-02-20 14:57:04 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							ba850f3871 
							
						 
					 
					
						
						
							
							lib: more transaction balancing/assertions/assignments cleanup  
						
						
						
					 
					
						2019-02-20 09:14:30 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							8789a442a8 
							
						 
					 
					
						
						
							
							lib: inclusive balance assertions (=* and ==*)  
						
						
						
					 
					
						2019-02-20 09:14:30 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							3b47b58aec 
							
						 
					 
					
						
						
							
							lib: clarify transaction balancing & balance assertion checking  
						
						
						
					 
					
						2019-02-20 09:14:30 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							cf52eb1e42 
							
						 
					 
					
						
						
							
							site: download: system packages: more tweaks  
						
						... 
						
						
						
						[ci skip] 
						
					 
					
						2019-02-20 09:14:30 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							d309795aff 
							
						 
					 
					
						
						
							
							site: download: update system packages, add repology badges  
						
						... 
						
						
						
						[ci skip] 
						
					 
					
						2019-02-19 23:28:56 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							7e0b74d431 
							
						 
					 
					
						
						
							
							web: fix warnings  
						
						
						
					 
					
						2019-02-19 07:29:08 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							d262dff272 
							
						 
					 
					
						
						
							
							web: doc: move OPTIONS up  
						
						... 
						
						
						
						[ci skip] 
						
					 
					
						2019-02-18 23:59:46 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							afd7931ca0 
							
						 
					 
					
						
						
							
							web: add the same 6 JSON routes as in hledger-api ( #316 )  
						
						
						
					 
					
						2019-02-18 23:57:58 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							3d0d55ecf8 
							
						 
					 
					
						
						
							
							api: cleanups, simplify ToJSON instances  
						
						
						
					 
					
						2019-02-18 22:55:55 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							9a49b813c1 
							
						 
					 
					
						
						
							
							web: manual updates, mention the spanner  
						
						... 
						
						
						
						[ci skip] 
						
					 
					
						2019-02-18 15:01:36 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							34c43489f8 
							
						 
					 
					
						
						
							
							web: document --capabilities/--capabilities-header, editing  
						
						... 
						
						
						
						[ci skip] 
						
					 
					
						2019-02-18 14:40:14 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							10b45c75aa 
							
						 
					 
					
						
						
							
							web: fix tooltips showing transactions ( fixes   #927 )  
						
						
						
					 
					
						2019-02-18 07:55:29 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							024bd944a1 
							
						 
					 
					
						
						
							
							make: tweak build flags  
						
						... 
						
						
						
						[ci skip] 
						
					 
					
						2019-02-17 19:50:59 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							ea258d77c6 
							
						 
					 
					
						
						
							
							doc: intro: fix hledger-web link  
						
						... 
						
						
						
						[ci skip] 
						
					 
					
						2019-02-17 18:32:33 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							23910cfe1f 
							
						 
					 
					
						
						
							
							site: download: bump brew's version  
						
						... 
						
						
						
						[ci skip] 
						
					 
					
						2019-02-17 18:30:40 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							5538015957 
							
						 
					 
					
						
						
							
							doc: intro: link to hledger.alhur.es GHCJS demo  
						
						... 
						
						
						
						[ci skip] 
						
					 
					
						2019-02-17 18:22:30 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							b34b262c76 
							
						 
					 
					
						
						
							
							lib: document mapM'  
						
						... 
						
						
						
						[ci skip] 
						
					 
					
						2019-02-17 08:36:59 -08:00 
						 
				 
			
				
					
						
							
							
								Jakob Schöttl 
							
						 
					 
					
						
						
						
						
							
						
						
							49f286dc70 
							
						 
					 
					
						
						
							
							Fix CLI help text  
						
						
						
					 
					
						2019-02-17 06:55:01 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							01f7f8b59b 
							
						 
					 
					
						
						
							
							site: download: drop homebrew warning  
						
						... 
						
						
						
						[ci skip] 
						
					 
					
						2019-02-16 10:36:36 -08:00 
						 
				 
			
				
					
						
							
							
								Jakob Schöttl 
							
						 
					 
					
						
						
						
						
							
						
						
							1df99d922a 
							
						 
					 
					
						
						
							
							Update demonstration video  
						
						
						
					 
					
						2019-02-16 06:52:21 -08:00 
						 
				 
			
				
					
						
							
							
								Jakob Schöttl 
							
						 
					 
					
						
						
						
						
							
						
						
							7bf71e709c 
							
						 
					 
					
						
						
							
							Bugfix: long options must start with a letter  
						
						
						
					 
					
						2019-02-16 06:52:21 -08:00 
						 
				 
			
				
					
						
							
							
								Jakob Schöttl 
							
						 
					 
					
						
						
						
						
							
						
						
							ea21d45d3f 
							
						 
					 
					
						
						
							
							Make completions work for hledger-*  
						
						
						
					 
					
						2019-02-16 06:52:21 -08:00 
						 
				 
			
				
					
						
							
							
								Jakob Schöttl 
							
						 
					 
					
						
						
						
						
							
						
						
							966d949807 
							
						 
					 
					
						
						
							
							Update completion  
						
						
						
					 
					
						2019-02-16 06:52:21 -08:00 
						 
				 
			
				
					
						
							
							
								Jakob Schöttl 
							
						 
					 
					
						
						
						
						
							
						
						
							1a88ee6265 
							
						 
					 
					
						
						
							
							Add some external commands to completion  
						
						
						
					 
					
						2019-02-16 06:52:21 -08:00 
						 
				 
			
				
					
						
							
							
								Jakob Schöttl 
							
						 
					 
					
						
						
						
						
							
						
						
							f989d6124d 
							
						 
					 
					
						
						
							
							Update bash completion script  
						
						... 
						
						
						
						This removes duplicate options from the completion, does not list -h as
command anymore, and adds the latest options (i.e. register --invert). 
						
					 
					
						2019-02-16 06:52:21 -08:00 
						 
				 
			
				
					
						
							
							
								Jakob Schöttl 
							
						 
					 
					
						
						
						
						
							
						
						
							550f47b3fa 
							
						 
					 
					
						
						
							
							Some fixes in hledger help output parsing  
						
						
						
					 
					
						2019-02-16 06:52:21 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							bc7a1476ed 
							
						 
					 
					
						
						
							
							refactor: lib: hlint cleanups  
						
						
						
					 
					
						2019-02-14 05:15:49 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							03877057fb 
							
						 
					 
					
						
						
							
							refactor: cli: commands: hlint clean  
						
						
						
					 
					
						2019-02-14 05:15:49 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							b7d0724b70 
							
						 
					 
					
						
						
							
							hlint: ignore some things used for readability  
						
						... 
						
						
						
						[ci skip] 
						
					 
					
						2019-02-14 05:15:49 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							226add41d3 
							
						 
					 
					
						
						
							
							lib: slight cleanup (spelling, hlint)  
						
						... 
						
						
						
						[ci skip] 
						
					 
					
						2019-02-14 05:15:49 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							17c4a47a85 
							
						 
					 
					
						
						
							
							regen cli help, manuals  
						
						... 
						
						
						
						[ci skip] 
						
					 
					
						2019-02-14 05:15:49 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							d7a815fc08 
							
						 
					 
					
						
						
							
							commodities: add commodities command  
						
						
						
					 
					
						2019-02-14 05:15:48 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							9e3cdef1e9 
							
						 
					 
					
						
						
							
							lib: balance assertion docs ( #290 )  
						
						... 
						
						
						
						[ci skip] 
						
					 
					
						2019-02-13 15:52:07 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							173529efaf 
							
						 
					 
					
						
						
							
							doc: contributing: issues: link to deps issues  
						
						... 
						
						
						
						[ci skip] 
						
					 
					
						2019-02-12 14:44:11 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							73fb893211 
							
						 
					 
					
						
						
							
							site: home: wiki links  
						
						... 
						
						
						
						[ci skip] 
						
					 
					
						2019-02-12 12:13:24 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							eed4a996f8 
							
						 
					 
					
						
						
							
							doc: journal: link cookbook, fix typo  
						
						... 
						
						
						
						[ci skip] 
						
					 
					
						2019-02-12 10:00:25 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							2530d9b853 
							
						 
					 
					
						
						
							
							site: fix TOC in contributing, manuals  
						
						... 
						
						
						
						[ci skip] 
						
					 
					
						2019-02-12 09:58:22 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							f3e1505b43 
							
						 
					 
					
						
						
							
							site: home: wiki link  
						
						... 
						
						
						
						[ci skip] 
						
					 
					
						2019-02-12 09:51:51 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							6ff5d744b7 
							
						 
					 
					
						
						
							
							doc: journal: move details of editor support to cookbook  
						
						... 
						
						
						
						[ci skip] 
						
					 
					
						2019-02-12 09:50:56 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							7524c98d23 
							
						 
					 
					
						
						
							
							site: home: wiki links  
						
						
						
					 
					
						2019-02-11 17:25:42 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							a1c2210b6c 
							
						 
					 
					
						
						
							
							doc: contributing: starter -> good first issue  
						
						... 
						
						
						
						[ci skip] 
						
					 
					
						2019-02-11 17:00:15 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							f4a38ed450 
							
						 
					 
					
						
						
							
							doc: contributing: ? -> other, whitespace  
						
						... 
						
						
						
						[ci skip] 
						
					 
					
						2019-02-11 17:00:15 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							3c40542682 
							
						 
					 
					
						
						
							
							site: home: hacker news links, open issues link, cleanup  
						
						... 
						
						
						
						[ci skip] 
						
					 
					
						2019-02-11 17:00:15 -08:00