-
Notifications
You must be signed in to change notification settings - Fork 0
/
endpoints.txt
36 lines (23 loc) · 1006 Bytes
/
endpoints.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
NOTE: this is out of date
/nominations?rcs&office
GET: List all nominations for an RCS ID and office pair. Optional page parameter to only return a specific page number.
JSON list of nomination pages.
POST: Add a page of new nominations for an RCS ID and office pair. Optional page parameter adds nominations to an existing page.
Body: JSON list of up to 25 nominations.
Errors: More than 25 nominations on a page.
PUT: Modify an individual nomination (only to mark it as valid or invalid for now).
Auth: Only RnE can do this.
/validatenomination?office&nomination_rin&nomination_initials&candidate_rcs
GET: Whether the person identified by nomination_rin and nomination_initials can nominate the candidate identified by office and candidate_rcs.
Object: {valid: boolean, reason: string (null if valid)}
Nomination page object
{
id: integer (generated by server),
number: integer,
nominations: {
id: integer (generated by server),
rcs: string,
initials: string,
valid: boolean
}
}