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 |