GET Request - OpenCloud-rs/OpenCloud GitHub Wiki

GET /api/file/{path}

Header: Token: [TokenFrom /api/user/login]

Url Argument:

  • ?download={Zip / tar.gz} Choose by type of compression -> File
  • ?sort={by_date/by_name/by_type(default option when no or bad option)/by_size} -> Json
  • ?preview To view the files before downloading them -> File

GET /api/user/login

Body: Json { name: String password: String }

Response: String -> Token