/api/forms/lc3-flag-bearer/opposition/add
Request in post request
{
"NINNumber": "ggg",
"FirstName": "ggg",
"LastName" : "ggg",
"Phone": "fff",
"Village" :"gg",
"Parish": "hh",
"Subcounty":"hh",
"Vote": "hh"
}
Response after sending request
{
"success": true,
"candidate_id": 12
}
/api/forms/lc3-flag-bearer/opposition/list
Response after sending request
[
{
"NINNumber": "ggg",
"FirstName": "ggg",
"LastName" : "ggg",
"Phone": "fff",
"Village" :"gg",
"Parish": "hh",
"Subcounty":"hh",
"Vote": "hh"
},
{
"NINNumber": "ggg",
"FirstName": "ggg",
"LastName" : "ggg",
"Phone": "fff",
"Village" :"gg",
"Parish": "hh",
"Subcounty":"hh",
"Vote": "hh"
},
{
"NINNumber": "ggg",
"FirstName": "ggg",
"LastName" : "ggg",
"Phone": "fff",
"Village" :"gg",
"Parish": "hh",
"Subcounty":"hh",
"Vote": "hh"
}
]
/api/forms/lc3-flag-bearer/opposition/update-vote
Post data to update votes
{
"CandidateID" : "1",
"Vote": "6"
}
Response after sending request
{
"success": true,
"candidate_id": "1"
}