Using MongoDB with ASP.NET Web API

MongoDB is a popular NoSQL database that makes it a great backend for Web APIs which lend themselves towards a document store. Here we show how you can use MongoDB with ASP.NET Web API to build an ApiController with support for HTTP GET, PUT, POST, and DELETE.

C# (21.8 MB)
 
 
 
 
 
(4)
3,393 times
Add To Favorites
9/1/2012
E-mail Twitter del.icio.us Digg Facebook
Sign in to Ask a Question


  • Configuring HTTP
    1 Posts | Last Post February 27, 2012
    • Thanks for article Henrik.  If anyone else gets an exception on creating the HTTP server, the following command line will set the permissions correctly:  
      
      netsh http add urlacl url=http://+:8080/ user=domain\user
      
      This must be run from a command window that was "Run as administrator"
      
      Fred Peters
  • Authentication
    1 Posts | Last Post February 20, 2012
    • Hi Henrik,
      
      I'm currently trying out your tutorial, looks great so far. I'm wondering how to go about authenticating calls to the API. I understand how this is done using forms, but here I'm not sure what the best approach is. Would you need to set up a secure connection using https and then pass the username/password on each call?
      
      Thanks