Skip to content

Frontend Documentation

Shashank Kumar edited this page Feb 3, 2022 · 27 revisions

Frontend Documentation

Registrations page

The User Registration screen uses the /register API.
The “First Name” textbox should use the first_name field value.
The “Last Name” textbox should use the last_name field value from the GET response payload.
The “Current Location” textbox should use the current_loaction field value from the GET response payload.
The “Current Company Name” textbox should use the current_company_name field value from the GET response payload.
The “Current Position Title” textbox should use the current_position field value from the GET response payload.
The “School” textbox should use the school field value from the GET response payload.
The “Years of Experience” textbox should use the years_of_experience_id field value from the GET response payload.
The “Email Address” textbox should use the email field value from the GET response payload.
The “Password” textbox should use the password_hash field value from the GET response payload.

The back-to-login hyperlink will redirect to the /login API. These are mock-up screens, after clicking on Register it will call the respective POST API.

Edit Profile

  • The Edit User screen uses the http://localhost:3000/edit-profile API.

Navbar

  • The Home in the navbar directs to the home screen using the http://localhost:3000/home API.
  • The Requests in the navbar are direct to the home screen using the http://localhost:3000/posts API.
  • The Edit Profile in the navbar directs to the edit profile screen using the http://localhost:3000/edit-profile API.
  • The Posts in the navbar direct to the creation of posts screen using the http://localhost:3000/create-post API.
  • The Logout in the navbar directs to the login screen using the http://localhost:3000/login API.

Edit Profile Form

  • The “First Name” textbox should use the first_name field value from the GET response payload.
  • The “Last Name” textbox should use the last_name field value from the GET response payload.
  • The “Current Location” textbox should use the current_loaction field value from the GET response payload.
  • The “Current Company Name” textbox should use the current_company_name field value from the GET response payload.
  • The “Current Position Title” textbox should use the current_position field value from the GET response payload.
  • The “School” textbox should use the school field value from the GET response payload.
  • The “Years of Experience” textbox should use the years_of_experience_id field value from the GET response payload.
  • The “Email Address” textbox should use the email field value from the GET response payload.
  • The “Password” textbox should use the password_hash field value from the GET response payload.

  • These are mock-up screens, and after clicking Save Changes the above fields call PUT API.
Clone this wiki locally