Skip to content

Build REST APIs for schools to add class, rename class, delete class, add section, rename section, delete section #3

@sonu-ind-dev

Description

@sonu-ind-dev

There are two tables in our database: class, class_section

class table: class_id, school_id, class_number, class_index
required columns: class_number, class_section
optional columns: class_index
default columns: class_id, school_id, class_index

Based on this table details we have to create four APIs one for add class, second for delete class, third for update class number and fourth for drag class.

class_section table: section_id, class_id, class_section, class_section_index
required columns: class_id, class_section
optional columns: class_section_index
default columns: class_section_index

Based on this table details we have to create four APIs one for add section, second for delete s,ection third for rename section and fourth for drag section.

Restriction:

  1. Every class need to have atleast one section (Default section A will get created with the class creation)
  2. To delete any section first we have to remove all the students from that section
  3. To delete any class first we have to remove all the students from that class's sections

@sonu-ind-dev

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status

Developed - Testing

Relationships

None yet

Development

No branches or pull requests

Issue actions