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 apartment registration #481

Closed vladyslavyarets closed 2 years ago

vladyslavyarets commented 2 years ago

Overview:

Due to new registration logic all information about ownerships should be filled by cooperation admin during apartment creation. There are 2 types of ownerships and required fields variates depends on this type. For more information about it see ticket #478.

Payload example

{
  "number": "15",
  "area": 75.28,
  "ownerships": [
    {
      "type": "person",
      "first_name": "Ivan",
      "last_name": "Ivanov",
      "middle_name": "Ivanovich",
      "ownership_part": 0.3
    },
    {
      "type": "legal_entity"
      "name": "Company Inc.",
      "edrpou": "12345678",
      "ownership_part": 0.7
    }
  ]
}

Tasks

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

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

vladyslavyarets commented 2 years ago

Done!