mkozhukharenko / ums-frontend

ums-frontend
MIT License
1 stars 1 forks source link

Person view #13

Open mkozhukharenko opened 8 years ago

mkozhukharenko commented 8 years ago

One person view

Персона ­ це особова картка вступника, в якій міститься вся інформація про дану особу.

  • [ ] Fetch data: create actions and reducer
  • [ ] Decode it using data from dictionary
  • [ ] Create route person/{id}
  • [ ] Create container (connect is with store) and dump component for rendering decoded person

    Fetch data

API GET /persons/{id}

response example:

{
  "id": 7,
  "crtUser": "admin",
  "crtUserGroup": "developers",
  "createDate": "2015-06-18",
  "updateDate": "2015-06-18",
  "personTypeId": 1,
  "genderTypeId": 1,
  "marriedTypeId": 2,
  "citizenCountryId": 1,
  "name": "Іван Урсул",
  "firstName": "Іван",
  "fatherName": "Зіновійович",
  "surname": "Урсул",
  "photo": "/",
  "docSeries": "КС",
  "docNum": "34654654",
  "identifier": "81135",
  "resident": 0,
  "birthPlace": "3928",
  "begDate": "1992-04-30",
  "isMilitary": 0,
  "isHostel": 0,
  "uri": "/persons/7"
}

Decode data