data-api-builder
data-api-builder copied to clipboard
[Enhancement] `dab configure --runtime` in CLI
Below are the requirements for adding support for updating runtime section of the config using dab-configure command.
| Configuration File Property Path | CLI Flag | Data Type | Nullable |
|---|---|---|---|
| runtime. rest.path |
String (default: /api) |
❌ | |
| runtime. rest.enabled |
Boolean: true, false (default: true) |
❌ | |
| runtime. rest.request-body-strict |
Boolean: true, false (default: true) |
✅ | |
| runtime. graphql.allow-introspection |
Boolean: true, false (default: true) |
✅ | |
| runtime. graphql.path |
String (default: /graphql) |
❌ | |
| runtime. graphql.enabled |
Boolean: true, false (default: true) |
❌ | |
| runtime. graphql.multiple-mutations.create.enabled |
Boolean: true, false (default: true) |
✅ | |
| runtime. host.mode |
String: Development, Production |
❌ | |
| runtime. host.cors.origins |
Array of strings | ✅ | |
| runtime. host.cors.allow-credentials |
Boolean: true, false (default: false) |
✅ | |
| runtime. host.authentication.provider |
String: StaticWebApps, AppService, AzureAD, Jwt |
✅ | |
| runtime. host.authentication.jwt.audience |
Array of strings | ✅ | |
| runtime. host.authentication.jwt.issuer |
String | ✅ | |
| runtime. cache.enabled |
Boolean: true, false (default: false) |
✅ | |
| runtime. cache.ttl-seconds |
Integer (default: 3600) |
✅ |
Design guide: Design guide: https://github.com/Azure/data-api-builder/blob/main/docs/design/dab-configure.md
Have a look at the original issue: https://github.com/Azure/data-api-builder/issues/2251 Attached to this issue are other PRs which can be used to get better understanding.
NOTE: Feel free to break the task into multiple PRs such as rest/graphql/host.