This repository was archived by the owner on Jun 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.js
More file actions
91 lines (91 loc) · 2.9 KB
/
Copy pathconfig.js
File metadata and controls
91 lines (91 loc) · 2.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
module.exports = {
"cache": true,
"cacheLifeTime": 60 * 1000,
"port": 8080,
"logger": true,
"BASE_URL": "https://animekisa.tv",
"messages": {
"noPageFound": "Page not found, please check the URL.",
"errorPage": "Something went wrong, try again later.",
"defaultPage": null,
},
"endpoints": {
"/": {
"description": "The root.",
"method": "GET",
"responseCodes": [200],
"options": {
"query": []
}
},
"/latest": {
"description": "GET the latest updates.",
"method": "GET",
"responseCodes": [
200, 204
],
"options": {
"query": [
{
"name": "pageNumber",
"type": "number",
"required": false,
"description": "Specific page number to scrape."
}, {
"name": "dub",
"type": "boolean",
"required": false,
"description": "Latest dubbed or subbed, set dub to true for dubbed."
}
]
}
},
"/popular": {
"description": "GET the popular list of animes.",
"method": "GET",
"responseCodes": [
200, 204
],
"options": {
"query": [
{
"name": "all",
"type": "boolean",
"required": false,
"description": "Popular of all-time or popular of weekly, set all to true for all-time."
}, {
"name": "dub",
"type": "boolean",
"required": false,
"description": "Popular dubbed or subbed, set dub to true for dubbed."
}
]
}
},
"/information": {
"description": "GET the information of the anime.",
"method": "GET",
"responseCodes": [
404, 200
],
"options": {
"query": [
{
"name": "base",
"type": "string",
"required": true,
"description": "Base required for scraping the anime information, you will get this property from every scraped object."
}
]
}
},
"/anime": {
"description": "GET all animes list that are available on AnimeKisa.",
"method": "GET",
"responseCodes": [200],
"options": {
"query": []
}
}
}
};