Endpoint: POST /v1/teachers
Fields: (comes from FRONT)
- name
- surname
- email
- phone number
Flow:
You need to insert it into the users table first. After the inserting process, you will get ID of the inserted user. And use this ID in the teachers's inserting process
Validations:
SKIP for now
Notes:
for role_id use the default role for now, we'll change it. just add a TODO above it
for password use the default string as "123456789" for now. we'll change it. just add a TODO above it
before all of these put a TODO comment at the start of the method: "Assign process for groups"
don't forget to check by phone_number
USE BUSINESS SERVICE LAYER
USE MapStruct for mapping process
Endpoint: POST /v1/teachers
Fields: (comes from FRONT)
Flow:
You need to insert it into the users table first. After the inserting process, you will get ID of the inserted user. And use this ID in the teachers's inserting process
Validations:
SKIP for now
Notes:
for role_id use the default role for now, we'll change it. just add a TODO above it
for password use the default string as "123456789" for now. we'll change it. just add a TODO above it
before all of these put a TODO comment at the start of the method: "Assign process for groups"
don't forget to check by phone_number
USE BUSINESS SERVICE LAYER
USE MapStruct for mapping process