Skip to content

StorageService.

License

Notifications You must be signed in to change notification settings

rafaelfgx/StorageService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StorageService

Run

Command Line

Prerequisites

Steps

  1. Open directory source\StorageService in command line and execute dotnet run.
  2. Open https://localhost:5000.
Visual Studio Code

Prerequisites

Steps

  1. Open source directory in Visual Studio Code.
  2. Press F5.
Visual Studio

Prerequisites

Steps

  1. Open source\StorageService.sln in Visual Studio.
  2. Set StorageService as startup project.
  3. Press F5.

Example

AppSettings.json

{
    "Directory": "C:\\Files (Windows) OR /root/files (Linux)"
}

Post

https://localhost:5000/files

{
    "Name": "Attachment.txt",
    "Bytes": "QXR0YWNobWVudA=="
}

Get

https://localhost:5000/files/GUID

Delete

https://localhost:5000/files/GUID