This respository contains a simple bible api with gets
only as the escriptures cannot be change.
- 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
You can pass old
or new
on url param.
- Response 200:
{
books: [
"book1",
"book2",
],
}
You only need pass the book name on url param.
- Response 200:
{}
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."
},
...,
],
}
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."
}