ita-social-projects / Home

Home - is an all-in-one social service that will cover all aspects of your communication with your home and neighbors.
http://www.home-project-engineering.tech/api/0/apidocs/index.html
MIT License
26 stars 31 forks source link

Refactor OpenApi specification for user registration #480

Closed vladyslavyarets closed 2 years ago

vladyslavyarets commented 2 years ago

Overview

Due to new logic described in ticket #478. Now users registries during apartment registration by its cooperation admin. So, users already created and stores in the database. Due to this changes in payload required.

Payload example

{
  "user_id": 4
  "registration_token": "7b3a32f0-1326-11ed-b2e2-b51ca8f90a82",
  "email": "test@gmail.com",
  "password": "Passw0rd",
  "phone_number": 380501112233
}

Note: all fields required. user_id is a id which user got during apartment registration. registration_token is a token which generates during creating of invitation and adds to invitation email.

Tasks:

  1. Change openApi specification due to payload describer above.
  2. Stab the logic in the controller for happy path.
vladyslavyarets commented 2 years ago

Hey team! Please add your planning poker estimate with ZenHub @gendalf-fx @ystoikov @artmarchenko

vladyslavyarets commented 2 years ago

Done!