URL: /add
Method: POST
Headers:
Authorisation: Bearer YOUR_JWT_TOKEN
Request Body:
{
"num1": 10,
"num2": 20
}
Response:
{
"result": 30
}
URL: /finance/simple-interest
Method: POST
Headers:
Authorisation: Bearer YOUR_JWT_TOKEN
Request Body:
{
"principal": 1000,
"rate": 5,
"time": 2
}
Response:
{
"simple_interest": 100
}
URL: /finance/compound-interest
Method: POST
Headers:
Authorisation: Bearer YOUR_JWT_TOKEN
Request Body:
{
"principal": 1000,
"rate": 5,
"time": 2,
"n": 1
}
Response:
{
"compound_interest": 1102.5
}
URL: /finance/npv
Method: POST
Headers:
Authorisation: Bearer YOUR_JWT_TOKEN
Request Body:
{
"cash_flows": [-1000, 300, 400, 500],
"discount_rate": 0.1
}
Response:
{
"npv": 49.59
}
URL: /finance/emi
Method: POST
Headers:
Authorisation: Bearer YOUR_JWT_TOKEN
Request Body:
{
"principal": 10000,
"annual_interest_rate": 10,
"loan_term_years": 5
}
Response:
{
"emi": 212.47
}
URL: /finance/future-value
Method: POST
Headers:
Authorisation: Bearer YOUR_JWT_TOKEN
Request Body:
{
"principal": 1000,
"rate": 5,
"time": 10
}
Response:
{
"future_value": 1628.89
}
URL: /finance/currency-conversion
Method: POST
Headers:
Authorisation: Bearer YOUR_JWT_TOKEN
Request Body:
{
"amount": 100,
"from_currency": "USD",
"to_currency": "EUR",
"exchange_rate": 0.85
}
Response:
{
"converted_amount": 85
}
URL: /finance/profit-loss
Method: POST
Headers:
Authorization: Bearer YOUR_JWT_TOKEN
Request Body:
{
"cost_price": 100,
"selling_price": 120
}
Response:
{
"profit": 20,
"loss": 0
}
URL: /analyze-headers
Method: POST
Headers:
Authorisation: Bearer YOUR_JWT_TOKEN
Request Body:
{
"headers": "Received: from example.com...[full email headers text]"
}
Response:
{
"fraud_detected": true|false,
"analysis": {
"spf_passed": true|false,
"dkim_passed": true|false,
"dmarc_passed": true|false,
"suspicious_ips": ["ip1", "ip2"],
"suspicious_x_headers": ["header1", "header2"]
}
}