Skip to content

SiliconValley22-Blossom/testServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

초기 설정

pip install -r requirements.txt

실행 방법

flask run

포트 지정 후 실행 방법

flask run --port 1234

POST /api/login

body
{
    "email":"asdf",
    "password":"asdf"
}
response
{
'message': 'Login Successfully'
}

POST /api/logout

POST /api/photos

body
form data - flie binary
response
{
    "black_photo_id":1,
    "color_photo_id":2  
}

/api/photos/<photo_id>

        {"photo": 'test/newFile.png'}

/api/photos

{
    "photo_list": [
        [
            "black/1360f998-3ecd-431f-a0e1-ce607bf7d320.jpeg",
            "color/74f90258-6e8c-4f0f-8e03-908f1c79787a.jpeg"
        ],
        [
            "black/1360f998-3ecd-431f-a0e1-ce607bf7d320.jpeg",
            "color/74f90258-6e8c-4f0f-8e03-908f1c79787a.jpeg"
        ],
        [
            "black/1360f998-3ecd-431f-a0e1-ce607bf7d320.jpeg",
            "color/74f90258-6e8c-4f0f-8e03-908f1c79787a.jpeg"
        ],
        [
            "black/1360f998-3ecd-431f-a0e1-ce607bf7d320.jpeg",
            "color/74f90258-6e8c-4f0f-8e03-908f1c79787a.jpeg"
        ]
    ]
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages