Skip to content
Server exposing an API to dane.gov.pl's Registry of Medicinal Products.
Go Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
api
data
.gitignore
Dockerfile
Gopkg.lock
Gopkg.toml
LICENSE
README.md
downloader.go
main.go
schema.graphql

README.md

Medicinal products registry API

This is a webserver which exposes a convenient GraphQL endpoint for fetching data from polish register of medicinal products which is a public data from dane.gov.pl.

New data is fetched every 20 minutes (and this can be changed in code) from the server.

Compilation & usage

To compile, you need to install dependencies by dep ensure (you need Dep) in project's directory. Then, all you have to do is to run go build.

To run the server, you need to provide the MPR_ADDR environment variable to tell the server on what to listen (this can be :8080, for example).

MPR_ADDR=localhost:80 ./app

API

Below screenshot shows all endpoints and fields exposed in the API.

Insomnia screenshot

Contributing

...is welcome! :)

You can’t perform that action at this time.