Code Monkey home page Code Monkey logo

restaurantapi's Introduction

Restaurant Management Backend using Django REST API

Overview

This project implements the backend part of a restaurant management application using Django REST API. The backend is responsible for managing various aspects of restaurant operations including orders, reservations, accounts, and menu items. It provides a RESTful API that can be consumed by frontend applications to perform CRUD operations on the data.

Features

Order Management: Allows the creation, retrieval, update, and deletion of orders. Each order can contain multiple menu items with their quantities. Reservation Management: Facilitates creating, retrieving, updating, and deleting reservations for tables in the restaurant. Account Management: Manages user accounts including authentication and authorization for accessing the API endpoints. Menu Management: Supports creating, retrieving, updating, and deleting menu items including details like name, description, price, and category.

Usage

Once the development server is running, you can access the API endpoints using tools like curl or Postman. Alternatively, you can integrate these endpoints into a frontend application.

API Endpoints

Orders:
GET /api/orders/: Retrieve all orders
POST /api/orders/: Create a new order
GET /api/orders//: Retrieve a specific order
PUT /api/orders//: Update a specific order
DELETE /api/orders//: Delete a specific order

Reservations: GET /api/reservations/: Retrieve all reservations
POST /api/reservations/: Create a new reservation
GET /api/reservations//: Retrieve a specific reservation
PUT /api/reservations//: Update a specific reservation
DELETE /api/reservations//: Delete a specific reservation

Accounts:
POST /api/accounts/register/: Register a new user
POST /api/accounts/login/: Obtain an authentication token
GET /api/accounts/profile/: Retrieve user profile information
PUT /api/accounts/profile/: Update user profile information
POST /api/accounts/logout/: Logout user

Menus:
GET /api/menus/: Retrieve all menus
POST /api/menus/: Create a new menu
GET /api/menus//: Retrieve a specific menu
PUT /api/menus//: Update a specific menu
DELETE /api/menus//: Delete a specific menu

Authentication

Authentication is required for certain endpoints such as orders, reservations, and user accounts. You need to obtain an authentication token by registering or logging in before accessing these endpoints.

Contact

For any inquiries or feedback, please contact Akrem Issaoui.

restaurantapi's People

Contributors

akreem avatar benali96 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.