8000 GitHub - varun2602/tech_round
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

varun2602/tech_round

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Endpoints

Here are the main API endpoints for this Django app:

  1. List of Cuisines:

  2. Cuisine Detail by ID:

Make sure to start your Django development server (python manage.py runserver) and replace 127.0.0.1:8000 with the appropriate host and port if needed when running your app in a different environment.

Models

Here are the main models used in this Django app:

Cuisines Model

  • Description: Represents different cuisines available in the restaurant.
  • Fields:
    • cuisine_name (CharField): The name of the cuisine.

Restaurant Model

  • Description: Represents individual restaurants.
  • Fields:
    • restaurant_name (CharField): The name of the restaurant.
    • number_of_tables (IntegerField): The number of tables in the restaurant.
    • cuisine (ForeignKey to Cuisines): A reference to the cuisine offered by the restaurant.

Listings Model

  • Description: Represents listings associated with restaurants.
  • Fields:
    • restaurant (ForeignKey to Restaurant): A reference to the restaurant the listing belongs to.

Booking Model

  • Description: Represents customer bookings for a restaurant.
  • Fields:
    • customer_name (CharField): The name of the customer.
    • restaurant (ForeignKey to Restaurant): A reference to the booked restaurant.
    • datetime (DateTimeField): The date and time of the booking.
    • duration (IntegerField): The duration of the booking in minutes.

These models are the core components of the application and are used to manage restaurant data, listings, and customer bookings.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0