-
Notifications
You must be signed in to change notification settings - Fork 0
/
ProjectOverview.txt
35 lines (27 loc) · 1.31 KB
/
ProjectOverview.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Voting Application
models and routes
functionality
1. user sign in / sign up
2. see the list of candidate
3. vote one of the candidate, after voting, user can't vote again
4. there is a route which shows the list of candidates and their live vote counts sorted by their vote count
5. user data must contain their one uqiue goverment id proof named: aadhar card number
6. there should be one admin who can only maintain the table of candidates and he can't able to vote at all
7. user can change their password
8. user can login only with aadhar card number and password
9. admin can never vote
Routes
User Authentication:
Vote //votevoteCounts//counts: candidateId: : GET - : POST Get the - Vote list for of a candidates specific candidatesorted by . their vote counts.
/signup: POST - Create a new user account.
/login: POST - Log in to an existing account. [ aadhar card number + password ]
Voting:
/candidates: GET - Get the list of candidates.
/candidates/candidateId: Post - vote for specific candidate.
User Profile:
/profile: GET - Get the user's profile information.
/profile/password: PUT - Change the user's password.
Admin Candidate Management:
/candidates: POST - Create a new candidate.
/candidates/: candidateId: PUT - Update an existing candidate.
/candidates/: candidateId: DELETE - Delete a candidate from the list.