Skip to content

Commit ad28d89

Browse files
authored
v.0.2.4 (#18)
* chore: Add credits and thanks * fix(docs): update version * fix: change the sample user * chore: add sample test env * fix: set props on package.json * fix: move dependencies * fix: circle ci (#1) * fix: remove filter on config * fix: back filters * fix: add .env.testing - circleci * chore: remove plans (#2) Remove plans * feature: add seeds on migrations (#3) * chore: remove plans * feature: add seeds on migrations * fix: change precommit script * fix: update script * fix: add adonijs on circleci * fix: add adonisjs on circleci * fix: add .env.testing * chore: add seed instructions * feat: add patreon button (#7) feat: add patreon button * v.0.2.1 * fix: set node version * fix: remove unused nodemon * feat: posting new homepage * chore: ignore file * v0.2.2 * v0.2.2 * chore: remove unused dependencie * fix: copy and menu links on homepage (#11) * fix: copy and menu links on homepage * fix: link on readme * feat: add requests stats (#12) * feat: add requests stats * fix: requests test * v0.2.3 * chore: update version * fix: logger tests (#13) v.0.2.3 * feat: add requests stats * fix: requests test * chore: update version * fix: request tests * v0.2.3 * fix: requests logger (#14) * feat: add requests stats * fix: requests test * v0.2.3 * chore: update version * fix: request tests * fix: request tests * fix: remove requests tests (#15) * feat: add requests stats * fix: requests test * v0.2.3 * chore: update version * fix: migrations on production (#17) * chore: update description * fix: remove unused page * fix: comment column * chore: Increase the limit on allowed requests within 3 minutes * feat: add comment on getBook
1 parent 000f9fe commit ad28d89

12 files changed

Lines changed: 1674 additions & 141 deletions

File tree

apidoc/api_data.js

Lines changed: 802 additions & 1 deletion
Large diffs are not rendered by default.

apidoc/api_data.json

Lines changed: 802 additions & 1 deletion
Large diffs are not rendered by default.

apidoc/api_project.js

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,24 @@
1-
define({ "name": "bibleAPI", "version": "0.2.0", "description": "A RESTful API for Bible", "title": "bibleAPI", "url": "https://bibleapi.co/", "header": { "title": "bibleAPI", "index": "Home", "indexHref": "https://bibleapi.co" }, "template": { "forceLanguage": "en" }, "sampleUrl": false, "defaultVersion": "0.0.0", "apidoc": "0.3.0", "generator": { "name": "apidoc", "time": "2018-12-08T23:25:23.298Z", "url": "http://apidocjs.com", "version": "0.17.6" }});
1+
define({
2+
"name": "bibleAPI",
3+
"version": "0.2.0",
4+
"description": "A RESTful API for Bible",
5+
"title": "bibleAPI",
6+
"url": "https://bibleapi.co/",
7+
"header": {
8+
"title": "bibleAPI",
9+
"index": "Home",
10+
"indexHref": "https://bibleapi.co"
11+
},
12+
"template": {
13+
"forceLanguage": "en"
14+
},
15+
"sampleUrl": false,
16+
"defaultVersion": "0.0.0",
17+
"apidoc": "0.3.0",
18+
"generator": {
19+
"name": "apidoc",
20+
"time": "2019-01-15T11:06:53.593Z",
21+
"url": "http://apidocjs.com",
22+
"version": "0.17.6"
23+
}
24+
});

apidoc/api_project.json

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,24 @@
1-
{ "name": "bibleAPI", "version": "0.2.0", "description": "A RESTful API for Bible", "title": "bibleAPI", "url": "https://bibleapi.co/", "header": { "title": "bibleAPI", "index": "Home", "indexHref": "https://bibleapi.co" }, "template": { "forceLanguage": "en" }, "sampleUrl": false, "defaultVersion": "0.0.0", "apidoc": "0.3.0", "generator": { "name": "apidoc", "time": "2018-12-08T23:25:23.298Z", "url": "http://apidocjs.com", "version": "0.17.6" }}
1+
{
2+
"name": "bibleAPI",
3+
"version": "0.2.0",
4+
"description": "A RESTful API for Bible",
5+
"title": "bibleAPI",
6+
"url": "https://bibleapi.co/",
7+
"header": {
8+
"title": "bibleAPI",
9+
"index": "Home",
10+
"indexHref": "https://bibleapi.co"
11+
},
12+
"template": {
13+
"forceLanguage": "en"
14+
},
15+
"sampleUrl": false,
16+
"defaultVersion": "0.0.0",
17+
"apidoc": "0.3.0",
18+
"generator": {
19+
"name": "apidoc",
20+
"time": "2019-01-15T11:06:53.593Z",
21+
"url": "http://apidocjs.com",
22+
"version": "0.17.6"
23+
}
24+
}

app/Controllers/Http/RequestController.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class RequestController {
3939
* "date": "2018-12-08T22:16:52.000Z"
4040
* }]
4141
*
42-
* @apiError TooManyRequests When performing more than 3 requests at the same endpoint in an interval less than 5 minutes
42+
* @apiError TooManyRequests When performing more than 50 requests at the same endpoint in an interval less than 5 minutes
4343
*
4444
* @apiErrorExample {text} Error-Response:
4545
* HTTP/1.1 429 Too Many Requests
@@ -82,7 +82,7 @@ class RequestController {
8282
* "count": "3",
8383
* }]
8484
*
85-
* @apiError TooManyRequests When performing more than 3 requests at the same endpoint in an interval less than 5 minutes
85+
* @apiError TooManyRequests When performing more than 50 requests at the same endpoint in an interval less than 5 minutes
8686
*
8787
* @apiErrorExample {text} Error-Response:
8888
* HTTP/1.1 429 Too Many Requests

app/Controllers/Http/SearchController.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class SearchController {
4545
* "text": "No princípio Deus criou os céus e a terra."
4646
* }
4747
*
48-
* @apiError TooManyRequests When performing more than 3 requests at the same endpoint in an interval less than 5 minutes
48+
* @apiError TooManyRequests When performing more than 50 requests at the same endpoint in an interval less than 5 minutes
4949
* @apiError VerseNotFound When the verse was not found
5050
*
5151
* @apiErrorExample {text} Error-Response:
@@ -162,7 +162,7 @@ class SearchController {
162162
]
163163
}
164164
*
165-
* @apiError TooManyRequests When performing more than 3 requests at the same endpoint in an interval less than 5 minutes
165+
* @apiError TooManyRequests When performing more than 50 requests at the same endpoint in an interval less than 5 minutes
166166
* @apiError VerseNotFound When the verse was not found
167167
*
168168
* @apiErrorExample {text} Error-Response:
@@ -273,7 +273,7 @@ class SearchController {
273273
...
274274
]
275275
*
276-
* @apiError TooManyRequests When performing more than 3 requests at the same endpoint in an interval less than 5 minutes
276+
* @apiError TooManyRequests When performing more than 50 requests at the same endpoint in an interval less than 5 minutes
277277
*
278278
* @apiErrorExample {text} Error-Response:
279279
* HTTP/1.1 429 Too Many Requests
@@ -315,13 +315,14 @@ class SearchController {
315315
{
316316
"abbrev": "gn",
317317
"author": "Moisés",
318+
"comment": "Uma vez que este livro anônimo integra o Pentateuco unificado",
318319
"chapters": 50,
319320
"group": "Pentateuco",
320321
"name": "Gênesis",
321322
"testament": "VT"
322323
}
323324
*
324-
* @apiError TooManyRequests When performing more than 3 requests at the same endpoint in an interval less than 5 minutes
325+
* @apiError TooManyRequests When performing more than 50 requests at the same endpoint in an interval less than 5 minutes
325326
* @apiError VerseNotFound When the verse was not found
326327
*
327328
* @apiErrorExample {text} Error-Response:
@@ -346,6 +347,7 @@ class SearchController {
346347
abbrev: book.abbrev,
347348
author: book.author,
348349
chapters: book.chapters,
350+
comment: book.comment,
349351
group: book.group,
350352
name: book.name,
351353
testament: book.testament
@@ -395,7 +397,7 @@ class SearchController {
395397
]
396398
}
397399
*
398-
* @apiError TooManyRequests When performing more than 3 requests at the same endpoint in an interval less than 5 minutes
400+
* @apiError TooManyRequests When performing more than 50 requests at the same endpoint in an interval less than 5 minutes
399401
* @apiError VerseNotFound When the verse was not found
400402
* @apiError BadRequest When the required parameters are not sent
401403
*

database/migrations/1532136697805_book_schema.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class BookSchema extends Schema {
88
table.increments()
99
table.integer('chapters').notNullable()
1010
table.string('abbrev').notNullable()
11-
table.string('comment').notNullable()
11+
table.text('comment').notNullable()
1212
table.string('group').notNullable()
1313
table.string('testament').notNullable()
1414
table.string('name').notNullable()

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"node": "10.7.0"
99
},
1010
"scripts": {
11-
"build": "webpack --mode production",
11+
"build": "webpack --mode production && ENV_SILENT=true node ace migration:run --force",
1212
"doc": "apidoc -i app/ -o apidoc/ -t ../apidoc-bs3-template/template",
1313
"migrations": "adonis migration:reset && adonis migration:run && adonis seed --files='Seeder.js'",
1414
"prestart": "yarn build",

resources/locales/en/general.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"description": "RESTful API with multiple versions of the Holy Bible in more than 10 languages",
2+
"description": "Bible API - RESTful API with multiple versions of the Holy Bible in more than 10 languages",
33
"english": "English",
44
"portuguese": "Portuguese",
55
"statusPage": "Status page",

resources/locales/pt/general.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"description": "API REST com múltiplas versões da Bíblia Sagrada em mais de 10 idiomas",
2+
"description": "Bíblia API - API REST com múltiplas versões da Bíblia Sagrada em mais de 10 idiomas",
33
"english": "Inglês",
44
"portuguese": "Português",
55
"statusPage": "Página de status",

0 commit comments

Comments
 (0)