Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
EquiAvia opened this issue Aug 13, 2024 · 1 comment

Comments

@EquiAvia
Copy link

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?

@keerthanaRajendran
Copy link

Hi @EquiAvia ,

To resolve the Swagger error, we have moved the ToCamelCase method to the model file. Please refer to the changes below.

SyncfusionExamples/azure-aspcore-file-provider#48

Regards,
Keerthana R.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants