summaryrefslogtreecommitdiff
path: root/test.http
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2018-01-23 11:23:14 -0800
committerBen Sima <ben@bsima.me>2018-01-23 11:23:14 -0800
commit61e0beb53ab923a862a7e4938787eaa710e31f51 (patch)
treef23d619ec5f19a89714c7af69dcc99d8326089bf /test.http
parent27c960910494b51a98d0d4d76bbdf49917198c0e (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.http8
1 files changed, 8 insertions, 0 deletions
diff --git a/test.http b/test.http
index 54bb4fd..c8bb3aa 100644
--- a/test.http
+++ b/test.http
@@ -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