Overview¶
This page provides all the routes accessible under super-admin namespace.
Tab: Curriculum¶
Route: /super-admin/curriculum¶
Features¶
- Shows the list of curriculums available.
Components¶
CardSm: Displays the list of curriculums available.- Location:
/src/lib/components/super-admin/CardSm.svelte
- Location:
API Calls¶
GET-/api/v1/library/curriculums, fetches a list of curriculums.
Discussion¶
- uses the data from the API calls in
1and displays the curriculums.
Route: /super-admin/curriculum/[curriculumId]¶
Features¶
- Displays the list of domains available in the curriculum.
- Archives selected domains.
- Unarchives the selected domains.
- Displays the lesson plans.
- Deletes the selected lesson plans.
Components¶
CardSm: Displays the list of domains available.- Location:
/src/lib/components/super-admin/CardSm.svelte
- Location:
LessonPlanCard: Displays the list of lesson plans available.- Location:
/src/lib/components/lesson-plan/LessonPlanCard.svelte
- Location:
Button: can be found at/src/lib/components/school-admin/Button.svelte
API Calls¶
GET-/api/v1/library/curriculums/${curriculumId}, fetches the curriculum details (id & name).GET-/api/v1/library/domains?curriculum_id=${curriculumId}, fetches the list of domains available in a curriculum.GET-/api/v1/library/lesson_plans/search_and_filter?q[is_archived_true]=0&q[curriculum_id_eq]=${curriculumId}&q[sorts]=created_at+asc&page=1, fetches the list of lesson plans.PATCH-/api/v1/library/domains/${domainId}, archives or unarchives the selected domains.PATCH-/api/v1/library/lesson_plans/${lessonPlanId}, deletes the selected lesson plans.
Discussion¶
- Uses the data from the API calls in
1and displays the curriculum details. - Uses the data from the API calls in
2and displays the list of domains available. - Uses the data from the API call in
3and displays the list of lesson plans. - Archives and unarchives the selected domains using the API call
4. - Deletes the selected lesson plans using the API call
5.
Route: /super-admin/curriculum/[curriculumId]/domain/[domainId]¶
Features¶
- Creates a new domain.
- Shows domain info.
- Add and edit categories.
Components¶
CardLayout: displays the list of goals available in a category. When used inside theGoalcomponent, it displays the list of subgoals.- Location:
/src/lib/components/super-admin/CardLayout.svelte.
- Location:
CardLayoutForm: is used to enter a name and save the category.- Location:
/src/lib/components/super-admin/CardLayoutForm.svelte.
- Location:
QuantityInput: is used to display and define default goal completion criteria.- Location:
/src/lib/components/super-admin/domain-details/QuantityInput.svelte.
- Location:
AssessmentCriteriaOption: is used to display and define default assessment criteria.- Location:
./AssessmentCriteriaOption.svelte.
- Location:
AssessmentCriteriaCard: is used to display assessment criteria options.- Location:
./AssessmentCriteriaCard.svelte.
- Location:
OnboardingTaskBarUpdated: Proceeds to the next steps.- Location:
/src/lib/components/shared/OnboardingTaskBarUpdated.svelte
- Location:
API Calls¶
POST-/api/v1/library/domains?curriculum_id=${curriculumId}, creates a new domain in the curriculum.GET-/api/v1/library/domains?curriculum_id=${curriculumId}, fetches a list of domains.POST-/api/v1/library/categories, creates a new category in the domain.PATCH-/api/v1/library/categories/${categoryId}, edits a category.PATCH-/library/assessment_criteria/${assessment_criterion_id}?domain_id=${domain_id}, to define a default assessment criteria.
Discussion¶
- Creates a new domain using the API call
1. - The
load()finds the domain from the list of domains fetched from the API call2and displays the domain details. - Creates a new category using the API call
3. - Edits the categories using the API call
4. - Creates and edits the assessment and goal completion criteria using the API call
5.
Route: /super-admin/curriculum/[curriculumId]/domain/[domainId]/add-goals-tab¶
Features¶
- Create goals in a category and adds it to the domain.
- Edits the goal.
- Displays the goals available in a category.
- Deletes the goal from a category.
- Rearrange the goals in a category.
- Adds subgoals in a goal.
- Edits a subgoal.
- Deletes a subgoal from the goal.
- Adds lesson plan for a subgoal.
- Adds age range for a subgoal.
- Rearranges subgoals in a goal.
Components¶
CardLayout: displays the list of goals available in a category. When used inside theGoalcomponent, it displays the list of subgoals.- Location:
/src/lib/components/super-admin/CardLayout.svelte.
- Location:
CardLayoutForm: is used to enter a name and save the goal. When used inside theGoalcomponent, it is used to edit subgoal name.- Location:
/src/lib/components/super-admin/CardLayoutForm.svelte.
- Location:
OnboardingTaskBarUpdated: is used to for navigating to the next step.- Location:
/src/lib/components/shared/OnboardingTaskBarUpdated.svelte
- Location:
Goal: displays the list of goals.- Location:
/src/lib/components/shared/OnboardingTaskBarUpdated.svelte
- Location:
SubGoalCard: displays the list of subgoals in a goal. This component is used inside theGoalcomponent.- Location:
/src/lib/components/shared/OnboardingTaskBarUpdated.svelte
- Location:
ContentEditor: displays the list of materials available. This component is used inside theGoalcomponent.- Location:
/src/lib/components/shared/OnboardingTaskBarUpdated.svelte
- Location:
Modal: is used to load and display the content on the same page without changing the url.- Location:
/src/lib/components/shared/Modal.svelte
- Location:
API Calls¶
GET-api/v1/library/goals?domain_id=${domainId}&per_page=200, displays the list of goals in a category.POST/api/v1/library/goals, creates new goals and adds it to the domain.PATCHapi/v1/library/goals/${goalId}, edits a goal.DELETE/api/v1/library/goals/${goalId}, deletes the goals in a category.POST-/api/v1/library/goals/${goalId}/move_to_position, rearranges the goals.POST-/api/v1/library/subgoals, creates new subgoals in a goal.PATCH-/api/v1/library/subgoals/${subgoalId}, edits a subgoal.DELETE-/api/v1/library/subgoals/${subgoalId}, deletes a subgoal.GET-/api/v1/library/domains/${domainId}, fetches domain details.POST-/api/v1/library/assessment_criteria, creates an assessment criteria.GET-/api/v1/library/material_entities?entity_id=${subgoalId}&page=1, gets the list of materials in a subgoalGET-/api/v1/library/materials?page=1&is_archived=false, gets the list of materials available to be added to a subgoalPOST-api/v1/library/material_entities, adds the materials to a subgoalDELETE-/api/v1/library/material_entities/${materialId}, deletes the materials from a subgoal.
Discussion¶
- Fetches the list of goals using the API call
1. - Creates a new goal and adds it to the domain using the API call
2. - Edits the goal using the API call
3. - Deletes the goal using the API call
4. - Rearranges a goal in the category using the API call
5. - Adds description to the goal using the API call
3. - Uses API call
7to fetch the domain details. - Fetches the list of materials in a subgoal using the API call
9. - Adds subgoals to the goal using the API call
6. - Edits subgoals using the API call
7. - Deletes the subgoals using the API call
8. - Fetches the domain details using the API call
9. - Adds an assessment criteria to the goal using the API call
10. - Fetches the list of materials available in a subgoal using the API call
11. - Fetches the list of materials to be added to the subgoal using the API call
12. - Adds the selected materials to the subgoal using the API call
13. - Deletes the materials from the subgoal using the API call
14.
Route: /super-admin/curriculum/${curriculumId}/lesson-plan/new¶
Features¶
- Creates a new lesson plan in a curriculum.
API Calls¶
POST-/api/v1/library/lesson_plans, creates a lesson plan.GET-/api/v1/library/curriculums/${curriculumId}, fetches curriculum info.GET-/api/v1/library/domains?curriculum_id=${curriculumId}, fetches the list of domains in the curriculum.
Discussion¶
- Fetches the curriculum and the domains info using the API calls
2&3. - creates a new lesson plan using the API call
1.
Tab: School¶
Route: /super-admin/school¶
Features¶
- Links curricula ot the school.
- Adds a new school.
- Creates a new user and assigns or removes access from the user.
Components¶
CardLayout: displays the list of goals available in a category. When used inside theGoalcomponent, it displays the list of subgoals.- Location:
/src/lib/components/super-admin/CardLayout.svelte.
- Location:
CardLayoutForm: is used to enter a name and save the goal. When used inside theGoalcomponent, it is used to edit subgoal name.- Location:
/src/lib/components/super-admin/CardLayoutForm.svelte.
- Location:
AddAdminModal: is used to add school administrators.- Location:
/src/lib/components/super-admin/AddAdminModal.svelte.
- Location:
LinkCurriculaModal: is used to link curricula.- Location:
/src/lib/components/super-admin/LinkCurriculaModal.svelte.
- Location:
SchoolCard: fetches and displays all the schools data.- Location:
/src/lib/components/super-admin/SchoolCard.svelte.
- Location:
UsersModal: displays the list of users.- Location:
/src/lib/components/super-admin/UsersModal.svelte.
- Location:
API Calls¶
GET-/api/v1/schools, fetches the list of schools.GET-/api/v1/library/curriculums, fetches the list of curricula.GET-/api/v1/library/domains?curriculum_id=${curriculumId}, fetches the domains in the curriculum.POST-/api/v1/schools, creates a new school.POST-/api/v1/school/school_curriculums, adds and links a curricula to the school.DELETE-/api/v1/school/school_curriculums/${curriculumId}, removes the curriculum from the school.POST-/api/v1/users, creates a new user.POST-/api/v1/school/profiles?all=true, adds user to the school administrators.PATCH-/api/v1/users/${userId}, updates the user.DELETE-/api/v1/school/accesses/${userId}, removes access from a user.
Discussion¶
- Fetches the schools, curriculums and domains in that curriculums information using the API calls
1,2and3. - Creates a new school using the API call
4. - Adds or links the curricula to the school using the API call
5. - Removes the curriculum from the school using the API call
6. - Creates, adds and edits the users using the API calls
7,8&9. - Removes the user access using the API call
10.
Tab: Content Library¶
Route: /super-admin/materials¶
Features¶
- Creates a new flashcard.
- Displays a list of flashcards.
- Edits the flashcards.
- Archives the flashcards.
Components¶
TagsSelectionModal: Selects from the list of tags.- Location:
./TagsSelectionModal.svelte.
- Location:
CreateNewTagModal: Creates a new tag.- Location:
./CreateNewTagModal.svelte.
- Location:
CreateFlashcardModal: Creates a Flashcard (aka material).- Location:
./CreateFlashcardModal.svelte.
- Location:
API Calls¶
GET-/api/v1/library/materials/search_and_filter?page=1&q[sorts]=updated_at+desc&q[is_archived_true]=0, fetches all the materialsGET-/api/v1/library/tags?page=1, fetches all the tags.GET-/api/v1/library/materials?query_material_text=${queryString}$&page=1&is_archived=false, searches the flashcards as per the query string.GET-/api/v1/library/materials?tag=${tagName}&page=1&is_archived=false, searches the flashcards as per the tag name.POST-/api/v1/library/tags, creates a tag for the flashcard.POST-/api/v1/media/signed_upload_url, creates a flashcard.PATCH-/api/v1/library/materials/${materialsId}}$, archives or edits the flashcards.
Discussion¶
- Fetches all the flashcards and tags using the API calls
1&2. - Searches the flashcards as per the query string using the API call
3. - Searches the flashcards as per the tag name using the API call
4. - Creates a new tag using the API call
5. - Creates a new flashcard using the API call
6. - Archives or edits the flashcards using the API call
7.
Tab: Worksheets¶
Route: /super-admin/worksheets¶
Features¶
- Creates a new worksheet and redirects to
/super-admin/worksheets/worksheetin order to create a new worksheet. - Publishes or unpublishes the admin worksheets.
- All the rest of the features and functionalities are same as
Tab: Classroom Worksheets. But here we are dealing with admin worksheets only.
API Calls¶
POST-/api/v1/library/worksheets/search_and_filter?per_page=50, fetches all the admin worksheets.GET-/api/v1/library/worksheet/tags, fetches all the worksheet tags.GET-/api/v1/library/domains?per_page=50, fetches all the domains.POST-/api/v1/library/worksheets, creates a new worksheet.POST-/api/v1/library/worksheets/search_and_filter?per_page=50, filters the worksheets using the domains.POST-/api/v1/library/worksheets/${worksheetId}/publish, publishes the admin worksheet.POST-/api/v1/library/worksheets/${worksheetId}/unpublish, unpublishes the admin worksheet.
Discussion¶
- Refer to the API calls above and
Tab: Classroom Worksheets. All the edit and delete and other features are similar as the former.