Skip to content

benamarfaiez/Backend

Repository files navigation

Reservation API

This project is a reservation system API built with .NET, providing REST endpoints to manage persons, rooms, and bookings.

API Endpoints

Persons

  • GET /api/persons => Fetch all persons
  • GET /api/persons/{id} => Fetch a person by id
  • POST /api/persons => Create a new person
  • PUT /api/persons/{id} => Update a person
  • DELETE /api/persons/{id} => Delete a person by id

Rooms

  • GET /api/rooms => Fetch all rooms (requires authentication)
  • GET /api/rooms/{id} => Fetch a room by id
  • POST /api/rooms => Create a new room
  • PUT /api/rooms/{id} => Update a room
  • DELETE /api/rooms/{id} => Delete a room by id

Bookings

  • POST /api/bookings => Create a new booking
  • DELETE /api/bookings/{id} => Delete a booking by id

Booking System

The booking system allows users to:

  • Create reservations for rooms with specific time slots
  • Check for conflicts with existing bookings
  • Get information about available time slots when conflicts occur

Data Models

Person

  • ID
  • First Name
  • Last Name

Room

  • ID
  • Room Name

Booking

  • ID
  • Room ID
  • Person ID
  • Booking Date
  • Start Slot
  • End Slot

Technologies

  • .NET 9
  • ASP.NET Core
  • Angular 19

About

Un projet de réservation construite avec .NET, fournissant des API REST pour gérer les personnes, les chambres et les réservations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors