Skip to content

This respository contains a simple bible api with `gets` only as the escriptures cannot be change.

Notifications You must be signed in to change notification settings

alexfernandessd/api-bible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Api-bible

Build Status

This respository contains a simple bible api with gets only as the escriptures cannot be change.

Build & Start

  • To build the application you just need run the command:
make build
  • After build you can run the following command to start the application:
make run

URLs for services

Get /testaments/{testament}/books

You can pass old or new on url param.

  • Response 200:
{
  books: [
    "book1",
    "book2",
  ],
}

Get /books/{book}/verses

You only need pass the book name on url param.

  • Response 200:
{}

Get /books/{book}/chapters/{chapter}/verses

You need pass the book name and the chapter on url param.

  • Response 200:
{
  verses: [
    {
      "ID": 1,
      "Version": "aa",
      "Testament": 1,
      "Book": 0,
      "Chapter": 1,
      "Verse": 1,
      "Text": "No princípio criou Deus os céus e a terra."
    },
    {
      "ID": 2,
      "Version": "aa",
      "Testament": 1,
      "Book": 0,
      "Chapter": 1,
      "Verse": 2,
      "Text": "A terra era sem forma e vazia; e havia trevas sobre a face do abismo, mas o Espírito de Deus pairava sobre a face das águas."
    },
    ...,
  ],
}

Get /books/{book}/chapters/{chapter}/verses/{verse}

You need pass the book name, chapter and the verse on url param.

  • Response 200:
{
  "Version": "aa",
  "Text": "No princípio criou Deus os céus e a terra."
}

About

This respository contains a simple bible api with `gets` only as the escriptures cannot be change.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published