medicinal-products-registry-api

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2018 License: MIT Imports: 10 Imported by: 0

README

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.

The 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! :)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL