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