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

https://github.com/jimbob88/bible_api

An SQL based Bible REST API
https://github.com/jimbob88/bible_api

api bible mysql rest sql

Last synced: about 1 year ago
JSON representation

An SQL based Bible REST API

Awesome Lists containing this project

README

          

# Initial Setup
```
> pip install -r requirements.txt
```

# DATABASE CREATION

## Create Database
```sql
CREATE DATABASE bible_api;
use bible_api;
```

## Download files
Download database files: https://ebible.org/download.php
Choose to download the "BibleWorks import (VPL) + SQL" files and copy the ".sql files" to a folder called `./sources/`, the names of the files should correspond to the names of the tables!

## Load Database data
```
> python -Xutf8 create_database.py
```

# API
## Launch rest
```
> uvicorn api:app
```

## Example REST request to /text_query/
```
> http://127.0.0.1:8000/text_query/?bible_name=deu1912_vpl&bible_name=engwebpb_vpl&book=GEN&chapter=1
```

## Documention
```
> http://127.0.0.1:8000/redoc
```