98 instantiations of ApiControllerAttribute
ApiExplorerWebSite (3)
Controllers\ApiExplorerApiController.cs (1)
9[ApiController]
Controllers\ApiExplorerResponseTypeWithApiConventionController.cs (1)
8[ApiController]
Controllers\ApiExplorerSystemVoid.cs (1)
10[ApiController]
BasicWebSite (3)
Controllers\ContactApiController.cs (1)
10[ApiController]
Controllers\CustomServiceApiController.cs (1)
8[ApiController]
Controllers\NonNullableApiController.cs (1)
9[ApiController]
CustomAuthorizationFailureResponse (1)
Controllers\SampleController.cs (1)
10[ApiController]
FormatterWebSite (5)
Controllers\AsyncEnumerableController.cs (1)
8[ApiController]
Controllers\JsonInputFormatterController.cs (1)
8[ApiController]
Controllers\JsonOutputFormatterController.cs (1)
8[ApiController]
Controllers\SystemTextJsonOutputFormatterController.cs (1)
9[ApiController]
Controllers\TestApiController.cs (1)
9[ApiController]
HostedBlazorWebassemblyApp.Server (1)
Controllers\WeatherForecastController.cs (1)
12[ApiController]
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (2)
Logging\ApiRoutingController.cs (1)
16[ApiController]
Logging\TestController.cs (1)
12[ApiController]
Microsoft.AspNetCore.Mvc.Core.Test (8)
ApplicationModels\ApiBehaviorApplicationModelProviderTest.cs (3)
22var controllerModel = new ControllerModel(typeof(TestApiController).GetTypeInfo(), new[] { new ApiControllerAttribute() }); 44var controllerModel = new ControllerModel(typeof(TestApiController).GetTypeInfo(), new[] { new ApiControllerAttribute() }) 87var controllerModel = new ControllerModel(typeof(TestApiController).GetTypeInfo(), new[] { new ApiControllerAttribute() })
ApplicationModels\InferParameterBindingInfoConventionTest.cs (4)
942[ApiController] 1065[ApiController] 1079[ApiController] 1102[ApiController]
Infrastructure\DefaultApiProblemDetailsWriterTest.cs (1)
203metadata ??= new EndpointMetadataCollection(new ApiControllerAttribute(), new ControllerAttribute());
Microsoft.AspNetCore.Mvc.FunctionalTests (3)
AntiforgeryMiddlewareTest.cs (3)
203[ApiController] 225[ApiController] 236[ApiController]
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
328[ApiController]
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiSchemaService\OpenApiSchemaService.ResponseSchemas.cs (1)
701[ApiController]
Mvc.Api.Analyzers.Test (65)
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsFullyQualifiedProducesResponseType.Input.cs (1)
7[ApiController]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsFullyQualifiedProducesResponseType.Output.cs (1)
9[ApiController]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsMissingStatusCodes.Input.cs (1)
8[ApiController]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsMissingStatusCodes.Output.cs (1)
8[ApiController]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsMissingStatusCodesAndTypes.Input.cs (1)
8[ApiController]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsMissingStatusCodesAndTypes.Output.cs (1)
8[ApiController]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsNumericLiteralForNonExistingStatusCodeConstants.Input.cs (1)
3[ApiController]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsNumericLiteralForNonExistingStatusCodeConstants.Output.cs (1)
5[ApiController]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsResponseTypeWhenDifferentFromErrorType.Input.cs (1)
4[ApiController]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsResponseTypeWhenDifferentFromErrorType.Output.cs (1)
6[ApiController]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodes.Input.cs (1)
3[ApiController]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodes.Output.cs (1)
5[ApiController]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodesFromConstructorParameters.Input.cs (1)
8[ApiController]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodesFromConstructorParameters.Output.cs (1)
8[ApiController]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodesFromMethodParameters.Input.cs (1)
8[ApiController]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodesFromMethodParameters.Output.cs (1)
8[ApiController]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodesFromObjectInitializer.Input.cs (1)
8[ApiController]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodesFromObjectInitializer.Output.cs (1)
8[ApiController]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsSuccessStatusCode.Input.cs (1)
10[ApiController]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsSuccessStatusCode.Output.cs (1)
11[ApiController]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWithConventionAddsMissingStatusCodes.Input.cs (1)
10[ApiController]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWithConventionAddsMissingStatusCodes.Output.cs (1)
11[ApiController]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWithConventionMethodAddsMissingStatusCodes.Input.cs (1)
3[ApiController]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWithConventionMethodAddsMissingStatusCodes.Output.cs (1)
5[ApiController]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWorksOnExpressionBodiedMethod.Input.cs (1)
3[ApiController]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWorksOnExpressionBodiedMethod.Output.cs (1)
5[ApiController]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWorksWhenMultipleIdenticalStatusCodesAreInError.Input.cs (1)
9[ApiController]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWorksWhenMultipleIdenticalStatusCodesAreInError.Output.cs (1)
10[ApiController]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWorksWithValidationProblem.Input.cs (1)
8[ApiController]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWorksWithValidationProblem.Output.cs (1)
8[ApiController]
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest\DiagnosticsAreReturned_ForApiActionsWithModelStateChecks.cs (1)
6[ApiController]
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest\DiagnosticsAreReturned_ForApiActionsWithModelStateChecksUsingEquality.cs (1)
6[ApiController]
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest\DiagnosticsAreReturned_ForApiActionsWithModelStateChecksWithoutBracing.cs (1)
6[ApiController]
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForApiActionsCheckingAdditionalConditions.cs (1)
6[ApiController]
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForApiActionsReturning400FromNonModelStateIsValidBlocks.cs (1)
6[ApiController]
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForApiActionsReturningNot400FromNonModelStateIsValidBlock.cs (1)
6[ApiController]
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForApiActionsWithoutModelStateChecks.cs (1)
6[ApiController]
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest\CodeFixRemovesIfBlockWithoutBraces.Input.cs (1)
6[ApiController]
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest\CodeFixRemovesIfBlockWithoutBraces.Output.cs (1)
6[ApiController]
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest\CodeFixRemovesModelStateIsInvalidBlockWithEqualityCheck.Input.cs (1)
6[ApiController]
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest\CodeFixRemovesModelStateIsInvalidBlockWithEqualityCheck.Output.cs (1)
6[ApiController]
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest\CodeFixRemovesModelStateIsInvalidBlockWithIfNotCheck.Input.cs (1)
6[ApiController]
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest\CodeFixRemovesModelStateIsInvalidBlockWithIfNotCheck.Output.cs (1)
6[ApiController]
TestFiles\ApiControllerFactsTest\IsApiControllerAction_ReturnsTrue_IfAttributeIsDeclaredOnAssembly.cs (1)
6[assembly: ApiController]
TestFiles\ApiControllerFactsTest\TestFile.cs (1)
24[ApiController]
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_ForActionResultOfTReturningMethodWithoutAnyAttributes.cs (1)
11[ApiController]
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_ForActionResultOfTReturningMethodWithoutSomeAttributes.cs (1)
8[ApiController]
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_ForControllerWithCustomConvention.cs (1)
13[ApiController]
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfAsyncMethodReturningValueTaskWithProducesResponseTypeAttribute_ReturnsUndocumentedStatusCode.cs (1)
9[ApiController]
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfAsyncMethodWithProducesResponseTypeAttribute_ReturnsUndocumentedStatusCode.cs (1)
9[ApiController]
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfMethodWithApiConventionMethod_ReturnsUndocumentedStatusCode.cs (1)
10[ApiController]
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfMethodWithAttribute_ReturnsDerivedType.cs (1)
8[ApiController]
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfMethodWithAttributeAsynchronouslyReturnsValue_WithoutDocumentation.cs (1)
8[ApiController]
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfMethodWithAttributeReturnsValue_WithoutDocumentation.cs (1)
6[ApiController]
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfMethodWithConvention_DoesNotReturnDocumentedStatusCode.cs (1)
10[ApiController]
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfMethodWithConvention_ReturnsUndocumentedStatusCode.cs (1)
11[ApiController]
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfMethodWithProducesResponseTypeAttribute_DoesNotDocumentSuccessStatusCode.cs (1)
8[ApiController]
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfMethodWithProducesResponseTypeAttribute_DoesNotReturnDocumentedStatusCode.cs (1)
8[ApiController]
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfMethodWithProducesResponseTypeAttribute_ReturnsUndocumentedStatusCode.cs (1)
6[ApiController]
TestFiles\ApiConventionAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForApiController_IfStatusCodesCannotBeInferred.cs (1)
6[ApiController]
TestFiles\ApiConventionAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForApiController_WhenMethodNeverReturns.cs (1)
8[ApiController]
TestFiles\ApiConventionAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForApiController_WithAllDocumentedStatusCodes.cs (1)
10[ApiController]
TestFiles\ApiConventionAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForOkResultReturningAction.cs (1)
9[ApiController]
TestFiles\ApiConventionAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForReturnStatementsInLambdas.cs (1)
11[ApiController]
TestFiles\ApiConventionAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForReturnStatementsInLocalFunctions.cs (1)
6[ApiController]
Negotiate.Client (1)
Controllers\AuthTestController.cs (1)
15[ApiController]
Negotiate.Server (1)
Controllers\AuthController.cs (1)
10[ApiController]
Sample (1)
Controllers\TestController.cs (1)
8[ApiController]
Sandbox (1)
Controllers\ValuesController.cs (1)
9[ApiController]
XmlFormattersWebSite (1)
Controllers\XmlApiControllerBase.cs (1)
9[ApiController]
26 references to ApiControllerAttribute
Microsoft.AspNetCore.Mvc.Core (9)
ApiBehaviorOptions.cs (4)
13/// Options used to configure behavior for types annotated with <see cref="ApiControllerAttribute"/>. 21/// Delegate invoked on actions annotated with <see cref="ApiControllerAttribute"/> to convert invalid 38/// with <see cref="ApiControllerAttribute"/> is suppressed. 64/// Gets or sets a value that determines if controllers with <see cref="ApiControllerAttribute"/>
ApplicationModels\ApiBehaviorApplicationModelProvider.cs (1)
99nameof(ApiControllerAttribute));
Infrastructure\IApiBehaviorMetadata.cs (1)
13/// Controllers decorated with this attribute (<see cref="ApiControllerAttribute"/>) are configured with
Infrastructure\IClientErrorFactory.cs (1)
10/// with <see cref="ApiControllerAttribute"/> to transform <see cref="IClientErrorActionResult"/>.
Infrastructure\ModelStateInvalidFilter.cs (1)
14/// added to all types and actions annotated with <see cref="ApiControllerAttribute"/>.
ProducesErrorResponseTypeAttribute.cs (1)
7/// Specifies the type returned by default by controllers annotated with <see cref="ApiControllerAttribute"/>.
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensions.cs (1)
45if (endpointBuilder.Metadata.OfType<ApiControllerAttribute>().Any())
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (16)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (16)
33var apiController = e.Metadata.GetMetadata<ApiControllerAttribute>(); 63var apiController = e.Metadata.GetMetadata<ApiControllerAttribute>(); 94var apiController = e.Metadata.GetMetadata<ApiControllerAttribute>(); 125var apiController = e.Metadata.GetMetadata<ApiControllerAttribute>(); 157var apiController = e.Metadata.GetMetadata<ApiControllerAttribute>(); 189var apiController = e.Metadata.GetMetadata<ApiControllerAttribute>(); 224var apiController = e.Metadata.GetMetadata<ApiControllerAttribute>(); 259var apiController = e.Metadata.GetMetadata<ApiControllerAttribute>();