Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create population-metrics.yml #21

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

KasparMinn
Copy link

@KasparMinn KasparMinn commented Jun 30, 2023

Service that fetches population statistics from Statistics Estonia by location and time (year) parameters. Service works with either parameter as well as both or none.

  • if no location parameter is given, fetches data for entirety of Estonia
  • if no year parameter is given, fetches data for current year

If location parameter exists, the service first makes a query toward Data Mapper with the location string to fetch the appropriate stat number for the location. This number is needed for the query toward Statistics Estonia.

Working version of the Data Mapper files & new endpoint

The Data Mapper query requires a POST endpoint with the return header of Content-Type: application/json.

If the service fails in case of incorrect inputs or any other reason, returns the error code 300.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant