diff options
author | Ben Sima <ben@bsima.me> | 2018-01-23 11:23:14 -0800 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2018-01-23 11:23:14 -0800 |
commit | 61e0beb53ab923a862a7e4938787eaa710e31f51 (patch) | |
tree | f23d619ec5f19a89714c7af69dcc99d8326089bf /test.http | |
parent | 27c960910494b51a98d0d4d76bbdf49917198c0e (diff) |
Use a bootstrap endpoint instead of bootstrapping on startup
This just demonstrates the code better, I wouldn't do this in production
Diffstat (limited to 'test.http')
-rw-r--r-- | test.http | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -12,10 +12,18 @@ User-Agent: Emacs Content-Type: application/x-www-form-urlencoded # +# Initialize the database with exmaple data +POST :host/bootstrap +:headers + # should return 20 entries GET :host/query :headers +# get the total number of records +GET :host/count +:headers + # store jenny's number POST :host/number |