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.
`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.
GET/PUT api/system/{elevator-system-id}/elevator/{elevator-number}/
Get details of a specific elevator, given its elevator system id and elevator number
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.

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.
GET api/system/{elevator-system-id}/elevator/{elevator-number}/destination/
Fetch the next destination floor for a given elevator
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.




