-
Notifications
You must be signed in to change notification settings - Fork 6
/
admin-api-endpoints.txt
48 lines (42 loc) · 1.45 KB
/
admin-api-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
37
38
39
40
41
42
43
44
45
46
47
48
- [x] GET /users
- [x] GET /users?page=:page
- [x] GET /users/:id
- [x] PATCH /users/:id
- [ ] GET /users.csv (export to the CRM)
- [ ] GET /posts?listed,published
- [x] GET /posts/:id
- [x] POST /posts
- [ ] PATCH /posts/:id
- [ ] GET /violations?status,assignee,section,town
- [ ] POST /violations/assign
- [ ] GET /violations/:id
- [ ] GET /violations/:id/comments
- [ ] POST /violations/:id/comments
- [ ] PATCH /violations/:id
- [ ] GET /sections?country,election_region,municipality,town,with_protocols,with_published_protocols,with_violations
- [x] GET /protocols?page,assignee,section,status,author
- [ ] GET /protocols?organization
- [x] POST /protocols
- [x] GET /protocols/:id
- [x] POST /protocols/:id/results
- [x] GET /protocols/:id/results
- [x] GET /protocols/:id/assignees
- [x] PUT /protocols/:id/assignees
- [x] POST /protocols/:id/assignees
- [x] DELETE /protocols/:id/assignees/:user
- [x] POST /protocols/assign
- [x] POST /protocols/:id/reject
- [x] POST /protocols/:id/replace
- [x] POST /protocols/:id/approve
- [x] GET /violations?page,assignee,section,town,status,author,organization
- [x] POST /violations
- [x] GET /violations/:id
- [x] POST /violations/:id/comments
- [x] GET /violations/:id/comments
- [x] GET /violations/:id/assignees
- [x] PUT /violations/:id/assignees
- [x] POST /violations/:id/assignees
- [x] DELETE /violations/:id/assignees/:user
- [x] POST /violations/:id/reject
- [x] POST /violations/:id/process
- [x] PATCH /violations/:id