All Projects → seven1m → Bible_api

seven1m / Bible_api

Licence: mit
Sinatra web app that serves RESTful JSON web API for open and public domain bibles

Programming Languages

ruby
36898 projects - #4 most used programming language

bible_api

Sinatra web app that serves RESTful JSON web API for the World English Bible.

This app is served from bible-api.com, which anyone can use. Or you can host this app yourself!

mysql -uroot -e "create database bible_api; grant all on bible_api.* to [email protected] identified by 'password';"
export BIBLE_API_DB="mysql2://user:[email protected]/bible_api"
ruby import.rb
ruby app.rb

http://localhost:4567/John+3:16

{
  "reference": "John 3:16",
  "verses": [
    {
      "book_id":   "JHN",
      "book_name": "John",
      "chapter":   3,
      "verse":     16,
      "text":      "\nFor God so loved the world, that he gave his one and only Son, that whoever believes in him should not perish, but have eternal life.\n\n"
    }
  ],
  "text": "\nFor God so loved the world, that he gave his one and only Son, that whoever believes in him should not perish, but have eternal life.\n\n"
}

Copyright Tim Morgan. Licensed under The MIT License (MIT). See LICENSE for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].