This project implements the Bajaj Finserv Health Ltd (BFHL) API assignment using FastAPI and deployed on Render. It processes input arrays to classify numbers, alphabets, and special characters, while also computing sums and concatenated strings.
Base URL:
https://bajaj-finserv-health-wd0q.onrender.com
Endpoint:
POST /bfhl
-
Clone Repo git clone cd
-
Install Dependencies pip install -r requirements.txt
-
Run Server uvicorn main:app --reload
API will be available at:
Push repo to GitHub.
On Render → Create New Web Service.
Connect your repo.

Use:
Build Command: pip install -r requirements.txt
Start Command: uvicorn main:app --host 0.0.0.0 --port $PORT
Add Environment Variables:
FULL_NAME → "Your Name"
DOB_DDMMYYYY → "ddmmyyyy"
EMAIL → "your_email@example.com"
ROLL_NUMBER → "YourRollNumber"
Example Request
POST /bfhl
{ "data": ["a","1","334","4","R","$"] }
Response:
{ "is_success": true, "user_id": "akshita_gupta_31012004", "email": "akshita31012004@gmail.com", "roll_number": "22BCE0248", "odd_numbers": ["1"], "even_numbers": ["334","4"], "alphabets": ["A","R"], "special_characters": ["$"], "sum": "339", "concat_string": "Ra" }



-
Python 3.11
-
FastAPI
-
Uvicorn
-
Render (deployment)