{"id":26866209,"url":"https://github.com/harikrish58/hallbookingapi","last_synced_at":"2026-04-11T03:06:48.943Z","repository":{"id":285055927,"uuid":"956937913","full_name":"Harikrish58/HallBookingAPI","owner":"Harikrish58","description":"This is a Node.js API for managing room bookings.","archived":false,"fork":false,"pushed_at":"2025-03-29T06:59:26.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-22T21:54:04.509Z","etag":null,"topics":["cors","expressjs","javascript","nodejs","nodemon"],"latest_commit_sha":null,"homepage":"https://hallbookingapi-ydvm.onrender.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Harikrish58.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-29T06:54:21.000Z","updated_at":"2025-03-29T07:05:06.000Z","dependencies_parsed_at":"2025-03-29T07:38:54.450Z","dependency_job_id":null,"html_url":"https://github.com/Harikrish58/HallBookingAPI","commit_stats":null,"previous_names":["harikrish58/hallbookingapi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Harikrish58/HallBookingAPI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harikrish58%2FHallBookingAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harikrish58%2FHallBookingAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harikrish58%2FHallBookingAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harikrish58%2FHallBookingAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Harikrish58","download_url":"https://codeload.github.com/Harikrish58/HallBookingAPI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harikrish58%2FHallBookingAPI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31667074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cors","expressjs","javascript","nodejs","nodemon"],"created_at":"2025-03-31T04:54:01.134Z","updated_at":"2026-04-11T03:06:48.900Z","avatar_url":"https://github.com/Harikrish58.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hall Booking API\n\nThis is a Node.js API for managing room bookings. It allows you to create rooms, book rooms, retrieve room and booking information, and reset data.\n\n## Features\n\n* **Room Management:**\n    * Create new rooms with details like name, seats, amenities, price, and location.\n    * Retrieve a list of all rooms.\n    * Retrieve a list of booked rooms with booking details.\n    * Reset room data to default values.\n* **Booking Management:**\n    * Book rooms for specific customers.\n    * Retrieve booking details for all customers.\n    * Retrieve booking details for a specific customer.\n    * Retrieve all booking information.\n    * Reset booking data to default values.\n* **Dynamic Room Status:**\n    * Rooms automatically update their status to \"Booked\" or \"Available\" based on booking dates.\n* **CORS Enabled:**\n    * API supports Cross-Origin Resource Sharing.\n* **JSON Parsing:**\n    * API parses incoming JSON requests.\n\n## Technologies\n\n* Node.js\n* Express.js\n* cors\n* nodemon (for development)\n\n## API Endpoints\n\n### Rooms\n\n* **`POST /api/rooms/create`:** Create a new room.\n    * Request body: JSON object with room details.\n* **`GET /api/rooms`:** Get all rooms.\n* **`GET /api/rooms/booked`:** Get booked rooms with booking details.\n* **`POST /api/rooms/reset`:** Reset room data.\n\n### Bookings\n\n* **`POST /api/bookings/create/:id`:** Book a room (replace `:id` with the room ID).\n    * Request body: JSON object with booking details.\n* **`GET /api/bookings/customers`:** Get booking details for all customers.\n* **`GET /api/bookings/customers/:customerName`:** Get booking details for a specific customer.\n* **`GET /api/bookings`:** Get all bookings.\n* **`POST /api/bookings/reset`:** Reset booking data.\n\n### Example Request (Create Room)\n\n```json\n{\n  \"roomName\": \"New Meeting Room\",\n  \"seatsAvailable\": 6,\n  \"amenities\": [\"TV\", \"Whiteboard\"],\n  \"pricePerHour\": 1200,\n  \"location\": \"Building D, Floor 2\"\n}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharikrish58%2Fhallbookingapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharikrish58%2Fhallbookingapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharikrish58%2Fhallbookingapi/lists"}