Upload file on server using ASP.NET WEB API

Introduction : This article will help you to understand how to Upload file on server using Asp.Net WEB API. If you are looking for a solution to implement such functionality where user can access this feature from any platform whether it is web, desktop or mobile platform. Examples – DropBox, Google Drive, Facebook etc. We can upload files on their server from any devices either from mobile, web or desktop. You have to create WEB API and expose it to user in order to accomplish this task. Basically ASP.NET developers using HTML file input fields and form submission to upload file Read More …

Share Knowledge

Implementing CRUD Operations using WEB API

code-adda web api crud

This article will help you to learn and understand how to Implementing CRUD Operations using WEB API. If you have not gone through my previous article I would like to suggest you please go through Creating your first WEB API Project ,you will get better understanding of “how to create and setup a web api project“. Just to make it simple and easy to understand we are going to use basic concept of ADO.Net in order to perform CRUD operations. There are various ways you can write your code. No worry! we will learn how to perform CRUD operations by using different Read More …

Share Knowledge

Creating your first WEB API Project

Introduction Whenever we talk about WEB API the very first question come in our mind is what actually is API. API stand for “Application Programming Interface”. From Wikipedia definition – A Web API is an application programming interface for either a web server or a web browser. It is a web development concept, usually limited to a web application’s client-side (including any web frameworks being used), and thus usually does not include web server or browser implementation details such as SAPIs(Server Application Programming Interface) or APIs(Application Programming Interface) unless publicly accessible by a remote web application. In short with the help of WEB API we can create interface which is easily accessible for other software to Read More …

Share Knowledge

How to secure ASP.NET Web API using basic authentication

secure ASP.NET Web API using basic authentication

ASP.NET Web API allows us different ways to implement security while exposing resources. In previous article we have learned about how to secure ASP.NET WEB API using token based authentication. In this article we are going to learn how to secure ASP.NET WEB API using basic authentication. Basic Authentication is easy to implement, expose and consume and is widely supported by any Web client, but it’s not as secure as token based authentication and it requires that SSL(Secure Sockets Layer) is used to keep the encoded credentials in order to safe application from simple attacks. Implementation of ASP.NET Web API Read More …

Share Knowledge

How to secure ASP.NET Web API using Token Based Authentication

secure ASP.NET Web API using token based authentication

Introduction : Whenever we work on enterprise level application either application based on web or windows platform the first biggest concern come in our mind is its security. When requirement is to expose our business services to client then securing those services is on top priority. Just because we’ve built a WEB API that we want to make it public, it doesn’t mean that we allow anybody accessing it and consuming our services without any proper validation. Nowadays adoption of WEB API is increasing at expeditiously pace so it is highly recommended for developer to implement security for all types Read More …

Share Knowledge