Browse by Tags

Posting multiple pieces of data to Web API
31 December 13 09:12 AM | bipinjoshi
Web API allows you to create RESTful services easily. A typical Web API implements GET, POST, PUT and DELETE verbs by writing methods intended to handle each of these HTTP verbs. Although the actual method implementation can be anything as per your application...
Filed under: , ,
Using Forms Authentication in ASP.NET Web API
06 September 13 11:39 AM | bipinjoshi
A SP.NET developers commonly use forms authentication to secure their web pages. Just like ASP.NET web forms and ASP.NET MVC applications, Web API can take advantage of forms authentication to implement authentication and role based security. I have already...
Using SSL in ASP.NET Web API
16 August 13 03:16 PM | bipinjoshi
While developing websites that need to deal with sensitive data, developers use authentication schemes such as ASP.NET forms authentication. Although these authentication schemes prohibit unauthorized access to web pages, the user credentials as well...
Filed under: , ,
Using Tracing in ASP.NET Web API
19 July 13 08:38 AM | bipinjoshi
While debugging an ASP.NET Web API you may need to figure out how your code is being executed and you may also want to track its execution sequence. That is where tracing comes into the picture. Using tracing you can trace the flow of execution and various...
Filed under: , ,
Using Custom Action Names in ASP.NET Web API
09 July 13 08:22 AM | bipinjoshi
By default Web API action methods use the same HTTP method name that they are serving. For example, to deal with the HTTP GET method the Web API has the Get() action method. However, you may want to customize these action method names for the sake of...
Filed under: , ,
Returning Images from ASP.NET Web API
02 July 13 08:58 AM | bipinjoshi
Sometimes you need to save and retrieve image data in SQL Server as a part of Web API functionality. A common approach is to save images as physical image files on the web server and then store the image URL in a SQL Server database. However, at times...
Filed under: , ,
Using Cross Origin Resource Sharing (CORS) in ASP.NET Web API
11 May 13 09:05 AM | bipinjoshi
For security reasons browsers prohibit AJAX calls to resources residing outside the current origin. This means you under the current settings, you can't provide a service exposed by a Web API to some other origin. However, at times you might want to allow...
Content Negotiation in Web API
23 April 13 11:28 AM | bipinjoshi
Whenever you access ASP.NET Web API from your client side script (JavaScript / jQuery) by default the data is returned in JSON format. However, in certain cases you lay want to retrieve the data in XML format instead of JSON. On the server side, Web API...
More Posts