-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Multiple db support for REST scenario (#2169)
## Why make this change? This change introduces REST support for multiple DB Scenario. Issue: #1753 ## What is this change? 1. Instead of using the default db name to dispatch queries, we are using the db name based on entity and then dispatching queries and mutations. ## How was this tested? 1. Existing unit tests should cover backward compatibility scenarios of all single db rest support. 2. Existing unit tests cover the flow once the query is dispatched to the queryEngine/query executor. We need to add the tests for the integration scenario for other calls in rest. 3. Added test for rest scenario dispatch routing. Integration test: 1. Two db's one has publishers entity and one has books: Get publishers ![image](https://github.com/Azure/data-api-builder/assets/124841904/8f1fd2d6-50f0-410a-b096-ad946434ba94) Get books ![image](https://github.com/Azure/data-api-builder/assets/124841904/3c0e680c-4c30-46dd-8bdc-575c673ecdaf)
- Loading branch information
Showing
7 changed files
with
204 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.