Skip to content

Commit

Permalink
Update ApiVersion of WebAppCatalogService (client) to 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekistler committed Jan 8, 2025
1 parent 402393d commit 319011e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/Catalog.API/Apis/CatalogApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ public static async Task<Ok<PaginatedItems<CatalogItem>>> GetAllItemsV1(
[AsParameters] PaginationRequest paginationRequest,
[AsParameters] CatalogServices services)
{

return await GetAllItems(paginationRequest, services, null, null, null);
}

Expand Down
2 changes: 1 addition & 1 deletion src/WebApp/Extensions/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static void AddApplicationServices(this IHostApplicationBuilder builder)
.AddAuthToken();

builder.Services.AddHttpClient<CatalogService>(o => o.BaseAddress = new("http://catalog-api"))
.AddApiVersion(1.0)
.AddApiVersion(2.0)
.AddAuthToken();

builder.Services.AddHttpClient<OrderingService>(o => o.BaseAddress = new("http://ordering-api"))
Expand Down

0 comments on commit 319011e

Please sign in to comment.