From 56fb65c56b02a895bb4a987919ace71d2ea3251c Mon Sep 17 00:00:00 2001 From: "khurram.1981@gmail.com" Date: Thu, 24 Oct 2024 13:58:27 +0500 Subject: [PATCH] added db connections --- .../staticwebapp.database.config.json | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 swa-db-connections/staticwebapp.database.config.json diff --git a/swa-db-connections/staticwebapp.database.config.json b/swa-db-connections/staticwebapp.database.config.json new file mode 100644 index 0000000..b7056b5 --- /dev/null +++ b/swa-db-connections/staticwebapp.database.config.json @@ -0,0 +1,40 @@ +{ + "$schema": "https://github.com/Azure/data-api-builder/releases/download/v1.1.7/dab.draft.schema.json", + "data-source": { + "database-type": "mssql", + "connection-string": "", + "options": { + "set-session-context": false + } + }, + "runtime": { + "rest": { + "enabled": true, + "path": "/rest", + "request-body-strict": true + }, + "graphql": { + "enabled": true, + "path": "/graphql", + "allow-introspection": true + }, + "host": { + "cors": { + "origins": [], + "allow-credentials": false + }, + "authentication": { + "provider": "StaticWebApps" + }, + "mode": "production" + } + }, + "entities": { + "SalesOrderDetail": { + "source": "dbo.SalesOrderDetail", + "permissions": { + "anonymous": "*" + } + } + } +} \ No newline at end of file