Skip to content

LucaZH/mizara

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mizara

  • [Get] [Post] api/users/

    {
        "username": "",
        "email": "",
        "password":"",
    }
  • [Get] [Put] [Delete] api/users/int:pk/

    {
        "username": "",
        "email": ""
    }
  • [Post] api/token/

        {
            "username": "",
            "password": ""
        }
  • [Post] api/upload/

    {
        "name": "file_name",
        "size": "file_size",
        "file_type ": "file_type",
    }
  • [Get] api/directories/

    Parameters :

    • dir
    • filter

    Filter:

    • name

    • ext

    Example: api/directories/?dir=/home/rimuru/&?filter=ext

    Response :

    {
        "directories": [],
        "files": [   
            {
            "file_name": "file_name",
            "file_size": "0.0 MB"
            },
        ]
    }
  • [Get] api/download/

    header : "token": "ed53d1211ee261bbb1209530c69b5f4c19232c33"

    Parameters : file_path

  • [Get] api/streaming/

    header : "token": "ed53d1211ee261bbb1209530c69b5f4c19232c33"

    Parameters : file_path

  • [Get] api/disk

    Response :

    [   
        {
            "Device": "/dev/sda5",
            "Mountpoint": "/",
            "File systeme type": "ext4",
            "Total size": "113.99 GB",
            "Used": "71.17 GB",
            "Free": "36.99 GB",
            "Percentage Used": 65.8
        },
    ]
  • [Get] api/transfer/

    header : "token": "ed53d1211ee261bbb1209530c69b5f4c19232c33"

    Response :

        [
            {
                "id": "id",
                "date": "date_now",
                "file_path": "file_path",
                "downloader": "user_id"
            },
        ]
  • [Get] api/sysinfo/

        {
        "OS": "Linux-5.10.0-21-amd64-x86_64-with-glibc2.31",
        "Processor": "",
        "Pc-name": "dev",
        "machine": "x86_64"
        }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages