omzmarlon / ManagementApp

0 stars 0 forks source link

CRUD API for user profile #29

Open omzmarlon opened 7 years ago

omzmarlon commented 7 years ago

In our web app, there's a page for user profile (if go to localhost:9000/#/profiles. But currently it shows nothing.) The page is just a simple display of all profile information related to a user, we need to show: username, email, phone, gender, registerAt, lastUpdateAt, Avatar image, Passport image, Insurance image (For images, provide the url of image on our server). If the user is a student, we also need to show credits, birthday, school name. (Note that we have two user types, student and tutor) (For details of these fields, see Users.scala, Students.scala, Images.scala, UserImage.scala, Schools.scala)

We will need CRUD APIs for user profile. Here are some of the steps you will need to consider:

Another helpful piece of info is that our user will initially register an account by giving just username, email and password, later they can give more info on their profile in a separate route.

Example JSON response: { email: example@gmail.com, username: example, avatar: /image/.jpg }

omzmarlon commented 7 years ago

I suspect this issue will have lots of new code. So please branch out and split your work into several commits for incremental reviews