Skip to content

Darwin939/cake-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}  - Выход с аккаунта. Удаляет сессию 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published