File tree 11 files changed +12
-0
lines changed
11 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 6
6
// Add services to the container.
7
7
8
8
builder . Services . AddControllers ( ) . AddOData ( ) ;
9
+ builder . Services . AddProblemDetails ( ) ;
9
10
builder . Services . AddApiVersioning (
10
11
options =>
11
12
{
Original file line number Diff line number Diff line change 5
5
// Add services to the container.
6
6
7
7
builder . Services . AddControllers ( ) . AddOData ( ) ;
8
+ builder . Services . AddProblemDetails ( ) ;
8
9
builder . Services . AddApiVersioning ( )
9
10
. AddOData (
10
11
options =>
Original file line number Diff line number Diff line change 7
7
// Add services to the container.
8
8
9
9
builder . Services . AddControllers ( ) . AddOData ( ) ;
10
+ builder . Services . AddProblemDetails ( ) ;
10
11
builder . Services . AddApiVersioning (
11
12
options =>
12
13
{
Original file line number Diff line number Diff line change 23
23
options . RouteOptions . EnableQualifiedOperationCall = false ;
24
24
options . RouteOptions . EnableUnqualifiedOperationCall = true ;
25
25
} ) ;
26
+ builder . Services . AddProblemDetails ( ) ;
26
27
builder . Services . AddApiVersioning (
27
28
options =>
28
29
{
Original file line number Diff line number Diff line change 27
27
28
28
builder . Services . AddControllers ( )
29
29
. AddOData ( options => options . Select ( ) ) ;
30
+ builder . Services . AddProblemDetails ( ) ;
30
31
builder . Services . AddApiVersioning ( )
31
32
. AddODataApiExplorer (
32
33
options =>
Original file line number Diff line number Diff line change 5
5
// Add services to the container.
6
6
7
7
builder . Services . AddControllers ( ) ;
8
+ builder . Services . AddProblemDetails ( ) ;
8
9
builder . Services . AddApiVersioning (
9
10
options =>
10
11
{
Original file line number Diff line number Diff line change 7
7
// Add services to the container.
8
8
9
9
builder . Services . AddControllers ( ) ;
10
+ builder . Services . AddProblemDetails ( ) ;
10
11
builder . Services . AddApiVersioning (
11
12
options =>
12
13
{
Original file line number Diff line number Diff line change 8
8
// Add services to the container.
9
9
10
10
builder . Services . AddControllers ( ) ;
11
+ builder . Services . AddProblemDetails ( ) ;
11
12
builder . Services . AddApiVersioning (
12
13
options =>
13
14
{
Original file line number Diff line number Diff line change 2
2
3
3
// Add services to the container.
4
4
5
+ builder . Services . AddProblemDetails ( ) ;
6
+
5
7
// enable api versioning and return the headers
6
8
// "api-supported-versions" and "api-deprecated-versions"
7
9
builder . Services . AddApiVersioning ( options => options . ReportApiVersions = true ) ;
Original file line number Diff line number Diff line change 13
13
var services = builder . Services ;
14
14
15
15
// Add services to the container.
16
+ services . AddProblemDetails ( ) ;
16
17
services . AddEndpointsApiExplorer ( ) ;
17
18
services . AddApiVersioning (
18
19
options =>
Original file line number Diff line number Diff line change 10
10
// Add services to the container.
11
11
12
12
builder . Services . AddControllers ( ) ;
13
+ builder . Services . AddProblemDetails ( ) ;
13
14
builder . Services . AddApiVersioning (
14
15
options =>
15
16
{
You can’t perform that action at this time.
0 commit comments