Giter VIP home page Giter VIP logo

netdisk's Introduction

NetDisk API Version 0.1

简介

此项目为毕设的个人网盘的API设计与实现部分,用于与客户端交互使用

Models

USER

# column type
1 name string
2 email string
3 password string
4 is_admin boolean
5 last_login_ip string
6 last_login_time string
7 last_login_device string
8 total_storage integer
9 used_storage integer
10 password_digest string
11 token string

USER_FILES

# column type
1 user_id integer
2 file_name string
3 file_size integer
4 file_path string
5 from_folder integer
6 is_folder boolean
7 is_shared boolean
8 is_encrypted boolean
9 download_link string
10 download_times integer
11 iv string
12 sha256 string

进度

  • Login API

  • UploadFile API

  • UploadBigFile API [HAVE NOT TESTED]

  • CreateFolder API

  • DeleteFolder API

  • UpdateFolder API

  • GetFilesByFolder API

  • ShareFile API

  • CancelSharing API

  • CopyFile API

  • MoveFile API

  • DeleteFile API

  • UpdateFile API

  • EncryptFile API [Algorithm: AES-256-CBC]

  • EncryptFolder API [Algorithm: AES-256-CBC]

  • DecryptFile API

  • DecryptFolder API

  • Personal Download API

Usage

  • Login API
param return
name token
password

EXAMPLE Method POST

http://base-url/v1/login/

{"user": {"name":"test","password": "123"}}

  • UploadFile API
param return
file_size STATUS
from_folder file_id
token
file

EXAMPLE Method POST

http://base-url/v1/file/upload/1

header: Authorization Token token=token-you-got-when-logging-in
file: binary-file
filesize: file-size

netdisk's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.