Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kajizukataichi/onechan-drive
The personal drive storage using REST API that parody of OneDrive
https://github.com/kajizukataichi/onechan-drive
cloudstorage drive humor joke onedrive oneechan rocket rust sister
Last synced: 13 days ago
JSON representation
The personal drive storage using REST API that parody of OneDrive
- Host: GitHub
- URL: https://github.com/kajizukataichi/onechan-drive
- Owner: KajizukaTaichi
- Created: 2024-06-26T07:00:09.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-26T07:15:34.000Z (7 months ago)
- Last Synced: 2024-11-06T15:21:13.898Z (2 months ago)
- Topics: cloudstorage, drive, humor, joke, onedrive, oneechan, rocket, rust, sister
- Language: Rust
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:```sh
cargo run
```The server will start at `http://localhost:8000`.
## API Endpoints
### Upload File
- **URL:** `/upload/`
- **Method:** `POST`
- **Description:** Upload a file with the specified file name.
- **Example:**```sh
curl -X POST --data-binary @hello.txt http://localhost:8000/upload/hello.txt
```### Download File
- **URL:** `/download/`
- **Method:** `GET`
- **Description:** Download the file with the specified file name.
- **Example:**```sh
curl -O http://localhost:8000/download/hello.txt
```### List Files
- **URL:** `/files`
- **Method:** `GET`
- **Description:** List all uploaded files.
- **Example:**```sh
curl http://localhost:8000/files
```### Delete File
- **URL:** `/delete/`
- **Method:** `DELETE`
- **Description:** Delete the file with the specified file name.
- **Example:**```sh
curl -X DELETE http://localhost:8000/delete/hello.txt
```