This guide provides the details for testing the InnoVest Backend APIs. You can use Postman or cURL to send these requests.
Base URL: http://localhost:8080
- Method:
POST - URL:
/api/auth/register - Body (JSON):
(Roles:
{ "email": "innovator@example.com", "password": "password123", "role": "INNOVATOR" }INNOVATOR,INVESTOR,ADMIN)
- Method:
POST - URL:
/api/auth/login - Body (JSON):
{ "email": "sarah@agritech.com", "password": "password123" } - Response: Returns the
Userobject. Copy theid(UUID) from the response. You will need it for other requests.
- Method:
POST - URL:
/api/innovator/deals?userId={innovator_user_id} - Params:
userId(The UUID of the logged-in Innovator) - Body (JSON):
{ "title": "NextGen AgriTech", "teaserSummary": "Revolutionizing farming with AI", "targetAmount": 500000.0, "industry": "Agriculture" }
- Method:
GET - URL:
/api/public/deals - Response: List of public deal details.
- Method:
GET - URL:
/api/deals/{deal_id}/full_details?userId={user_id} - Params:
userId(The UUID of the user) - Note: Innovators can see their own deals. Investors need an approved request and signed NDA.
- Method:
POST - URL:
/api/deals/{deal_id}/request?userId={investor_user_id} - Params:
userId(The UUID of the Investor)
- Method:
PUT - URL:
/api/innovator/requests/{request_id}?userId={innovator_user_id} - Params:
userId(The UUID of the Innovator who owns the deal)
- Method:
POST - URL:
/api/investor/requests/{request_id}/sign-nda?userId={investor_user_id} - Params:
userId(The UUID of the Investor)
- Method:
GET - URL:
/api/documents/{document_id}/download?userId={user_id} - Params:
userId(The UUID of the user) - Note: Returns a PDF file.