From e1ec6a26489b311ca5368fd227b527e6591882ee Mon Sep 17 00:00:00 2001 From: hanemile Date: Tue, 22 Jan 2019 12:23:54 +0100 Subject: updated the api description --- main.go | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index cdb21c8..680b8ed 100644 --- a/main.go +++ b/main.go @@ -20,12 +20,17 @@ func indexHandler(w http.ResponseWriter, r *http.Request) { infostring := `Galaxy Simulator Database API: - / GET - /new POST w float64 - /insert/{treeindex} POST x float64, y float64, vx float64, vy float64, m float64 - /starlist/{treeindex} - /printall GET - /metrics GET + - / ("GET") + - /new ("POST") + - /printall ("GET") + - /insert/{treeindex} ("POST") + - /starlist/{treeindex} ("GET") + - /dumptree/{treeindex} ("GET") + - /updatetotalmass/{treeindex} ("GET") + - /updatecenterofmass/{treeindex} ("GET") + - /metrics ("GET") + - /export/{treeindex} ("POST") + - /fastinsert/{filename} ("POST") ` _, _ = fmt.Fprintf(w, infostring) } -- cgit 1.4.1