-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
31 lines (21 loc) · 1.16 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Python version - 3.8
<B>HOW TO INSTALL</B>
1. Install python
2. Clone this rep
3. Install Pip (python package manager)
4. $python3 backend.py
ROUTES
domain - base URL, basic url
domain/ = базовый URL . Должен возвращать залогинен пользователь или нет (True , False)
domain/orders = {GET} - return {"body":"orderbody","deadline":6123716273.0,
"creation_date":2344234.0,"user":
{1:"username"}
}
domain/orders = {POST} - take {"body":"body","deadline":"236423847"}
domain/register = {GET} - nothing
domain/register = {POST} - должен подаваться JSON file c такими параметрами
{"username":"lol","password":"very_difficult_password"},
"number":"8777777777"}
domain/login = {GET} - должен подаваться JSON file c такими параметрами
{"username":"Oleg","password":"very_difficult_password"}
domain/logout = {GET} - Выход с аккаунта. Удаляет сессию