Skip to content

The personal drive storage using REST API that parody of OneDrive

Notifications You must be signed in to change notification settings

KajizukaTaichi/onechan-drive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OneChan Drive

OneChan Drive was born because below story.

  • OneDrive causes auto-launched when started up PC.
  • To hinder it, I renamed OneDrive's binary file name to OneChanDrive.exe with humor.
  • I like that name. So I started this project.

Usage

To run the server, use the following command:

cargo run

The server will start at http://localhost:8000.

API Endpoints

Upload File

  • URL: /upload/<file_name>

  • Method: POST

  • Description: Upload a file with the specified file name.

  • Example:

    curl -X POST --data-binary @hello.txt http://localhost:8000/upload/hello.txt

Download File

  • URL: /download/<file_name>

  • Method: GET

  • Description: Download the file with the specified file name.

  • Example:

    curl -O http://localhost:8000/download/hello.txt

List Files

  • URL: /files

  • Method: GET

  • Description: List all uploaded files.

  • Example:

    curl http://localhost:8000/files

Delete File

  • URL: /delete/<file_name>

  • Method: DELETE

  • Description: Delete the file with the specified file name.

  • Example:

    curl -X DELETE http://localhost:8000/delete/hello.txt

About

The personal drive storage using REST API that parody of OneDrive

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages