ej2-javascript-ui-controls
ej2-javascript-ui-controls copied to clipboard
The EJ2AzureASPCoreFileProvider.Controllers.AzureProviderController.ToCamelCase should be protected instead of public
The ToCamelCase method is currently public which means that it is detected by API documentation tools such as Swashbuckle\Swagger.
It causes the following error:
Swashbuckle.AspNetCore.SwaggerGen.SwaggerGeneratorException: Ambiguous HTTP method for action - EJ2AzureASPCoreFileProvider.Controllers.AzureProviderController.ToCamelCase (Syncfusion.EJ2.FileManager.AzureFileProvider.AspNet.Core). Actions require an explicit HttpMethod binding for Swagger/OpenAPI 3.0
Can we please change it to protected or private please?
Hi @EquiAvia ,
To resolve the Swagger error, we have moved the ToCamelCase method to the model file. Please refer to the changes below.
https://github.com/SyncfusionExamples/azure-aspcore-file-provider/pull/48
Regards, Keerthana R.
We are closing this issue as part of our routine maintenance due to no activity on it for over a week. If the previously shared solution doesn't resolve the problem or if you have additional information to assist us, please feel free to reopen the issue. Thank you for your understanding