import { apiRequest } from '@/shared/api/httpClient';

export interface ClassRecord {
  readonly id: string;
  readonly name: string | null;
  readonly section?: string | null;
  readonly capacity?: number | null;
  readonly campusId?: string | null;
}

export function getClass(id: string): Promise<ClassRecord> {
  return apiRequest<ClassRecord>(`/classes/${id}`);
}
