This is a Django application that provides a REST API for uploading and managing files securely.
- Token-based authentication for API access.
- Secure and private file storage.
- APIs to upload files, list uploaded files and download files.
- File encryption for sensitive documents (remaining).
-
Clone the repository
-
Install the required dependencies
-
Apply the database migrations
-
Run the development server
URL: http://localhost:8000/api/obtain_token/
Method: POST
Parameters:
username
: User's usernamepassword
: User's password
Response: JSON containing the token on success or error message on failure.
URL: http://localhost:8000/api/list/
Method: GET
Authentication: Token-based authentication
Response: JSON array of uploaded files' information.
URL: http://localhost:8000/api/upload/
Method: POST
Authentication: Token-based authentication
Parameters:
file
: The file to be uploaded.
Response: JSON message indicating successful file upload.
URL: http://localhost:8000/api/download/{file_id}/
Method: GET
Authentication: Token-based authentication
Response: The file to download.
Contributions are welcome! Please fork the repository and create a pull request.