Skip to content

[FEATURE] Add teacher endpoint #71

Description

@hamidsultanzadeh

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

Metadata

Metadata

Labels

backendBelongs to the backend teamfeatureNew feature

Type

No type

Projects

Status
Ready for testing

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions