add manga

This commit is contained in:
Kiera Affarantia 2024-03-08 19:08:07 +07:00
parent 372e541f9f
commit 189c8f1fd7
9 changed files with 604 additions and 0 deletions

View File

@ -0,0 +1,30 @@
{
"mangadex": {
"title": "Mangadex",
"theme": { "collapsed": true }
},
"mangahere": {
"title": "Mangahere",
"theme": { "collapsed": true }
},
"mangakakalot": {
"title": "Mangakakalot",
"theme": { "collapsed": true }
},
"mangapark-v2": {
"title": "Mangapark (v2)",
"theme": { "collapsed": true }
},
"mangapill": {
"title": "Mangapill",
"theme": { "collapsed": true }
},
"mangareader": {
"title": "Mangareader",
"theme": { "collapsed": true }
},
"mangasee123": {
"title": "Mangasee123",
"theme": { "collapsed": true }
}
}

View File

@ -0,0 +1,5 @@
{
"search": "Search",
"get-manga-info": "Get Manga Info",
"get-manga-chapter-pages": "Get Manga Chapter Pages"
}

View File

@ -0,0 +1,92 @@
---
title: mangadex | Manga Chapter Pages
---
import { Tab, Tabs } from "nextra-theme-docs";
# Get Manga Chapter Pages
Technical details regarding the usage of the get manga chapter pages function for the mangadex provider can be found below. Example code is provided for both JavaScript and Python, along with a response schema.
## Route Schema (URL)
```
https://api.nganime.my.id/manga/mangadex/read/5f7891b4-f048-4516-9c75-7bcd6dbd1451/{chapterId}
```
## Query Parameters
| Parameter | Type | Description | Required? | Default |
| :-------: | :----: | -------------------------------------------------------------------------------------------------------- | :-------: | :-----: |
| chapterId | string | The mangadex ID of the chapter; i.e. provided by searching for said anime and selecting the correct one. | Yes | |
## Request Samples
<Tabs items={["JavaScript", "Python"]}>
<Tab>
<>
```js
import axios from "axios";
// Using the example chapter ID of "5f7891b4-f048-4516-9c75-7bcd6dbd1451"
const url = "https://api.nganime.my.id/manga/mangadex/read/5f7891b4-f048-4516-9c75-7bcd6dbd1451";
const data = async () => {
try {
const { data } = await axios.get(url);
return data;
} catch (err) {
throw new Error(err.message);
}
};
console.log(data);
```
</>
</Tab>
<Tab>
<>
```python
import requests
# Using the example chapter ID of "5f7891b4-f048-4516-9c75-7bcd6dbd1451"
url = "https://api.nganime.my.id/manga/mangadex/read/5f7891b4-f048-4516-9c75-7bcd6dbd1451"
response = requests.get(url)
data = response.json()
print(data)
```
</>
</Tab>
</Tabs>
## Response Schema
<Tabs items={["200 OK", "404 Not Found", "500 Internal Server Error"]}>
<Tab>
**MIME Type:** `application/json`
```json copy=false
[
{
"page": number,
"img": "string",
"headerForImage": "string"
},
...
]
```
</Tab>
<Tab>
**MIME Type:** `application/json`
```json copy=false
"message": {}
```
</Tab>
<Tab>
**MIME Type:** `application/json`
```json copy=false
"message": {}
```
</Tab>
</Tabs>

View File

@ -0,0 +1,105 @@
---
title: mangadex | Manga Info
---
import { Tab, Tabs } from "nextra-theme-docs";
# Get Manga Info
Technical details regarding the usage of the get manga info function for the mangadex provider can be found below. Example code is provided for both JavaScript and Python, along with a response schema.
## Route Schema (URL)
```
https://api.nganime.my.id/manga/mangadex/info?id={id}
```
## Query Parameters
| Parameter | Type | Description | Required? | Default |
| :-------: | :----: | ------------------------------------------------------------------------------------------------------ | :-------: | :-----: |
| id | string | The mangadex ID of the manga; i.e. provided by searching for said manga and selecting the correct one. | Yes | |
## Request Samples
<Tabs items={["JavaScript", "Python"]}>
<Tab>
<>
```js
import axios from "axios";
// Using the example ID of "259dfd8a-f06a-4825-8fa6-a2dcd7274230".
const url = "https://api.nganime.my.id/manga/mangadex/info/259dfd8a-f06a-4825-8fa6-a2dcd7274230";
const data = async () => {
try {
const { data } = await axios.get(url);
return data;
} catch (err) {
throw new Error(err.message);
}
};
console.log(data);
```
</>
</Tab>
<Tab>
<>
```python
import requests
# Using the example ID of "259dfd8a-f06a-4825-8fa6-a2dcd7274230".
url = "https://api.nganime.my.id/manga/mangadex/info/259dfd8a-f06a-4825-8fa6-a2dcd7274230"
response = requests.get(url)
data = response.json()
print(data)
```
</>
</Tab>
</Tabs>
## Response Schema
<Tabs items={["200 OK", "400 Bad Request", "404 Not Found", "500 Internal Server Error"]}>
<Tab>
**MIME Type:** `application/json`
```json copy=false
{
"id": "string",
"title": "string",
"altTitles": ["string"], // or null
"genres": ["string"], // or null
"headerForImage": "string", // or null
"image": "string", // or null
"chapters": [
{
"id": "string",
"title": "string",
"releaseDate": "string" // or null
}
]
}
```
</Tab>
<Tab>
**MIME Type:** `application/json`
```json copy=false
"message": {}
```
</Tab>
<Tab>
**MIME Type:** `application/json`
```json copy=false
"message": {}
```
</Tab>
<Tab>
**MIME Type:** `application/json`
```json copy=false
"message": {}
```
</Tab>
</Tabs>

View File

@ -0,0 +1,85 @@
---
title: mangadex | Search
---
import { Tab, Tabs } from "nextra-theme-docs";
# Search
Technical details regarding the usage of the search function for the mangadex provider can be found below. Example code is provided for both JavaScript and Python, along with a response schema.
## Route Schema (URL)
```
https://api.nganime.my.id/manga/mangadex/{query}
```
## Path Parameters
| Parameter | Type | Description | Required? | Default |
| :-------: | :----: | ----------------------------------------------------------------- | :-------: | :-----: |
| query | string | The search query; i.e. the title of the item you are looking for. | Yes | |
## Request Samples
<Tabs items={["JavaScript", "Python"]}>
<Tab>
<>
```js
import axios from "axios";
// Using the example query "demon".
const url = "https://api.nganime.my.id/manga/mangadex/demon";
const data = async () => {
try {
const { data } = await axios.get(url);
return data;
} catch (err) {
throw new Error(err.message);
}
};
console.log(data);
```
</>
</Tab>
<Tab>
<>
```python
import requests
# Using the example query "demon".
url = "https://api.nganime.my.id/manga/mangadex/demon"
response = requests.get(url)
data = response.json()
print(data)
```
</>
</Tab>
</Tabs>
## Response Schema
<Tabs items={["200 OK"]}>
<Tab>
**MIME Type:** `application/json`
```json copy=false
{
"currentPage": 0,
"hasNextPage": true,
"results": [
{
"id": "string",
"title": "string",
"altTitles": ["string"],
"headerForImage": { "Referer": "string" },
"image": "string"
}
]
}
```
</Tab>
</Tabs>

View File

@ -0,0 +1,5 @@
{
"search": "Search",
"get-manga-info": "Get Manga Info",
"get-manga-chapter-pages": "Get Manga Chapter Pages"
}

View File

@ -0,0 +1,92 @@
---
title: mangahere | Manga Chapter Pages
---
import { Tab, Tabs } from "nextra-theme-docs";
# Get Manga Chapter Pages
Technical details regarding the usage of the get manga chapter pages function for the mangahere provider can be found below. Example code is provided for both JavaScript and Python, along with a response schema.
## Route Schema (URL)
```
https://api.nganime.my.id/manga/mangahere/read?chapterId={chapterId}
```
## Query Parameters
| Parameter | Type | Description | Required? | Default |
| :-------: | :----: | --------------------------------------------------------------------------------------------------------- | :-------: | :-----: |
| chapterId | string | The mangahere ID of the chapter; i.e. provided by searching for said anime and selecting the correct one. | Yes | |
## Request Samples
<Tabs items={["JavaScript", "Python"]}>
<Tab>
<>
```js
import axios from "axios";
// Using the example chapter ID of "yofukashi_no_uta/c154"
const url = "https://api.nganime.my.id/manga/mangahere/read";
const data = async () => {
try {
const { data } = await axios.get(url, { params: { chapterId: "yofukashi_no_uta/c154"} });
return data;
} catch (err) {
throw new Error(err.message);
}
};
console.log(data);
```
</>
</Tab>
<Tab>
<>
```python
import requests
# Using the example chapter ID of "yofukashi_no_uta/c154"
url = "https://api.nganime.my.id/manga/mangahere/read"
response = requests.get(url, params={"chapterId": "yofukashi_no_uta/c154"})
data = response.json()
print(data)
```
</>
</Tab>
</Tabs>
## Response Schema
<Tabs items={["200 OK", "404 Not Found", "500 Internal Server Error"]}>
<Tab>
**MIME Type:** `application/json`
```json copy=false
[
{
"page": number,
"img": "string",
"headerForImage": "string"
},
...
]
```
</Tab>
<Tab>
**MIME Type:** `application/json`
```json copy=false
"message": {}
```
</Tab>
<Tab>
**MIME Type:** `application/json`
```json copy=false
"message": {}
```
</Tab>
</Tabs>

View File

@ -0,0 +1,105 @@
---
title: mangahere | Manga Info
---
import { Tab, Tabs } from "nextra-theme-docs";
# Get Manga Info
Technical details regarding the usage of the get manga info function for the mangahere provider can be found below. Example code is provided for both JavaScript and Python, along with a response schema.
## Route Schema (URL)
```
https://api.nganime.my.id/manga/mangahere/info?id={id}
```
## Query Parameters
| Parameter | Type | Description | Required? | Default |
| :-------: | :----: | ------------------------------------------------------------------------------------------------------- | :-------: | :-----: |
| id | string | The mangahere ID of the manga; i.e. provided by searching for said manga and selecting the correct one. | Yes | |
## Request Samples
<Tabs items={["JavaScript", "Python"]}>
<Tab>
<>
```js
import axios from "axios";
// Using the example ID of "yofukashi_no_uta".
const url = "https://api.nganime.my.id/manga/mangahere/info";
const data = async () => {
try {
const { data } = await axios.get(url, { params: { id: "yofukashi_no_uta"} });
return data;
} catch (err) {
throw new Error(err.message);
}
};
console.log(data);
```
</>
</Tab>
<Tab>
<>
```python
import requests
# Using the example ID of "yofukashi_no_uta".
url = "https://api.nganime.my.id/manga/mangahere/info"
response = requests.get(url, params={"id": "yofukashi_no_uta"})
data = response.json()
print(data)
```
</>
</Tab>
</Tabs>
## Response Schema
<Tabs items={["200 OK", "400 Bad Request", "404 Not Found", "500 Internal Server Error"]}>
<Tab>
**MIME Type:** `application/json`
```json copy=false
{
"id": "string",
"title": "string",
"altTitles": ["string"], // or null
"genres": ["string"], // or null
"headerForImage": "string", // or null
"image": "string", // or null
"chapters": [
{
"id": "string",
"title": "string",
"releaseDate": "string" // or null
}
]
}
```
</Tab>
<Tab>
**MIME Type:** `application/json`
```json copy=false
"message": {}
```
</Tab>
<Tab>
**MIME Type:** `application/json`
```json copy=false
"message": {}
```
</Tab>
<Tab>
**MIME Type:** `application/json`
```json copy=false
"message": {}
```
</Tab>
</Tabs>

View File

@ -0,0 +1,85 @@
---
title: mangahere | Search
---
import { Tab, Tabs } from "nextra-theme-docs";
# Search
Technical details regarding the usage of the search function for the mangahere provider can be found below. Example code is provided for both JavaScript and Python, along with a response schema.
## Route Schema (URL)
```
https://api.nganime.my.id/manga/mangahere/{query}
```
## Path Parameters
| Parameter | Type | Description | Required? | Default |
| :-------: | :----: | ----------------------------------------------------------------- | :-------: | :-----: |
| query | string | The search query; i.e. the title of the item you are looking for. | Yes | |
## Request Samples
<Tabs items={["JavaScript", "Python"]}>
<Tab>
<>
```js
import axios from "axios";
// Using the example query "demon".
const url = "https://api.nganime.my.id/manga/mangahere/demon";
const data = async () => {
try {
const { data } = await axios.get(url);
return data;
} catch (err) {
throw new Error(err.message);
}
};
console.log(data);
```
</>
</Tab>
<Tab>
<>
```python
import requests
# Using the example query "demon".
url = "https://api.nganime.my.id/manga/mangahere/demon"
response = requests.get(url)
data = response.json()
print(data)
```
</>
</Tab>
</Tabs>
## Response Schema
<Tabs items={["200 OK"]}>
<Tab>
**MIME Type:** `application/json`
```json copy=false
{
"currentPage": 0,
"hasNextPage": true,
"results": [
{
"id": "string",
"title": "string",
"altTitles": ["string"],
"headerForImage": { "Referer": "string" },
"image": "string"
}
]
}
```
</Tab>
</Tabs>