From 61e0beb53ab923a862a7e4938787eaa710e31f51 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 23 Jan 2018 11:23:14 -0800 Subject: Use a bootstrap endpoint instead of bootstrapping on startup This just demonstrates the code better, I wouldn't do this in production --- test.http | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test.http') 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 -- cgit v1.2.3