Create API with ASP.NET Core (Day 4): Working with Serializer Settings And Content Negotiation In ASP.NET Core API


Introduction

This article of the series “Web API with ASP.NET Core” will focus on topics like serializer strings and content negotiation. We learned how to deal with HTTP Status Codes and return sub resources in ASP.NET Core in last article and paused at Serializer Settings. We’ll continue to explore the importance of status codes and practical examples as well. We’ll also explore resource creation and returning the child resources as well in this article. We can use the same source code as we got at the completion of last article of the series.

Continue reading “Create API with ASP.NET Core (Day 4): Working with Serializer Settings And Content Negotiation In ASP.NET Core API”

Create API with ASP.NET Core (Day 3): Working With HTTP Status Codes In ASP.NET Core API


Introduction

This article of the series “Web API with ASP.NET Core” will focus on topics like returning HTTP Status Codes from API, their importance, and returning sub resources. We learned how to create an API in ASP.NET Core and how to return resources, in last article, and paused at Status Codes. We’ll continue to explore the importance of status codes and practical examples as well. We’ll also explore resource creation and returning the child resources as well in this article. We can use the same source code as we got at the completion of last article of the series.

Continue reading “Create API with ASP.NET Core (Day 3): Working With HTTP Status Codes In ASP.NET Core API”

Create API with ASP.NET Core (Day2): Creating API in ASP.NET Core


Introduction

This article of the series “Web API with ASP.NET Core” will focus on creating Web API with ASP.NET Core. In the last article of the series, we learned about ASP.NET Core basics and how to set up an empty solution and play with request pipeline and middleware. In this article, we’ll discuss less theory and try to create an API. We’ll make use of ASP.NET Core MVC Middleware to build the API. We’ll cover in details on how to return resources, data and how to talk to API via HTTP request in this article. We can use the same source code as we got at the completion of last article of the series.

Continue reading “Create API with ASP.NET Core (Day2): Creating API in ASP.NET Core”