From 18fb0875660a93771812ee8aacc3b6643cd8ccf6 Mon Sep 17 00:00:00 2001 From: George Shaw Date: Mon, 30 Oct 2017 15:51:58 -0500 Subject: [PATCH] updated api readme --- pkg/api/README.md | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/pkg/api/README.md b/pkg/api/README.md index dede893..8ad550c 100644 --- a/pkg/api/README.md +++ b/pkg/api/README.md @@ -1,8 +1,23 @@ -# A list of API calls +# Working API Calls -``` +```go +// User Authentication API +/* +JSON Data Required: + { + "user": "test", + "pass": "test", + } +*/ func UserAuthentication(res http.ResponseWriter, req *http.Request) bool +// User Registration API +/* +JSON Data Required: + { + "user": "test", + "pass": "test", + } +*/ func UserRegistration(res http.ResponseWriter, req *http.Request) bool ``` -