[Polling Stations] Add CRUD endpoints for managing polling stations
aniri opened this issue · 2 comments
aniri commented
Information about polling stations should be displayed in the NGO admin panel. It should also be editable.
❗ do not delete old endpoints in order to keep backwards compatibility with older client app versions
Endpoints to be added:
- Add endpoint to view all the polling stations
GET api/v2/polling-station
- Add endpoint to edit a polling station - action only allowed for to admin account (an ngo admin belonging to an ngo that has the organizer flag set to true)
POST api/v2/polling-station/{id}
Update polling-station-info related endpoints (also keep the old ones for backwards compatibility):
- Add endpoint to post polling station infos (copy functionality from
POST api/v1/polling-station
)
POST api/v2/polling-station-info
- Add endpoint to put polling station infos (copy functionality from
PUT api/v1/polling-station
)
PUT api/v2/polling-station-info
decembrya commented
I will work on this
RaduCStefanescu commented
In progress @decembrya