228 references to Route
ApiExplorerWebSite (21)
Controllers\ApiExplorerApiController.cs (1)
8[Route("ApiExplorerApiController/[action]")]
Controllers\ApiExplorerHttpMethodController.cs (2)
8[Route("ApiExplorerHttpMethod")] 11[Route("All")]
Controllers\ApiExplorerNameSetByConventionController.cs (1)
8[Route("ApiExplorerNameSetByConvention")]
Controllers\ApiExplorerNameSetExplicitlyController.cs (1)
9[Route("ApiExplorerNameSetExplicitly")]
Controllers\ApiExplorerParametersController.cs (2)
9[Route("ApiExplorerParameters/[action]")] 24[Route("{id}")]
Controllers\ApiExplorerReloadableController.cs (3)
8[Route("ApiExplorerReload")] 11[Route("Index")] 15[Route("Reload")]
Controllers\ApiExplorerResponseContentTypeController.cs (1)
8[Route("ApiExplorerResponseContentType/[Action]")]
Controllers\ApiExplorerResponseContentTypeOverrideOnActionController.cs (1)
9[Route("ApiExplorerResponseContentTypeOverrideOnAction")]
Controllers\ApiExplorerResponseTypeOverrideOnActionController.cs (1)
10[Route("ApiExplorerResponseTypeOverrideOnAction")]
Controllers\ApiExplorerResponseTypeWithApiConventionController.cs (1)
9[Route("ApiExplorerResponseTypeWithApiConventionController/[Action]")]
Controllers\ApiExplorerResponseTypeWithAttributeController.cs (1)
8[Route("[controller]/[Action]")]
Controllers\ApiExplorerResponseTypeWithoutAttributeController.cs (1)
8[Route("ApiExplorerResponseTypeWithoutAttribute/[Action]")]
Controllers\ApiExplorerRouteAndPathParametersInformationController.cs (1)
8[Route("ApiExplorerRouteAndPathParametersInformation")]
Controllers\ApiExplorerSystemVoid.cs (1)
9[Route("ApiExplorerVoid/[action]")]
Controllers\ApiExplorerVisibilityDisabledByConventionController.cs (1)
8[Route("ApiExplorerVisibilityDisabledByConvention")]
Controllers\ApiExplorerVisibilityEnabledByConventionController.cs (1)
8[Route("ApiExplorerVisibilityEnabledByConvention")]
Controllers\ApiExplorerVisibilitySetExplicitlyController.cs (1)
9[Route("ApiExplorerVisibilitySetExplicitly")]
BasicWebSite (17)
Areas\Area1\Controllers\RemoteAttribute_HomeController.cs (1)
10[Route("[area]/[controller]/[action]")]
Areas\Area1\Controllers\RemoteAttribute_VerifyController.cs (1)
9[Route("[area]/[controller]/[action]")]
Areas\Area2\Controllers\RemoteAttribute_VerifyController.cs (1)
11[Route("[area]/[controller]/[action]")]
Controllers\ActionConstraints\ConsumesAttribute_MediaTypeSuffix.cs (1)
9[Route("ConsumesAttribute_MediaTypeSuffix/[action]")]
Controllers\ActionConstraints\ConsumesAttribute_NoFallBackActionController.cs (1)
9[Route("ConsumesAttribute_AmbiguousActions/[action]")]
Controllers\ActionConstraints\ConsumesAttribute_PassThroughController.cs (1)
9[Route("ConsumesAttribute_PassThrough/[action]")]
Controllers\ActionConstraints\ConsumesAttribute_WithFallbackActionController.cs (1)
8[Route("ConsumesAttribute_WithFallbackActionController/[action]")]
Controllers\ContactApiController.cs (1)
11[Route("/contact")]
Controllers\ContentNegotiation\ProducesWithMediaTypeSuffixesController.cs (1)
9[Route("ProducesWithMediaTypeSuffixesController/[action]")]
Controllers\CustomServiceApiController.cs (1)
9[Route("/services")]
Controllers\DefaultValuesController.cs (1)
32[Route("/[controller]/EchoValue_DefaultParameterValue_ForGlobbedPath/{**path}")]
Controllers\FiltersController.cs (1)
24[Route("{culture}/[controller]/[action]")]
Controllers\LinkGeneration\OrdersController.cs (1)
8[Route("api/orders/{id?}", Name = "OrdersApi")]
Controllers\NonNullableApiController.cs (1)
10[Route("api/NonNullable")]
Controllers\RemoteAttribute_HomeController.cs (1)
9[Route("[controller]/[action]")]
Controllers\RemoteAttribute_VerifyController.cs (1)
13[Route("[controller]/[action]", Name = "VerifyRoute")]
Controllers\RequestScopedServiceController.cs (1)
8[Route("RequestScopedService/[action]")]
ControllersFromServicesClassLibrary (1)
ResourcesController.cs (1)
9[Route("/[controller]")]
ControllersFromServicesWebSite (1)
AnotherController.cs (1)
8[Route("/[controller]")]
CorsWebSite (3)
Controllers\BlogController.cs (1)
9[Route("Cors/[action]")]
Controllers\CustomerController.cs (1)
8[Route("NonCors/[action]")]
Controllers\StoreController.cs (1)
11[Route("api/store/[action]")]
CustomAuthorizationFailureResponse (1)
Controllers\SampleController.cs (1)
11[Route("api/[controller]")]
FormatterWebSite (6)
Controllers\AsyncEnumerableController.cs (1)
9[Route("{controller}/{action}")]
Controllers\JsonInputFormatterController.cs (1)
9[Route("[controller]/[action]")]
Controllers\JsonOutputFormatterController.cs (1)
9[Route("[controller]/[action]")]
Controllers\JsonPatchController.cs (1)
9[Route("jsonpatch/[action]")]
Controllers\SystemTextJsonOutputFormatterController.cs (1)
10[Route("[controller]/[action]")]
Controllers\TestApiController.cs (1)
10[Route("[controller]/[action]")]
HostedBlazorWebassemblyApp.Server (1)
Controllers\WeatherForecastController.cs (1)
13[Route("[controller]")]
Identity.ExternalClaims (1)
Controllers\AccountController.cs (1)
15[Route("[controller]/[action]")]
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (8)
Logging\ApiRoutingController.cs (1)
17[Route("api/users")]
Logging\AttributeRoutingController.cs (1)
12[Route("[controller]")]
Logging\TestController.cs (6)
13[Route("[controller]")] 17[Route("v1/profile/users/{userId}")] 26[Route("v1/profile/users/{userId}/teams/{teamId}")] 35[Route("v1/profile/users/{userId}/teams/{teamId}/chats/{chatId}")] 44[Route("v1/profile/users")] 52[Route("v1/profile/users/{userId}/teams/{teamId}/chats/{chatId}")]
Microsoft.AspNetCore.Mvc.Core.Test (49)
ApplicationModels\ControllerActionDescriptorProviderTests.cs (26)
1447[Route("Items")] 1511[Route("api/Token/[key]/[controller]")] 1561[Route("Products", Name = "Products")] 1595[Route("Products/[action]", Name = "Products_[action]")] 1608[Route("[controller]/[action]", Name = "[area]_[controller]_[action]")] 1620[Route("Products/[action]", Name = "Products_[unknown]")] 1641[Route("v1")] 1642[Route("v2")] 1656[Route("List")] 1661[Route("List")] 1666[Route("Products")] 1669[Route("Index")] 1682[Route("Product")] 1683[Route("/Product")] 1684[Route("/product")] 1698[Route("Products")] 1740[Route("api")] 1801[Route("AttributeRouting/IsRequired/ForApiExplorer")] 1807[Route("AttributeRouting/IsRequired/ForApiExplorer")] 1814[Route("AttributeRouting/IsRequired/ForApiExplorer")] 1821[Route("AttributeRouting/IsRequired/ForApiExplorer")] 1828[Route("AttributeRouting/IsRequired/ForApiExplorer")] 1838[Route("AttributeRouting/IsRequired/ForApiExplorer")] 1845[Route("AttributeRouting/IsRequired/ForApiExplorer")] 1852[Route("AttributeRouting/IsRequired/ForApiExplorer")] 1859[Route("AttributeRouting/IsRequired/ForApiExplorer")]
ApplicationModels\DefaultApplicationModelProviderTest.cs (18)
1418[Route("A")] 1419[Route("B")] 1434[Route("C")] 1435[Route("D")] 1608[Route("Update")] 1615[Route("Products")] 1625[Route("Products")] 1626[Route("Items")] 1640[Route("Products")] 1646[Route("Products")] 1647[Route("v2/Products")] 1656[Route("Products")] 1657[Route("v2/Products")] 1672[Route("api/[controller]")] 1726[Route("A")] 1727[Route("B")] 1736[Route("C")] 1737[Route("D")]
ApplicationModels\InferParameterBindingInfoConventionTest.cs (4)
943[Route("[controller]/[action]")] 1066[Route("[controller]/[action]")] 1080[Route("/route1/[controller]/[action]/{id}")] 1081[Route("/route2/[controller]/[action]/{id?}")]
Routing\RouteTemplateProviderAttributesTest.cs (1)
28data.Add(new RouteAttribute(""));
Microsoft.AspNetCore.Mvc.FunctionalTests (3)
AntiforgeryMiddlewareTest.cs (3)
202[Route("[controller]/[action]")] 224[Route("[controller]/[action]")] 235[Route("[controller]/[action]")]
Microsoft.AspNetCore.Mvc.Razor.Test (1)
ApplicationParts\RazorCompiledItemFeatureProviderTest.cs (1)
179[Route("some-route")]
Microsoft.AspNetCore.OpenApi.Tests (19)
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.Operations.cs (1)
235[Route("/api/todos", Name = "GetTodos")]
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.Parameters.cs (1)
209[Route("/custom-binding")]
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.RequestBody.cs (11)
551[Route("/form-model")] 689[Route("/form-model")] 724[Route("/form-model-single-prop")] 763[Route("/form-model-nullable")] 810[Route("/resume")] 883[Route("/form-int")] 886[Route("/form-guid")] 889[Route("/form-datetime")] 1075[Route("/form-mixed-types")] 1128[Route("/stream")] 1130[Route("/pipereader")]
Services\OpenApiSchemaService\OpenApiSchemaService.ParameterSchemas.cs (5)
510[Route("/api/{id}/{date}")] 513[Route("/api/{id}/{name}")] 646[Route("/api/with-enum")] 664[Route("/api/with-ambient-route-param/{versionId}")] 708[Route("/api/{student}")]
Services\OpenApiSchemaService\OpenApiSchemaService.ResponseSchemas.cs (1)
705[Route("/")]
Mvc.Api.Analyzers.Test (43)
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsFullyQualifiedProducesResponseType.Input.cs (1)
8[Route("[controller]/[action]")]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsFullyQualifiedProducesResponseType.Output.cs (1)
10[Route("[controller]/[action]")]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsMissingStatusCodes.Input.cs (1)
9[Route("[controller]/[action]")]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsMissingStatusCodes.Output.cs (1)
9[Route("[controller]/[action]")]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsMissingStatusCodesAndTypes.Input.cs (1)
9[Route("[controller]/[action]")]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsMissingStatusCodesAndTypes.Output.cs (1)
9[Route("[controller]/[action]")]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsNumericLiteralForNonExistingStatusCodeConstants.Input.cs (1)
4[Route("[controller]/[action]")]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsNumericLiteralForNonExistingStatusCodeConstants.Output.cs (1)
6[Route("[controller]/[action]")]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsResponseTypeWhenDifferentFromErrorType.Input.cs (1)
5[Route("[controller]/[action]")]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsResponseTypeWhenDifferentFromErrorType.Output.cs (1)
7[Route("[controller]/[action]")]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodes.Input.cs (1)
4[Route("[controller]/[action]")]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodes.Output.cs (1)
6[Route("[controller]/[action]")]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodesFromConstructorParameters.Input.cs (1)
9[Route("[controller]/[action]")]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodesFromConstructorParameters.Output.cs (1)
9[Route("[controller]/[action]")]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodesFromMethodParameters.Input.cs (1)
9[Route("[controller]/[action]")]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodesFromMethodParameters.Output.cs (1)
9[Route("[controller]/[action]")]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodesFromObjectInitializer.Input.cs (1)
9[Route("[controller]/[action]")]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodesFromObjectInitializer.Output.cs (1)
9[Route("[controller]/[action]")]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsSuccessStatusCode.Input.cs (1)
11[Route("[controller]/[action]")]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsSuccessStatusCode.Output.cs (1)
12[Route("[controller]/[action]")]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWithConventionAddsMissingStatusCodes.Input.cs (1)
11[Route("[controller]/[action]")]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWithConventionAddsMissingStatusCodes.Output.cs (1)
12[Route("[controller]/[action]")]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWithConventionMethodAddsMissingStatusCodes.Input.cs (1)
4[Route("[controller]/[action]")]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWithConventionMethodAddsMissingStatusCodes.Output.cs (1)
6[Route("[controller]/[action]")]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWorksOnExpressionBodiedMethod.Input.cs (1)
4[Route("[controller]/[action]")]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWorksOnExpressionBodiedMethod.Output.cs (1)
6[Route("[controller]/[action]")]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWorksWhenMultipleIdenticalStatusCodesAreInError.Input.cs (1)
10[Route("[controller]/[action]")]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWorksWhenMultipleIdenticalStatusCodesAreInError.Output.cs (1)
11[Route("[controller]/[action]")]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWorksWithValidationProblem.Input.cs (1)
9[Route("[controller]/[action]")]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWorksWithValidationProblem.Output.cs (1)
9[Route("[controller]/[action]")]
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest\DiagnosticsAreReturned_ForApiActionsWithModelStateChecks.cs (1)
7[Route("/api/[controller]")]
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest\DiagnosticsAreReturned_ForApiActionsWithModelStateChecksUsingEquality.cs (1)
7[Route("/api/[controller]")]
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest\DiagnosticsAreReturned_ForApiActionsWithModelStateChecksWithoutBracing.cs (1)
7[Route("/api/[controller]")]
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForApiActionsCheckingAdditionalConditions.cs (1)
7[Route("/api/[controller]")]
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForApiActionsReturning400FromNonModelStateIsValidBlocks.cs (1)
7[Route("/api/[controller]")]
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForApiActionsReturningNot400FromNonModelStateIsValidBlock.cs (1)
7[Route("/api/[controller]")]
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest\CodeFixRemovesIfBlockWithoutBraces.Input.cs (1)
7[Route("/api/[controller]")]
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest\CodeFixRemovesIfBlockWithoutBraces.Output.cs (1)
7[Route("/api/[controller]")]
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest\CodeFixRemovesModelStateIsInvalidBlockWithEqualityCheck.Input.cs (1)
7[Route("/api/[controller]")]
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest\CodeFixRemovesModelStateIsInvalidBlockWithEqualityCheck.Output.cs (1)
7[Route("/api/[controller]")]
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest\CodeFixRemovesModelStateIsInvalidBlockWithIfNotCheck.Input.cs (1)
7[Route("/api/[controller]")]
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest\CodeFixRemovesModelStateIsInvalidBlockWithIfNotCheck.Output.cs (1)
7[Route("/api/[controller]")]
TestFiles\ApiConventionAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForApiController_WhenMethodNeverReturns.cs (1)
9[Route("[controller]/[action]")]
Mvc.RoutingWebSite (28)
Areas\Admin\LG3Controller.cs (1)
9[Route("[area]/[controller]/[action]/{id?}")]
Areas\Admin\UserManagementController.cs (1)
9[Route("[area]/Users")]
Areas\Order\OrderController.cs (1)
9[Route("Order/[action]", Name = "[area]_[action]")]
Areas\Travel\RailController.cs (1)
9[Route("ContosoCorp/Trains")]
Controllers\BanksController.cs (3)
38[Route("Bank/Deposit")] 39[Route("Bank/Deposit/{amount}")] 46[Route("Bank/Withdraw/{id}")]
Controllers\BlogController.cs (1)
9[Route("Blog/[action]/{postId?}")]
Controllers\CompanyController.cs (1)
10[Route("api/Company/{id}", Name = "Company")]
Controllers\ConsumesAttributeController.cs (1)
8[Route("ConsumesAttribute/[action]")]
Controllers\EmployeeController.cs (2)
10[Route("api/Employee")] 67[Route("{id}/Salary")]
Controllers\EndpointNameController.cs (1)
21[Route("/[controller]/[action]/{path?}", Name = "EndpointNameController_LinkToAttributeRouted")]
Controllers\EndpointRoutingController.cs (4)
8[Route("/{controller:slugify}")] 18[Route("/{controller}/{action=Index}")] 24[Route("/{controller:slugify}/{action}")] 30[Route("{id}")]
Controllers\FriendsController.cs (1)
8[Route("Friends")]
Controllers\ItemsController.cs (2)
8[Route("Items/[action]")] 21[Route("{arg}")]
Controllers\LinkParserController.cs (1)
40[Route("some-path/{x}/{y}/{z?}", Name = "AnotherRoute")]
Controllers\MapsController.cs (2)
8[Route("api/v1/Maps", Name = "v1", Order = 1)] 9[Route("api/v2/Maps")]
Controllers\OrderController.cs (1)
8[Route("Order/[action]/{orderId?}", Name = "Order_[action]")]
Controllers\ParameterTransformerController.cs (1)
8[Route("[controller]/[action]", Name = "[controller]_[action]")]
Controllers\RouteDataController.cs (1)
17[Route("RouteData/Attribute")]
Controllers\StoreController.cs (1)
31[Route("Store/Shop/Orders")]
Controllers\TeamController.cs (1)
8[Route("/Teams", Order = 1)]
MvcSandbox (1)
Controllers\LoginController.cs (1)
8[Route("[controller]/[action]")]
Negotiate.Client (9)
Controllers\AuthTestController.cs (9)
14[Route("authtest")] 28[Route("Anonymous/Unrestricted")] 48[Route("Anonymous/Authorized")] 75[Route("DefaultCredentials/Authorized")] 98[Route("AfterAuth/Unrestricted/Persist")] 131[Route("AfterAuth/Unrestricted/NonPersist")] 164[Route("AfterAuth/Authorized/NonPersist")] 197[Route("Unauthorized")] 223[Route("AfterAuth/Unauthorized")]
Negotiate.Server (4)
Controllers\AuthController.cs (4)
9[Route("auth")] 14[Route("Unrestricted")] 27[Route("Authorized")] 40[Route("Unauthorized")]
RazorPagesWebSite (1)
Controllers\AuthorizedActionController.cs (1)
9[Route("[controller]/[action]")]
Sample (3)
Controllers\TestController.cs (3)
9[Route("[controller]")] 14[Route("/getbyidandname/{id}/{name}")] 21[Route("/forms")]
Sandbox (1)
Controllers\ValuesController.cs (1)
8[Route("api/[controller]")]
VersioningWebSite (5)
Controllers\CustomersController.cs (2)
10[Route("Customers")] 47[Route("{id}")]
Controllers\ItemsController.cs (1)
11[Route("Items/{id}")]
VersionRouteAttribute.cs (2)
32: base(template) 37: base(template)
XmlFormattersWebSite (1)
Controllers\XmlApiControllerBase.cs (1)
10[Route("api/[controller]/[action]")]