Open mkozhukharenko opened 8 years ago
Персона це особова картка вступника, в якій міститься вся інформація про дану особу. [ ] 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
Персона це особова картка вступника, в якій міститься вся інформація про дану особу.
person/{id}
API GET /persons/{id}
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" }
api:/persons/types
/api/marriedtypes
/api/adminunits
One person view
API
GET /persons/{id}
response example:
Decode data
api:/persons/types
/api/marriedtypes
/api/adminunits