Subjects (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/andrespaul123/micole-flutter/llms.txt
Use this file to discover all available pages before exploring further.
Subject / materias) are the academic disciplines offered by a school—such as Mathematics, Language Arts, or Natural Sciences. They live at the tenant level and are independent of any particular academic period or course. Once created, subjects can be assigned to teachers so that each teacher is linked to the disciplines they will instruct, enabling grade books, schedules, and class dashboards to be scoped correctly.
Subject Model
Unique identifier for the subject.
Display name of the subject, e.g.
"Matemáticas" or "Lengua y Literatura".Tenant-scoping identifier. Populated server-side; subjects are isolated per school.
SubjectRepository
All four CRUD operations plus a single-record fetch are available inSubjectRepository.
- List Subjects
- Get by ID
- Create Subject
- Update Subject
- Delete Subject
Returns all subjects belonging to the current tenant.Endpoint:
GET /api/subjectsAssigning Subjects to Teachers
Subjects become actionable when they are assigned to a teacher. This links aProfesor to a Subject and optionally to a specific Paralelo, forming the basis for class dashboards, grade books, and schedule entries.
Endpoint: POST /api/profesores/asignar-materia
Directors navigate to /profesores/:id/materia to open AsignarMateriaScreen, where they select a subject and (optionally) a section to complete the assignment. After assignment, the teacher’s assigned subjects are visible at /profesores/:id/materias-asignadas.
Open the teacher profile
Navigate to
/profesores and select the teacher you want to assign a subject to.Go to subject assignment
Tap Asignar materia to navigate to
/profesores/:id/materia, which opens AsignarMateriaScreen.Choose the subject
The screen lists all subjects returned by
GET /api/subjects. Select the desired subject from the dropdown or list.App Routes
/materias
List all subjects for the school (
SubjectListScreen)./materias/create
Create a new subject (
SubjectScreen)./materias/:id/edit
Edit an existing subject’s name (
SubjectEditScreen)./profesores/:id/materia
Assign a subject to a specific teacher (
AsignarMateriaScreen)./profesores/:id/materias-asignadas
View all subjects assigned to a teacher (
MateriasAsignadasScreen).