As-Is | To-Be |
---|---|
.
|-- ๐ README.md
|-- ๐ __init__.py
|-- ๐ __main__.py
|-- ๐ config.yaml
|-- ๐ main.py
`-- ๐services
|-- ๐ __init__.py
|-- ๐ crud.py
`-- ๐ recomendation.py
-
์ฌ์ ์ค์
> apt-get update > apt install curl
-
Poetry ์ค์นํ๊ธฐ
> curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
-
ํ๊ฒฝ๋ณ์ ์ค์
> source $HOME/.poetry/env
-
poetry install
> poetry install
-
poetry ๊ฐ์ํ๊ฒฝ ์คํ
> poetry shell
-
์๋ฒ ์คํ
> cd final-project-level3-recsys-07 > python -m server
or
> bash server_run.sh
-
config.yaml
DB ์ฐ๊ฒฐ์ ์ํด ๋ค์๊ณผ ๊ฐ์ ํ์์ config.yaml์ด /server ๋๋ ํ ๋ฆฌ์ ์์ด์ผํจ
mysql: user : <id> password : <password> host : <database_address> db : <schema_name>
Toggle
item_id ๋ก ๋ถํฐ image์ uri๋ฅผ ๋ฐ์์ค๋ API
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
item_id | path | Yes | integer |
Code | Description |
---|---|
200 | Successful Response |
422 | Validation Error |
Item์ ๋ํ ์ ๋ณด๋ฅผ return ํ๋ api Read Item Info
Code | Description |
---|---|
200 | Successful Response |
422 | Validation Error |
Rule base๋ก ๋ง๋ค์ด์ง ์ถ์ฒ ๊ฒฐ๊ณผ๋ฅผ return ํ๋ api
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
item_id | path | Yes | integer |
Code | Description |
---|---|
200 | Successful Response |
422 | Validation Error |
lightgcn์ผ๋ก ๋ถํฐ ์ถ๋ก ๋ ์ถ์ฒ ๊ฒฐ๊ณผ๋ฅผ return ํ๋ api
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
item_id | path | Yes | integer |
Code | Description |
---|---|
200 | Successful Response |
422 | Validation Error |
**(TODO)**MultiVAE๋ก๋ถํฐ ์ถ๋ก ๋ขด ์ถ์ฒ ๊ฒฐ๊ณผ๋ฅผ return ํ๋ api
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
item_id | path | Yes | integer |
Code | Description |
---|---|
200 | Successful Response |
422 | Validation Error |
item์ ์ด๋ฆ์ return ํ๋ api
Code | Description |
---|---|
200 | Successful Response |
422 | Validation Error |
Read Codi
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
select_item | query | Yes | integer | |
pick_item | query | Yes | integer |
Code | Description |
---|---|
200 | Successful Response |
422 | Validation Error |
์ฝ๋์ ๋ํ์ ๋ณด๋ฅผ return ํ๋ api
Code | Description |
---|---|
200 | Successful Response |
422 | Validation Error |
Read Item From Mid Class
Code | Description |
---|---|
200 | Successful Response |
422 | Validation Error |
Read Item Mid Class
Code | Description |
---|---|
200 | Successful Response |
item์ tag ํค์๋๋ฅผ return ํ๋ api
Code | Description |
---|---|
200 | Successful Response |
item์ cluster id๋ฅผ return ํ๋ api
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
item_id | path | Yes | integer |
Code | Description |
---|---|
200 | Successful Response |
422 | Validation Error |
์ถ์ฒ ํ๋ฅ ์ return ํ๋ api
Code | Description |
---|---|
200 | Successful Response |
422 | Validation Error |