avatarJustin James

☰ MENU
A web developer and speaker from Arizona

ASP.NET Web Api - Setup Generic Response Handler


Posted In: Web Api

Welcome to the continuing series on getting started with ASP.NET Web Api. In this article we will learn how to setup a standard response format for all of the endpoints.

Time to Read: 11 mins

ASP.NET Web Api - Setup JSON Camel Cased Fields


Posted In: Web Api

Welcome to the continuing series on getting started with ASP.NET Web Api. In the last post, we created our ASP.NET Web Api project, created our 1st controller and enabled Windows authentication. In this article we will learn how to set the JSON response to convert the .NET pascal cased properties into camel cased properties.

The naming convention between .NET and JSON is different and we want to present our Api users with the naming convention that they expect. .NET uses pascal case which means that each word starts with a captial letter (e.g. UserName). However, JSON uses camel case which means that the properties start with a lowercase letter and then each word after that starts with a captial letter (e.g. userName). Notice the lower case u in userName for the JSON naming convention.

Creating Class to Return

In order to test the camel case configuration, we are going to update the FirstController that we created in the previous post to return a .NET class called UserModel instead of a string.

Time to Read: 10 mins

ASP.NET Web Api - Getting Started


Posted In: Web Api

Welcome to the series on getting started with .NET Web Api. In this article we will create a basic C# Web Api with Windows Integrated Authentication and create our first Web Api endpoint.
ASP.NET Web API is a framework that makes it easy to build HTTP services that reach a broad range of clients, including browsers and mobile devices. ASP.NET Web API is an ideal platform for building RESTful applications on the .NET Framework.

In this series we will learn how to:

Time to Read: 9 mins

Running Multiple Version of Node On Windows


Posted In: nodejs

I am sure that many of you are in the same situation that I am in with needing a different version of node for different projects and you don’t want to have to create a new virtual machine for each project just because of node. Luckily with nvm you can install multiple versions of Node on the same machine and switch between them with a simple command line call.

The one downside to having multiple versions of Node installed is that you have to install the global packages for each version of node that you want them available to. There is no ability to share packages between versions. This means that it will take a bit more disk space but most node packages are fairly small so this should be a none issue.

Time to Read: 6 mins

Docker - Running Container As a Service


Posted In: docker

In the previous tutorial we learned how to mount additional directories within the Docker containers. In this tutorial we are going to learn how to run a Docker container as a service a.k.a daemon for nginx and mysql.

To run a Docker container as a daemon, we run it with the -d flag. This will tell Docker to start up the container in the background and return back to the command prompt.

Time to Read: 6 mins