-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathplanning.txt
45 lines (32 loc) · 1.45 KB
/
planning.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
36
37
38
39
40
41
42
43
44
voting application
WHAT ???
A functionality where user can give vote to the given set of candidates
Models?
Routes?
voting app 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't vote at all
----------------------------------------------------------------
Routes
User Authentication:
/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.
/vote/:candidateId: POST - Vote for a specific candidate.
Vote Counts:
/vote/counts: GET - Get the list of candidates sorted by their vote counts.
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.