Skip to content
This repository was archived by the owner on May 26, 2025. It is now read-only.
This repository was archived by the owner on May 26, 2025. It is now read-only.

Enhance POST endpoint for polling station info #334

Description

@aniri

The are some small adjustments to be made to the POST ​/api​/v2​/polling-station-info :

  • change the field from the request body idPollingStation to pollingStationNumber to make the name more clear
  • when adding the new data in the DB, it should first look for the polling station by the pollingStationNumber and countyCode and should throw 404 if not found. if found, it should save its DB id and the other info from the request body in the PollingStationInfos table and return the id of the new PollingStationInfo entity
  • please make the changes so multiple entries could be saved in the DB for the same observer / polling station combination. there's currently a constraint that prevents this

Please make sure not to affect the previous v1/polling-station functionality.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions