-
Notifications
You must be signed in to change notification settings - Fork 2
Docs
Ryu juheon edited this page Nov 4, 2021
·
5 revisions
The api endpoint is described here.
This endpoint is used to check if the server is running.
GET
{"status": "ok"}
This endpoint checks if the url is valid for Hitomi Downloader and returns the type if it is valid.
POST
{"gal_num": "1"}
{"type": ["hitomi"]}
Returned when invalid.
{"error": "not_valid"}
Request is wrong
{"error": "bad_request"}
This endpoint requests a download into Hitomi Downloader.
POST
{"gal_num": "1"}
{"status": "ok"}
This endpoint loads the received cookie value into Hitomi Downloader.
POST
Other arguments may be entered.
reference: https://2.python-requests.org/en/master/api/#requests.cookies.RequestsCookieJar
{
"cookies": [
{
"name": "value",
"value": "value",
"domain": "value",
"expires": 0
}
]
}
{"status": "ok"}
If there is no one of 'domain', 'name', or 'value'
{"error": "['domain', 'name', 'value'] is required arguments"}
Request is wrong
{"error": "bad_request"}