Expanded Library

Building a RESTful API with ASP.NET Core

by Kevin Dockx

Building an API is one thing, but building a truly RESTful API is something different. In this course, you'll learn how to build one using ASP.NET Core 1 or 2.

What you'll learn

Hello! My name is Kevin Dockx, and welcome to Building a RESTful API with ASP.NET Core. In this course, you will learn how to build a RESTful API with ASP.NET Core, which is quite different from a regular web API. You will get there by learning about major topics like:

  • How to correctly interact with your API by using the correct HTTP methods & status codes
  • Method safety and idempotency
  • Validation
  • Common features like paging, sorting, filtering and data shaping
  • Supporting HATEOAS, versioning, caching and concurrency
By the end of this course, you will be able to build an API with level 3 maturity, which is the highest possible level for APIs.

Before you begin, make sure you are already familiar with C# and know a thing or two about building APIs with ASP.NET Core.

I hope you’ll join me, and I look forward to helping you on your learning journey here at Pluralsight.

Table of contents

Course Overview
2mins

Course FAQ

What is meant by REST API?

REST stands for "Representational State Transfer". To make an application program interface (API) RESTful means to use the correct HTTP methods and status codes for getting, updating, creating, and deleting resources.

What will I learn in this course?

You will learn:

  • Validation and logging
  • Creating or Updating
  • Paging, sorting, filtering, data shaping
  • To ensure our API is HATEOAS-enabled
  • How to correctly use media types
  • Versioning, caching, and handling concurrency
  • Protecting and documenting the API
  • And more
Why do we need REST API?

The biggest advantage of REST APIs is the amount of flexibility it provides in allowing us to take advantage of existing protocols, and it can be used for almost any protocol, especially HTTP.

How do I create a REST API in net core?

This is precisely what we will be talking about in this course, so you'll just want to jump into the tutorial to start learning how. 

What prerequisites are needed?

You don't need to know anything about REST yet, but you should have a good knowledge of C# and some knowledge of ASP.NET Core. If you're not familiar with ASP.NET Core then you should check out this course on ASP.NET Core fundamentals.

About the author

Kevin Dockx is a freelance solution architect, author & consultant, living in Antwerp (Belgium). He's mainly focused on solution/application architectures & security for web-based (API) applications built with .NET, but he also keeps an eye out for new developments concerning other products from the .NET stack. He's a Microsoft MVP and board member of the RD MS Community. He's also a regular speaker at various (inter)national conferences & user group events, and works on various open source pro... more

Ready to upskill? Get started