Browse by Tags

Tagged Content List
  • Blog Post: Loop Reference handling in Web API

    The Issue It's very common to have circular reference in models. For example, the following models shows a bidirection navigation property: 1: public class Category 2: { 3: public Category() 4: { 5: Products = new Collection<Product>(); 6: } 7: ...
  • Blog Post: Support $format in ASP.NET Web Api

    OData protocal defines $format to support different format: http://www.odata.org/documentation/uri-conventions#FormatSystemQueryOption User can use following URL to change the return format to json instead of setting Accept header: http://localhost/api/Values?$format=json However, QueryableAttribute...
  • Blog Post: Single Page Application with Backbone.js and ASP.NET Web API

    Spa is quite hot right now. There are many client choices. The reason why I chose backbone.js is because it supports connecting to a json web api. I am building an app on top of ASP.NET web api so I want to see how easy to make them work together. I won't talk about too much about how backbone.js...
  • Blog Post: Using Razor Template Engine in Web API Self Host Application

    [Update 8/15/2012] Update sample to Web API RTM packages As Web API is released with ASP.NET MVC 4 beta, it can be used in both web host and self host. You can view a sample code for self host here . When writing self host app, you may probably want to use template engine to show web pages just like...
Page 1 of 1 (4 items)