https://github.com/emilrex/coalesce
https://github.com/emilrex/coalesce
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/emilrex/coalesce
- Owner: EmilRex
- Created: 2022-04-03T21:19:09.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-05T13:46:35.000Z (about 4 years ago)
- Last Synced: 2025-01-10T04:54:26.814Z (over 1 year ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Coalesce

Coalesce is an API that gathers insurance coverage from many upstream APIs and coalesces them into a single response. The architectural choices made are meant to reflect best practices.
## Getting Started
Make sure you have `docker` and `docker-compose` installed, then simply run:
```shell
docker-compose up --build --detach
```
Now the API should be available at http://0.0.0.0:8080/.
You must provide the `member_id` as a query parameter and you can optionally provide a `strategy` (default is `average`). For example, http://0.0.0.0:8080/?member_id=1&strategy=minimum will return the minimum of each coverage element for member 1.
## Testing
The tests are also executed using `docker`:
```bash
docker-compose up --build --detach
docker-compose run --rm test
```