An open API service indexing awesome lists of open source software.

https://github.com/emilrex/coalesce


https://github.com/emilrex/coalesce

Last synced: 12 months ago
JSON representation

Awesome Lists containing this project

README

          

# Coalesce

![CI/CD](https://github.com/EmilRex/coalesce/actions/workflows/test.yml/badge.svg)

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
```