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
- Host: GitHub
- URL: https://github.com/jimbob88/bible_api
- Owner: jimbob88
- Created: 2022-02-17T15:10:49.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-20T20:35:39.000Z (over 4 years ago)
- Last Synced: 2023-03-10T15:37:21.876Z (over 3 years ago)
- Topics: api, bible, mysql, rest, sql
- Language: HTML
- Homepage:
- Size: 435 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.MD
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
```