Skip to content

Latest commit

 

History

History
84 lines (67 loc) · 1.49 KB

README.md

File metadata and controls

84 lines (67 loc) · 1.49 KB

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."
}