-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplanning.txt
42 lines (32 loc) · 1.4 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
Voting Application:
WHAT???
A functionality where user can give vote to the given set of candidate
Models?
Routes?
voting app functionality:
1. user sign in / sign up
2. see the list of candidates
3. vote one of the candidate
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 unique government id proof named : aadhar card number
6. there should be one admin who only maintains the table of candidates and he can't able to vote at all
7. user can change their password
8. user can login with aadhar card number and password
9. admin can't vote at all
----------------------------------------------------------------------
Routes:
User Authenticaion:
/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 number of candida 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 last.