this is really a question about the Data API Builder application. You appear to be using the REST API. did you enable posts? we would need to see the "rest" section of the entity definition from the config file to help.
POST API Call Failing with 405 Error in Azure Static Web Apps
Shreyas Rastogi
225
Reputation points
A Blazor WebAssembly app is configured to connect to a SQL database following the guidance in this article: How to host static web apps.
The API status is healthy, and GET calls work as expected. However, POST calls to add records to the database return a 405 error, indicating that only GET, HEAD, and OPTIONS methods are allowed.
Is there a configuration or change required to enable the POST API call to work?
Developer technologies | .NET | Blazor
Developer technologies | .NET | Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML, developed by Microsoft.
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1 answer
Sort by: Most helpful
-
Bruce (SqlWork.com) 82,146 Reputation points Volunteer Moderator
2024-12-02T17:07:30.19+00:00