Closed mehalyna closed 1 month ago
I should implement GET, SEARCH AND FILTRATIONS of PROJECTS ! In investor's role!
Adding for GET — is_active — to show only active projects.
Implemented permission checks for each method in ProjectViewSet.
Created two custom methods:
/api/projects/3/invest/
The method currently checks access permissions and verifies whether the user has already invested in the project./api/projects/my
Implemented project viewing capabilities:
/api/projects
: Users can view limited information about all projects.
/api/projects/12
: Users can view a specific project by ID.
/api/projects?project_name=la_&bgt=5000
/api/projects?project_name=la_&bgt=5000&blt=9000
/api/projects?project_name=la_
'project_name', 'description', 'industry', 'status', 'bgt', and 'blt'
.
bgt - budget greater or than
blt - budget less or equal than
Requirement Analysis for Profile Viewing:
Enhance Database and API for Profile Information:
Develop Search and Filter Capabilities:
Design User Interface for Profile Browsing (Optional):
Profile Detail View Implementation:
Testing Profile Viewing Functionality:
US #12