This function sends a GET request to the departments endpoint of the Semestry API and retrieves the department data.
get_departments(semestry, timeout = 30)
An authenticated Semestry object.
The timeout duration for the GET request (default: 30 seconds).
The retrieved department data from the API.