Project-Stage-Academy / UA_1155_alpha

UA-1155.Python Project Stage alpha group
3 stars 0 forks source link

Create table for locations #73 #125

Closed NovitskaMariia closed 4 months ago

NovitskaMariia commented 4 months ago

To test this PR you need to drop all tables from your DB first Make sure that you have "migrations" folder in all aps, exept "forum" and "notifications"

Go to postman, and test methods for projects with location. You should have user and startup in your DB. Example JSON for POST method on endpoint api/projects/ for project creation: { "project_name": "Example Project", "description": "Example description", "industry": "Education", "location": "Donetsk Oblast", "budget_needed": 100, "budget_ready": 100, "status":"approved", "goals":"10000" } You should see location_id = 5 in your DB for "Donetsk Oblast". Also, PUT and PUTCH methods will change id for lacation in your DB if you use it. But GET method will show location name.