ej2-javascript-ui-controls icon indicating copy to clipboard operation
ej2-javascript-ui-controls copied to clipboard

The EJ2AzureASPCoreFileProvider.Controllers.AzureProviderController.ToCamelCase should be protected instead of public

Open EquiAvia opened this issue 1 year ago • 1 comments

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?

EquiAvia avatar Aug 13 '24 03:08 EquiAvia

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.

keerthanaRajendran avatar Oct 10 '24 11:10 keerthanaRajendran

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

gsumankumar avatar Feb 11 '25 09:02 gsumankumar