MARMAK Mirror

Home Settings Plain HTML MARMAK HTTP Log in
Reading file /misc/text/api.md
./
Download this file Print this page

MARMAK Mirror API

The API allows a developer (or anyone) to use the MARMAK Mirror w/o a browser (just a http client)

XML

URL Format: http(s)://dl.marmak.cf/?type=xml
Request type: GET
Response:

<files>
    <dir>a directory</dir>
    <file>a file</file>
</files>

URL Format: http(s)://dl.marmak.cf/?type=xml&dir=/test/
Request type: GET
Response:

<files>
    <dir>a directory in test</dir>
    <file>a file in test</file>
</files>

JSON

URL Format: http(s)://dl.marmak.cf/?type=json
Request type: GET
Response:

[
    "a directory\/",
    "a file"
]

URL Format: http(s)://dl.marmak.cf/?type=json&dir=/test/
Request type: GET
Response:

[
    "a directory in test\/",
    "a file in test"
]

Plain text

URL Format: http(s)://dl.marmak.cf/?type=plain
Request type: GET
Response:

a directory/
a file

URL Format: http(s)://dl.marmak.cf/?type=plain&dir=/test/
Request type: GET
Response:

a directory in test/
a file in test