63 implement a route for deleting transfers on the relay server #83

Merged
PatrykHegenberg merged 1 commit from 63-implement-a-route-for-deleting-transfers-on-the-relay-server into 51-implement-local-data-transfer 2024-04-28 17:36:12 +02:00
PatrykHegenberg commented 2024-04-28 17:34:59 +02:00 (Migrated from github.com)

Description

Added a route to delete successful transfers from the relay server

Motivation and Context

To keep the system clean it is necessary to remove old transfers.

Closes #63

How Has This Been Tested?

This was manually tested against a local test setup and the shuttle setup.
The used commands were:

curl -X POST -H "Content-Type: application/json" -d '{"name": "my_file.txt","ip":"192.168.1.100","room_id":"my_room"}' http://localhost:8000/upload
curl http://localhost:8000/download/my_file.txt
curl -X POST http://localhost:8000/download_success/my_file.txt

Screenshots / Logs (if applicable)

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (no code change)
  • Refactor (refactoring production code)
  • Other

Checklist:

  • My code follows the code style of this project.
  • I have updated the documentation accordingly.
  • I have formatted the code with rustfmt.
  • I checked the lints with clippy.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
## Description Added a route to delete successful transfers from the relay server ## Motivation and Context To keep the system clean it is necessary to remove old transfers. Closes #63 ## How Has This Been Tested? This was manually tested against a local test setup and the shuttle setup. The used commands were: ```bash curl -X POST -H "Content-Type: application/json" -d '{"name": "my_file.txt","ip":"192.168.1.100","room_id":"my_room"}' http://localhost:8000/upload ``` ```bash curl http://localhost:8000/download/my_file.txt ``` ```bash curl -X POST http://localhost:8000/download_success/my_file.txt ``` ## Screenshots / Logs (if applicable) ## Types of Changes <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [x] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation (no code change) - [ ] Refactor (refactoring production code) - [ ] Other <!--- (provide information) --> ## Checklist: <!--- Go over all the following points, and put an `x` in all the boxes that apply. --> <!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> - [x] My code follows the code style of this project. - [x] I have updated the documentation accordingly. - [x] I have formatted the code with [rustfmt](https://github.com/rust-lang/rustfmt). - [x] I checked the lints with [clippy](https://github.com/rust-lang/rust-clippy). - [x] I have added tests to cover my changes. - [x] All new and existing tests passed. <!--- Thank you for contributing! -->
Sign in to join this conversation.
No description provided.