BLOB HTTP Service

There is possibility to expose the storage via HTTP as is. Be careful, it provide powerful mechanism for quick start but to build clear and understandable RESTful API better create own HTTP services.

1. Install InfinniPlatform.BlobStorage.HttpService package:

dotnet add package InfinniPlatform.BlobStorage.HttpService \
    -s https://www.myget.org/F/infinniplatform/

2. Call AddBlobStorageHttpService() in ConfigureServices():

 using System;

 using InfinniPlatform.AspNetCore;

 using Microsoft.Extensions.DependencyInjection;

 public class Startup
 {
     public IServiceProvider ConfigureServices(IServiceCollection services)
     {
         services.AddBlobStorageHttpService();

         // ...

         return services.BuildProvider();
     }

     // ...
 }

3. Run application and browse to http://localhost:5000/blob/<id> (where id is BLOB’s identifier)