© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
A. GirettiBeginning gRPC with ASP.NET Core 6 https://doi.org/10.1007/978-1-4842-8008-9_6

6. API Versioning

Anthony Giretti1  
(1)
La Salle, QC, Canada
 
Developing APIs often leads you to have different versions of APIs, especially when delivering to several consumers. For example, some may need a specific version, some use a particular version, and some might want to stay on the bleeding edge. As a result, API developers need to maintain different versions of the same API. In this chapter, I will explain to you how to:
  • Version gRPC services

  • Expose the versions of your Protobuf files with minimal APIs

Version gRPC Services

Recall from Chapter 4 the package directive ...

Get Beginning gRPC with ASP.NET Core 6: Build Applications using ASP.NET Core Razor Pages, Angular, and Best Practices in .NET 6 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.