Added departments to the api