GithubHelp home page GithubHelp logo

omarciovsena / abibliadigital Goto Github PK

View Code? Open in Web Editor NEW
731.0 731.0 114.0 6.18 MB

A RESTful API for Bible

Home Page: http://www.abibliadigital.com.br

License: BSD 2-Clause "Simplified" License

CSS 25.47% JavaScript 62.25% Dockerfile 0.21% Shell 0.05% SCSS 7.75% Pug 4.28%
api bible bibleapi hacktoberfest restfull-api

abibliadigital's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

abibliadigital's Issues

User creation - Bad Request without details

Post, in user creation endpoint, this content (equals to API doc example):

{
  "name": "Name",
  "email": "[email protected]",
  "password": "102030",
  "notifications": true
}

API returned:

<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="utf-8">
	<title>Error</title>
</head>

<body>
	<pre>Bad Request</pre>
</body>

</html>

Commentation Books

  • Gênesis

  • Êxodo

  • Levítico

  • Números

  • Deuteronômio

  • Josué

  • Juízes

  • Rute

  • I Samuel

  • II Samuel

  • I Reis

  • II Reis

  • I Crônicas

  • II Crônicas

  • Esdras

  • Neemias

  • Ester

  • Salmos

  • Provérbios

  • Eclesiastes

  • Cântico dos Cânticos

  • Isaías

  • Jeremias

  • Lamentações

  • Ezequiel

  • Daniel

  • Oséias

  • Joel

  • Amós

  • Obadias

  • Jonas

  • Miquéias

  • Naum

  • Habacuque

  • Sofonias

  • Ageu

  • Zacarias

  • Malaquias

  • Mateus

  • Marcos

  • Lucas

  • João

  • Atos dos Apóstolos

  • Romanos

  • I Coríntios

  • II Coríntios

  • Gálatas

  • Efésios

  • Filipenses

  • Colossenses

  • I Tessalonicenses

  • II Tessalonicenses

  • I Timóteo

  • II Timóteo

  • Tito

  • Filemon

  • Hebreus

  • Tiago

  • I Pedro

  • II Pedro

  • I João

  • II João

  • III João

  • Judas

  • Apocalipse

Add Docs link on NavBar

Add the Documentation link in NavBar would make it much easier to find documentation page.

Add Biblical keys

keys:

  • Amor
  • Ansiedade
  • Cura
  • Raiva
  • Esperança
  • Depressão
  • Medo
  • Paz
  • Família
  • Estresse
  • Paciência
  • Perda
  • Inveja
  • Alegria
  • Tentação
  • Orgulho
  • Dúvida
  • Sabedoria
  • Pressão dos colegas
  • Tentação
  • Obediência

endpoint

https://bibleapi.co/api/version/:version/keys/:key

response

{
      key: "pastor",
      count: 1,
      verses: [
          {
             "book": {
                 "abbrev": "sl",
                 "name": "Salmos",
                 "author": "David, Moisés, Salomão",
                 "group": "Poéticos",
              }
             "chapter": 23,
             "number": 1,
             "text": "O Senhor é o meu pastor; de nada terei falta."
          },
      ]
}

Trying to send multiple keyword in "search" parameter of body content when sending a POST request for obtain random verses

Given the post request POST https://www.abibliadigital.com.br/api/verses/search which should have a JSON body, would be possible to implement a way to send multiple keywords?
How the post request body works actually:
{
"version": "nvi",
"search": "amor"
}
The way I have explaned above
{
"version": "nvi",
"search": ["amor", "paciência", "perdão"]
}

This way, it will be possible to create a whole bunch of random verses.

Yarn 1.9.4 requires node >= 10.14.0

When you run docker-compose up, the following error comes up

bibleapi          | [1/5] Validating package.json...
bibleapi          | error [email protected]: The engine "node" is incompatible with this module. Expected version ">=10.14.0".
bibleapi          | error Found incompatible module
bibleapi          | info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
bibleapi          | yarn run v1.9.4
bibleapi          | $ nodemon --exec babel-node app.js
bibleapi          | /bin/sh: 1: nodemon: not found
bibleapi          | error Command failed with exit code 127.
bibleapi          | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.```

This requires the node version in use to be upgraded from 10.11.0 to at least 10.14.0

Como configurar o banco de dados no ambiente local

Essa é uma dúvida que recebi por email da Vanessa Ribeiro. Segue as minhas instruções:

Essa informação não ficou clara mesmo, mas segue as instruções que executo sempre por aqui. Com certeza um modo otimizado estará no README.md das próximas versões.

Passo 1:

É necessário pelo menos 4 arquivos e eles precisam estar nos seguintes diretórios:

MONGODB_URI=mongodb://localhost/bibleapi
NODE_ENV="development"
SECRET_KEY="String"

Passo 2:

  • Crie um banco mongodb com o seguinte nome bibleapi

Passo 3:

Com os arquivos nos diretórios corretos, execute os seguintes scripts que já estão no package.json

  • yarn test:db:book - Carrega os 66 livros
  • yarn test:db:verse - Carrega os mais de 31.000 versículos da versão NVI

Nos próximos dias atualizarei o código com uma versão otimizada.
Vanessa, obrigado por perguntar.

Add Spanish NVI version

As a Spanish speaker developer
I want to be able to consult the spanish NVI version of the Bible
So that I can develop an app to share the Bible with people who speaks Spanish

Add Spanish RVR version

As a Spanish speaker developer
I want to be able to consult the spanish RVR version of the Bible
So that I can develop an app to share the Bible with people who speaks Spanish

Api não está funcionando.

Describe the bug
A clear and concise description of what the bug is.
Nenhuma api está funcionando.
To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Add Spanish NTV version

As a Spanish speaker developer
I want to be able to consult the spanish NTV version of the Bible
So that I can develop an app to share the Bible with people who speaks Spanish

VOTD - Verse of the Day

To implement an endpoint that returns a selected verse of the bible regarding to specific day of the year. For example, 1/1 is the Day 1 of the year, 2/1, the second one, so on.

It was also good if the verses were pre-selected by the API developers, based on a list of most known verses of the bible - non a random verses.

Bible audios

To make available audios of some bible versions.

Access Token Request

Hola! Engles para me solamente :( So Sorry. Mi hijo de seis años is learning in school english and spanish immersion program. Estoy aprendiendo un poquito con mi hijo.

I am building a WordPress plugin for a virtual group bible study site. I would like an access token for the site I am building so that group hosts can search and input bible verses into their group pages.

Thank you very much,
Meg

encountering quota exceeded error when accessing api

Hi, thanks for maintaining the api continuously!

I am having the following error when trying to access the api to get books

{
    "msg": "Oops! An unexpected error has occurred, create an [issue](https://github.com/marciovsena/bibleapi/issues/new) with the information of this request.",
    "err": {
        "driver": true,
        "name": "MongoError",
        "index": 0,
        "code": 12501,
        "errmsg": "quota exceeded"
    }
}

[Email] Como faço para usar o metodo de pesquisa de palavras?

Dúvida recebida por email de Manoel Neto

Como faço para usar o metodo de pesquisa de palavras ? pois pela documentação eu não entendi como se monta a URL, voce poderia me dar este apoio ?

Endpoint: POST https://bibleapi.co/api/verses/search
Body:

{
  "version": "nvi",
  "search": "Belém"
}

Response:

{
    "occurrence": 48,
    "version": "nvi",
    "verses": [
        {
            "book": {
                "abbrev": {
                    "pt": "gn"
                }
            },
            "chapter": 35,
            "number": 19,
            "text": "Assim morreu Raquel e foi sepultada junto do caminho de Efrata, que é Belém."
        },
        ...
   ]
}

CURL:

curl --location --request POST 'http://bibleapi.co/api/verses/search' \
--header 'Content-Type: application/json' \
--data-raw '{
  "version": "nvi",
  "search": "belem"
}'

Javascript - Fetch

var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"version":"nvi","search":"belem"});

var requestOptions = {
  method: 'POST',
  headers: myHeaders,
  body: raw,
  redirect: 'follow'
};

fetch("http://bibleapi.co/api/verses/search", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));

Criação de um novo usuário

Olá, estou tentando criar um usuário! mas recebo de retorno a seguinte mensagem.

{"msg":"{name}(String), {email}(String), {notifications}(Boolean) and {password}(String) are required"}

Estou utilizando php para fazer a requisição.
git 1
git 2

Pode verificar?
Abraços!

Is it possible to have it in any Spanish version?

Additional context
I would like to have the possibility of do request for Spanish version.

One question?

In your description said: RESTful Bible API with 7 versions, 4 languages and multiple features to simplify your day to day.

what are the others 3 languages?

Error on Get Random

Hello, in some moments of the requests I have received error when requesting a random text in the nvi version. The error follows:

Client error: GET https://bibleapi.co/api/verses/nvi/random resulted in a 404 Not Found response: {"msg":"Verse not found"}

Thanks for the API :D

How to query "Jó" book ?

how to query the book of "Jó" ?

verses/acf/jo/1 brings "João" book and verses/acf/jó/1 is not found.
thanks

Moodle Plugin

Hi Márcio.

bibleapi is amazing. Thank you so much. I'm considering to develop a Moodle (it is a well-known learning management system) Plugin that uses this API to present daily verses to the users.

I'd like to request your permisson and opinion.

Best regards. Paulo.

Add Stats

Add new statistics for the user to see.

  • by word
  • by author

endpoint

https://bibleapi.co/api/version/:version/stats/word/:falta

response

{
      word: "falta",
      count: 1,
      verses: [
          {
             "book": {
                 "abbrev": "sl",
                 "name": "Salmos",
                 "author": "David, Moisés, Salomão",
                 "group": "Poéticos",
              }
             "chapter": 23,
             "number": 1,
             "text": "O Senhor é o meu pastor; de nada terei falta."
          },
      ]
}

endpoint

https://bibleapi.co/api/version/:version/stats/author/:david

response

{
      author: "david",
      count: 1,
      books: [{
          name: Salmos
      }]
}

Search a range of verses

Often a range of verses is required, the turn of an entire chapter or several requests.

GET /api/verses/nvi/sl/23/1-3

This API yet work?

I woul know if this api work yet, because i'm trying create an users but i cant do this.

ERRO de retorno na resposta de todas as requisições

msg: "Oops! An unexpected error has occurred, create an [issue](https://github.com/marciovsena/bibleapi/issues/new) with the information of this request.",
err: {
driver: true,
name: "MongoError",
index: 0,
code: 12501,
errmsg: "quota exceeded"
}

Essa resposta está retornando no próprio site.
Aguardo daí, abraços.

Plugin WordPress

Olá,
Gostaria de contribuir com o projeto criando um plugin para o WordPress.
Caso seja autorizado podemos discutir nesse issue os parâmetros.

Aguardamos autorização do desenvolvedor...

Feature flag for rate limitig functionality (+redis) => making them optional

Is your feature request related to a problem? Please describe.
I'd like to perform rate limiting outside of the application (on infrastructure level)

Describe the solution you'd like
Make controllers/rateLimit.js respect a feature flag (to be able to disable the functinality) and do no rate-limiting on app level.

Get random verses

Hi, great API!

My use case is to show a random bible passage each times the user loads the app. It would be nice to have an endpoint that, given the version, returns a random chapter or verse (either is fine).

for example:
GET https://bibleapi.co/api/verses/:version/random

Search by word não retorna nome do livro

Olá amigo,
O endpoint "https://bibleapi.co/api/verses/search" está retornando o seguinte json:

{
"book": {
"abbrev": {
"pt": "gn"
}
},
"chapter": 12,
"number": 13,
"text": "Diga que é minha irmã, para que me tratem bem por amor a você e minha vida seja poupada por sua causa"."
},

Na documentação mostra que retorna o livro, mas não está retornando.

Outra coisa, não está retornando todos os versículos que contém a palavra, por exemplo, "ansioso", o texto de Filipenses 4:6 contém a palavra "ansiosos", o qual não está sendo retornada pelo endpoint.

Poderia verificar?

Obrigado e parabéns pela iniciativa.

Responsive menu doesn't close

Hi, Marcos! Congrats about this project!
Well, surfing on the docs link, I noted a problem with the responsive menu. It doesn't close on the mobile phone. I still haven't test it on desktop browser.

Screenshot_20191231-040116

Add AdonisJS logger

Add AdonisJS logger to identify:

  • Most completed requests in the last 30 days
  • Most requested requests in the last 7 days

Use MongoDB?

Assess impact of removing adonijs and using mongo bank to speed up response time.

use token on GET

Quando eu faço alguma operação de GET, onde coloco o token (para não ter limitações)?
Seria no header?
Estou usando c#, mas só me dando uma explicação em outra linguagem já está bom

caso te interesse: usando o discord encontrei alguns bots que mostravam verículos, mas os que aceitavam versões em portugues não aceitavam o nome do livro em portugues, então criei um bot simples para isso
ainda faltam alguns ajustes, mas estou feliz com o resultado
obrigado

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.