Skip to content

Handling HTTP methods manually✅ (GET, POST, PUT, DELETE) Parsing URLs✅ (/students/1) Sending proper status codes ✅and JSON responses Handling request bodies for POST and PUT✅

Vibeofkd/Hostel-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

🏠 Mini Hostel API (No Express)

A small RESTful API built with Node.js core http module — no frameworks used!


🧠 Concepts Practiced

  • HTTP methods (GET, POST, PUT, DELETE)
  • REST API principles
  • Manual request/response handling

⚙️ Endpoints

Method Route Description
GET /students Get all students
GET /students/:room Get student by room
POST /students Add a student
PUT /students/:room Update student info
DELETE /students/:room Remove student

💡 What I Learned

  • How REST works under the hood
  • Handling JSON manually using the http module

Week 4: Pure backend logic — no frameworks, no shortcuts 🔥

About

Handling HTTP methods manually✅ (GET, POST, PUT, DELETE) Parsing URLs✅ (/students/1) Sending proper status codes ✅and JSON responses Handling request bodies for POST and PUT✅

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published