-
Notifications
You must be signed in to change notification settings - Fork 0
/
planning.txt
35 lines (28 loc) · 957 Bytes
/
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
voting app
what?
user can votes to candinates
functionality-
1. user sign in /sign up
2.see the list of candinates
3.vote only one of the candinates
4. route which show list of candinates and their live votes in sorted order
5. user must have aadhar
6.admin to maintain candinates list and cant vote
7.user can change password
-----------------------------------------------
routes-
user authentication-
/signup: POST
/login: POST [aadhar + password]
voting-
/candinates :GET list of candinates
/vote/:candinateID: POST vote for a specific candinate
vote counts:
/vote/counts: GET list of candinates in sorted order by their vote counts
User Profile:
/profile: GET user data
/profile/password: PUT change the user password
Admin candinate Management:
/candinates: POST - create a new candinate
/candinates/:candinateID PUT - update a candinate
/candinates/:candinateID DELETE- delete a candinate from the list