Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rafaelfgx/storageservice
StorageService.
https://github.com/rafaelfgx/storageservice
file file-server file-service file-services files storage storage-service
Last synced: 4 days ago
JSON representation
StorageService.
- Host: GitHub
- URL: https://github.com/rafaelfgx/storageservice
- Owner: rafaelfgx
- License: mit
- Created: 2020-08-22T23:19:31.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-12T21:11:52.000Z (5 days ago)
- Last Synced: 2024-11-12T22:21:13.893Z (5 days ago)
- Topics: file, file-server, file-service, file-services, files, storage, storage-service
- Language: C#
- Homepage:
- Size: 2.93 KB
- Stars: 13
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# StorageService
## Run
Command Line
#### Prerequisites
* [.NET SDK](https://dotnet.microsoft.com/download)
#### Steps
1. Open directory **source\StorageService** in command line and execute **dotnet run**.
3. Open .Visual Studio Code
#### Prerequisites
* [.NET SDK](https://dotnet.microsoft.com/download)
* [Visual Studio Code](https://code.visualstudio.com)
* [C# Extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.csharp)#### Steps
1. Open **source** directory in Visual Studio Code.
2. Press **F5**.Visual Studio
#### Prerequisites
* [Visual Studio](https://visualstudio.microsoft.com)
#### Steps
1. Open **source\StorageService.sln** in Visual Studio.
2. Set **StorageService** as startup project.
3. Press **F5**.## Example
### AppSettings.json
```json
{
"Directory": "C:\\Files (Windows) OR /root/files (Linux)"
}
```### Post
https://localhost:5000/files
```json
{
"Name": "Attachment.txt",
"Bytes": "QXR0YWNobWVudA=="
}
```### Get
https://localhost:5000/files/GUID
### Delete
https://localhost:5000/files/GUID