Skip to content

arturateo/UCarTestTask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Если есть UV

uv init uv venv uv sync

Если нет UV

pip install fastapi, uvicorn, sqlmodel

#Запуск проекта python main.py

curl -X 'POST'
'http://127.0.0.1:8000/reviews'
-H 'accept: application/json'
-H 'Content-Type: application/json'
-d '{ "text": "еуые" }'

Response body Download { "id": 7, "text": "еуые", "sentiment": "neutral", "created_at": "2025-07-14T20:45:36.515971" }

curl -X 'POST'
'http://127.0.0.1:8000/reviews'
-H 'accept: application/json'
-H 'Content-Type: application/json'
-d '{ "text": "плох" }'

curl -X 'POST'
'http://127.0.0.1:8000/reviews'
-H 'accept: application/json'
-H 'Content-Type: application/json'
-d '{ "text": "плох" }'

Response body Download { "id": 12, "text": "плох", "sentiment": "neutral", "created_at": "2025-07-14T20:47:08.127741" }

curl -X 'POST'
'http://127.0.0.1:8000/reviews'
-H 'accept: application/json'
-H 'Content-Type: application/json'
-d '{ "text": "плохо" }'

Response body Download { "id": 10, "text": "плохо", "sentiment": "negative", "created_at": "2025-07-14T20:46:42.961499" }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages