Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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