getUser method
Retrieves data for a specific user within a hospital.
hospitalId
The ID of the hospital.
userId
The ID of the user.
Returns a Future<Map<String, dynamic>>
containing the user data.
Implementation
Future<Map<String, dynamic>> getUser(int hospitalId, int userId) async {
return await _makeRequest('/api/hospitals/$hospitalId/users/$userId/');
}