We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60ea5de commit 3d79725Copy full SHA for 3d79725
1 file changed
examples/AspNetCore/OData/ODataBasicExample/Program.cs
@@ -4,8 +4,10 @@
4
5
// Add services to the container.
6
7
-builder.Services.AddControllers()
+builder.Services
8
+ .AddControllers()
9
.AddOData( options => options.Select().Filter().OrderBy().SetMaxTop( null ).Count() );
10
+
11
builder.Services.AddProblemDetails();
12
builder.Services.AddApiVersioning()
13
.AddOData(
@@ -16,10 +18,10 @@
16
18
// is merely illustrating that they can coexist and allows you
17
19
// to easily experiment with either configuration. one of these
20
// would be removed in a real application.
-
21
22
// WHEN VERSIONING BY: query string, header, or media type
23
options.AddRouteComponents( "api" );
24
25
// WHEN VERSIONING BY: url segment
26
options.AddRouteComponents( "api/v{version:apiVersion}" );
27
} );
0 commit comments