Skip to content

Elevator System design Backend made using Django_rest_framework

Notifications You must be signed in to change notification settings

gargpuneet438/Elevator_System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elevator_System

Elevator System design Backend made using Django_rest_framework It is comparable to a buiding with many elevators Contains the primary key that Django's default ID parameter has assigned as well. we can have various elevator systems.

API OVERVIEW

`GET/POST api/system/` View all the elevator systems and add any system with the following request body
{ system_name : string,
total_floors: int
number_of_elevators:int
}

GET api/system/{elevator-system-id}/show_elevators/ Given an elevator system list all the elevators and their status.

image

GET/PUT api/system/{elevator-system-id}/elevator/{elevator-number}/ Get details of a specific elevator, given its elevator system id and elevator number

image

Using PUT method we can do following things:
Fetch/Update if the elevator is moving up or down currently
Mark a elevator as not working or in maintenance
Open/close the door.
image

POST api/system/{elevator-system-id}/elevator/{elevator-number}/make_request Input the elevator system, elevator number, and elevator URL to create a new request for a specific elevator. The form data is transmitted along with the requested and destination fields' inputs.

image

GET api/system/{elevator-system-id}/elevator/{elevator-number}/destination/ Fetch the next destination floor for a given elevator

image

GET api/system/{elevator-system-id}/elevator/{elevator-number}/req_current_status/ List all the requests for a given elevator. Requests already served can be filtered with is_active parameter set false.

image

About

Elevator System design Backend made using Django_rest_framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages