From c5bbd14a05b69d7824fe539403656a264d14748b Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sun, 7 Jul 2019 13:36:14 +0200 Subject: [PATCH] Update documentation for the JSON endpoint --- templates/index.rs.html | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/templates/index.rs.html b/templates/index.rs.html index 5d23dd2..075b0c4 100644 --- a/templates/index.rs.html +++ b/templates/index.rs.html @@ -46,17 +46,18 @@ alt="example badge" />

-You can also request the HoC as JSON by appending /json to the request path. This will return a JSON -object with two fields: count and head with count being the HoC value and head being the -commit ref of HEAD. Requesting -https://@domain/github/vbrandl/hoc/json might return something -along the lines of +You can also request the HoC as JSON by appending /json to the request path. This will return a JSON object +with three fields: count (the HoC value), commits (the number of commits) and +head (the commit ref of HEAD). Requesting https://@domain/github/vbrandl/hoc/json might return something along +the lines of

 {
-    "head" : "05736ee3ba256ec9a7227c436aef2bf43db109ab",
-    "count": 7582
+    "head": "1f01c3b964b018fb0c0c2c5b572bf4ace2968546",
+    "count": 8324,
+    "commits": 223
 }