Thank you for posting your question on Microsoft Q&A.
You’re not missing a setting. It is expected behavior based on how Azure Static Web Apps (SWA) routes requests to Data API Builder (DAB).
When using SWA Database Connections, DAB endpoints are always hosted under the /data-api base path. The DAB REST path (default /api) is appended to it, so your requests should look like:
GET /data-api/api/<entity>
- Learn more – DAB troubleshooting guide -
- Learn more – SWA Database Connections overview -
- Quickstart: Use Data API builder with Azure SQL and Azure Container Apps
The /api route (without /data-api) is reserved for Azure Functions APIs in Static Web Apps. If /api/... works in your deployed environment, you are most likely calling a Functions endpoint, not DAB.
In short:
/data-api/api → for DAB (Database Connections)
/api → for Azure Functions or standalone APIs
Hope this clarifies the routing difference.
Feel free to post back if you need further help.