Description:
Develop an API endpoint that allows investors to save or follow startups. This endpoint should handle POST requests where the investor can pass the startup’s ID to save.
Technical Steps:
Create a new endpoint in your Django views (e.g., POST /api/startups/{startup_id}/save).
In the view, check if the startup exists and if the investor has already saved it.
If not already saved, create a new InvestorStartup instance.
Return a success response indicating the startup has been successfully saved.
Description: Develop an API endpoint that allows investors to save or follow startups. This endpoint should handle POST requests where the investor can pass the startup’s ID to save.
Technical Steps:
POST /api/startups/{startup_id}/save
).InvestorStartup
instance.Return a success response indicating the startup has been successfully saved.
Task #38