A mini REST API built with Node.js + Express that returns personal info as structured JSON.
-
Install dependencies
npm install
-
Start the server
node index.js
-
The API will be running at
http://localhost:3000
Returns basic info about me.
Request:
GET http://localhost:3000/api/about
Response:
{
"name": "Ishaan Parikh",
"major": "CS",
"year": "2027",
"hometown": "Your Hometown"
}Returns a list of my projects.
Request:
GET http://localhost:3000/api/projects
Response:
[
{
"id": 1,
"title": "Portfolio API",
"description": "A mini REST API built with Node.js and Express.",
"tech": ["Node.js", "Express"]
},
...
]Adds a new project to the list.
Request:
POST http://localhost:3000/api/projects
Content-Type: application/json
{
"title": "New Project",
"description": "What it does",
"tech": ["React", "Python"]
}
Response:
{
"id": 4,
"title": "New Project",
"description": "What it does",
"tech": ["React", "Python"]
}Returns a random fun fact about me.
Request:
GET http://localhost:3000/api/fun-fact
Response:
{
"fact": "I can solve a Rubik's cube in under 2 minutes.",
"total_facts": 5
}