:::: MENU ::::
Posts tagged with: Asp.net core

Using MongoDB with ASP.NET Core – Part I (Setup)

In this 2 part series, I will show you how to use MongoDB as data storage in your ASP.NET Core application.

As you may know, MongoDB is an open-source document database, and leading NoSQL database. It is a cross-platform, document oriented database that provides, high performance, high availability, and easy scalability. MongoDB works on concept of collection and document.

Continue Reading





External login provider in AspNet Core

Currently i am developing a simple web application (my side project https://test-api.net/) where developers can get mock API for test purpose and i want to set up login feature but i don’t want to put classical username/password so i was searching for suitable login provider where most of developer hang around and came up with GitHub as login provider because this is a place where developer hang around most and it will be easy to use as a login provider.

Continue Reading




Upload file from swagger UI in ASP.NET Core Web API

If you want to learn how to add swagger in ASP.Net Core then check my previous post. In this post I will show you how to customize swagger UI to upload file in ASP.Net Core Web API project. First let’s add an action which will be responsible to upload file in our API. If you want to know more about how to upload file (from Postman) and save it in azure storage then check my previous post.

Continue Reading


File upload in ASP.NET Core web API

In this post I will show how to upload file in ASP.NET Core API and store it in Azure storage as blob.

To accept file you can use IFormFile type object. Based in your requirement you can use IFormFile or ICollection<IFormFile> type as a parameter for API action. IFormFile expose properties like FileName, Name, ContentDisposition, Length and other many more useful properties and methods.

Continue Reading


Pages:12