File tree Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 33using Microsoft . AspNetCore . Http . HttpResults ;
44using Services ;
55
6- namespace Api . Setup ;
6+ namespace Api . Endpoints ;
77
8- internal static class ApiEndpoints
8+ internal static class Endpoints
99{
10- public static void ConfigureEndpoints ( this WebApplication app )
10+ public static void MapEndpoints ( this WebApplication app )
1111 {
1212 var apiVersionSet = app . NewApiVersionSet ( )
1313 . HasApiVersion ( new ApiVersion ( 1 ) )
@@ -125,7 +125,3 @@ public static void ConfigureEndpoints(this WebApplication app)
125125 . ProducesProblem ( ( int ) HttpStatusCode . InternalServerError ) ;
126126 }
127127}
128-
129- public record LongestDownwardTrendResponse ( int Days ) ;
130- public record HighestTradingVolumeResponse ( DateOnly Date , decimal Volume ) ;
131- public record BuyAndSellResponse ( DateOnly BuyDate , DateOnly SellDate ) ;
Original file line number Diff line number Diff line change 1+ namespace Api . Endpoints ;
2+
3+ public record LongestDownwardTrendResponse ( int Days ) ;
4+ public record HighestTradingVolumeResponse ( DateOnly Date , decimal Volume ) ;
5+ public record BuyAndSellResponse ( DateOnly BuyDate , DateOnly SellDate ) ;
Original file line number Diff line number Diff line change 11using System . Globalization ;
2+ using Api . Endpoints ;
23using Api . Setup ;
34using Azure . Identity ;
45using Common ;
4243
4344 var app = builder . Build ( ) ;
4445
45- app . ConfigureEndpoints ( ) ;
46+ app . MapEndpoints ( ) ;
4647
4748 app . ConfigureMiddleware ( app . Environment , app . Configuration ) ;
4849
Original file line number Diff line number Diff line change 22using System . Net ;
33using System . Net . Http . Json ;
44using System . Text . Json ;
5- using Api . Setup ;
5+ using Api . Endpoints ;
66using IntegrationTests . Setup ;
77using Shouldly ;
88using Xunit ;
You can’t perform that action at this time.
0 commit comments