-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplanning.txt
More file actions
44 lines (32 loc) · 1.35 KB
/
Copy pathplanning.txt
File metadata and controls
44 lines (32 loc) · 1.35 KB
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 we will make?
A functionality where user can give vote to the given candidates
Important things to make:
Routes?
Models?
voting app functionality
1. user sign in/ sign up
2. see the list of candidates
3. vote for one of the candidates, after voting not able to vote again
4. see the real time counting of votes
5. user login may contain their own unique id(aadhar card) & password
6. there should be an admin who will be able to change the list of candidates and update it
7. user can change their password also
8. admin cant vote
--------------------------------------------------------------------------------------------------------
Routes
User Authentication:
/signup: POST - create a new user account
/login: POST - log in to an existing account (aadahar no. + password)
Voting:
/candidates: GET - get the list of candidates
/vote/:candidateId: POST - vote for a specific candidate
Vote counts:
/vote/count: GET - get the real time counting of votes or sort them according to their votes
User Profile:
/profile: GET - get the user's profile information
/profile/password: PUT - update the user's password
Admin candidate management:
/candidates: POST - create a new candidate
/candidates/:candidateId: PUT - update an existing candidate
/candidate/:candidateId: DELETE - delete a candidate from the list