Skip to content

viannik/apiMenuVote

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4531d02 · May 12, 2023

History

2 Commits
May 12, 2023
May 12, 2023
May 12, 2023
May 12, 2023
May 12, 2023
May 12, 2023
May 12, 2023
May 12, 2023

Repository files navigation

Django Restaurant Voting System

This is a Django web application that provides an API that helps employees to make a decision at the lunch place.

API Functionality

Authentication

Creating a restaurant

Uploading a menu for a restaurant

Creating an employee

Getting the current day's menu

Getting the results for the current day's voting

Installation

This application requires Docker and Docker Compose to be installed.

Clone the repository: git clone https://github.com/viannik/apiMenuVote.git

Build and run the Docker container: docker-compose up --build

This will start the Django server at http://localhost:8000.

API Endpoints

/admin/: Django admin page

/api/token/: API endpoint for obtaining authentication tokens

/api/token/refresh/: API endpoint for refreshing authentication tokens

/api/restaurants/: API endpoint for creating a new restaurant

/api/restaurants/int:restaurant_id/results/: API endpoint for getting the results of the current day's voting for a menu

/api/menus/: API endpoint for uploading a menu for a restaurant for a specific date

/api/menus/int:restaurant_id/: API endpoint for getting the current day's menu for a restaurant

/api/employees/: API endpoint for creating a new employee

/api/votes/: API endpoint for employees to vote for a menu

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published