@@ -62,7 +62,7 @@ public static IEndpointRouteBuilder MapApiEndpoints(this IEndpointRouteBuilder b
62
62
. Produces < TimeResponse , TimeResponseExampleProvider > ( "The current UTC date and time." )
63
63
. RequireCors ( "DefaultCorsPolicy" )
64
64
. WithName ( "Time" )
65
- . WithOperationDescription ( "Gets the current UTC time." ) ;
65
+ . WithSummary ( "Gets the current UTC time." ) ;
66
66
67
67
builder . MapGet ( "/tools/guid" , (
68
68
[ SwaggerParameterExample ( "The format for which to generate a GUID." , "D" ) ] string ? format ,
@@ -89,7 +89,7 @@ public static IEndpointRouteBuilder MapApiEndpoints(this IEndpointRouteBuilder b
89
89
. Produces < GuidResponse , GuidResponseExampleProvider > ( "A GUID was generated successfully." )
90
90
. ProducesProblem ( "The specified format is invalid." )
91
91
. WithName ( "Guid" )
92
- . WithOperationDescription ( "Generates a GUID." )
92
+ . WithSummary ( "Generates a GUID." )
93
93
. WithProblemDetailsResponseExample ( ) ;
94
94
95
95
builder . MapPost ( "/tools/hash" , ( HashRequest ? request ) =>
@@ -163,7 +163,7 @@ public static IEndpointRouteBuilder MapApiEndpoints(this IEndpointRouteBuilder b
163
163
. Produces < HashResponse , HashResponseExampleProvider > ( "The hash was generated successfully." )
164
164
. ProducesProblem ( "The specified hash algorithm or output format is invalid." )
165
165
. WithName ( "Hash" )
166
- . WithOperationDescription ( "Generates a hash of some plaintext for a specified hash algorithm and returns it in the required format." )
166
+ . WithSummary ( "Generates a hash of some plaintext for a specified hash algorithm and returns it in the required format." )
167
167
. WithProblemDetailsResponseExample ( ) ;
168
168
169
169
builder . MapGet ( "/tools/machinekey" , (
@@ -204,7 +204,7 @@ public static IEndpointRouteBuilder MapApiEndpoints(this IEndpointRouteBuilder b
204
204
. Produces < MachineKeyResponse , MachineKeyResponseExampleProvider > ( "The machine key was generated successfully." )
205
205
. ProducesProblem ( "The specified decryption or validation algorithm is invalid." )
206
206
. WithName ( "MachineKey" )
207
- . WithOperationDescription ( "Generates a machine key for a Web.config configuration file for ASP.NET." )
207
+ . WithSummary ( "Generates a machine key for a Web.config configuration file for ASP.NET." )
208
208
. WithProblemDetailsResponseExample ( ) ;
209
209
210
210
return builder ;
0 commit comments