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

https://github.com/michaelbukachi/koa-ex


https://github.com/michaelbukachi/koa-ex

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

### Setup
Install dependencies
```bash
pip install -r requirements.txt`
```
Run migrations
```bash
python manage.py migrate
```
Run server
```bash
python manage.py runserver
```
Access doc at http://127.0.0.1:8000/redoc/

Sample request:
```bash
curl -X POST -H "Content-Type: application/json" -d '{"data":"...."}' http://127.0.0.1:8000/api/v1/grid/
```

Run tests with
```bash
pytest
```

## Assumptions
1. There's only one pair of closest points for a given set of points
2. Point values are integers