From ac9a0519404820bf16ffaa242a6d1a53ea901f58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Futera?= <100314711+mjfutera@users.noreply.github.com> Date: Thu, 2 Feb 2023 21:46:50 +0100 Subject: [PATCH] correct API url --- To Do.md | 38 +++++++++++++++++++------------------- admin/index.html | 22 ++++++++++++++++++++++ scripts.js | 2 +- 3 files changed, 42 insertions(+), 20 deletions(-) diff --git a/To Do.md b/To Do.md index cf2ec5d..04502cb 100644 --- a/To Do.md +++ b/To Do.md @@ -6,47 +6,47 @@ # Back-End - API ### GET Method -* /getQuestion +* /getQuestion - gets questions from database -* /getCategories +* /getCategories - gets category list -* /getResults +* /getResults - gets result list -* /getAwaitingQuestion +* /getAwaitingQuestion - gets awaiting questions from DB to be approved/ modified or deleted by admin. Require Admin Password -* /getAwaitingCategory +* /getAwaitingCategory - gets awaiting categories from DB to be approved/ modified or deleted by admin. Require Admin Password -* /getStats +* /getStats - shows statistics for categories -* /checkPassword +* /checkPassword - Checks Admin Password. Required to Admin Panel ### POST Method -* /postAwaitingQuestion +* /postAwaitingQuestion - post new question do database. !NEED TO IMPROVE DATA VERIFICATION and CHANGE FRONTEND part. -* /postResult +* /postResult - post result do database. !NEED TO IMPROVE DATA VERIFICATION -* /postNewQuestion +* /postNewQuestion - adds question to database, after approvement by admin. Require Admin Password -* /postNewCategory +* /postNewCategory - adds category to database, after approvement by admin. Require Admin Password ### PUT Method -* /editQuestion +* /editQuestion - edit question in database. Require Admin Password -* /editCategory +* /editCategory - edit category in database. Require Admin Password -* /editAwaitingQuestion +* /editAwaitingQuestion - edit question in database. Require Admin Password -* /editAwaitingCategory +* /editAwaitingCategory - edit category in database. Require Admin Password ### DELETE Method -* /deleteQuestion +* /deleteQuestion - delete question in database. Require Admin Password -* /deleteAwaitingQuestion +* /deleteAwaitingQuestion - delete awaiting question in database. Require Admin Password -* /deleteCategory +* /deleteCategory - delete category in database. Require Admin Password -* /deleteResult +* /deleteResult - delete awaiting category in database. Require Admin Password \ No newline at end of file diff --git a/admin/index.html b/admin/index.html index e69de29..d076136 100644 --- a/admin/index.html +++ b/admin/index.html @@ -0,0 +1,22 @@ + + +
+ + + + + +