Azure / data-api-builder

Data API builder provides modern REST and GraphQL endpoints to your Azure Databases and on-prem stores.
https://aka.ms/dab/docs
MIT License
949 stars 197 forks source link

[Enhancement]: REST Advanced Paths #2373

Open JerryNixon opened 2 months ago

JerryNixon commented 2 months ago

What is it?

This improvement addresses potential conflicts that arise when multiple data sources contain entities with the same desired REST path. For example, you might have an Item entity under both an Invoice and a ShoppingCart. With the current setup, you might end up with paths like /shopping-cart and /shopping-cart-item, when the desired paths would be /shopping-cart/item and /invoice/item. This issue becomes more pronounced as we introduce tenant support across multiple databases.

Questions

  1. How many sub-folders, just one? Yes. Just one.
  2. Are paths unique across config files? Yes, required.

Related issues to close