Opposition Endpoints.

    End Points for Subcounty Level.
  1. Add LC3 Opposition

    [POST] /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
                }
            

  2. List LC3 Opposition Candidates

    [GET] /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"
                }
            ]
            

  3. Update Votes LC3 Candidates

    [POST] /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"
                }