data-api-builder icon indicating copy to clipboard operation
data-api-builder copied to clipboard

[Enhancement]: nextLink Relative Path Response Enhancement

Open Chr0no591 opened this issue 2 years ago • 2 comments

What happened?

We are currently grappling with the challenge of receiving a relative nextLink path in the form of http(s)://domain.com/path?queries. To address this, we request the implementation of a feature that allows us to obtain only the relative path with queries, excluding the HTTP(S) protocol and domain, like /path?queries. This feature has been discussed in a related question in the Q&A from April 2023; for more details, refer to: https://github.com/Azure/data-api-builder/discussions/1447.

To enhance flexibility, we propose implementing a feature with a toggle and configuration option, enabling developers to specify the format of the nextLink response they wish to receive.

Feature Proposal:

  • Toggle and Configuration: Introduce a toggle and configuration option to control the nextLink response format.

Configuration Details: The configuration can be set in the dab-config.json file:

{
  "nextLinkRelative": true // Set to true for relative path only
  "pattern": "domain/path?queries" // or "https://domain/path?queries" it could be a regex pattern or fix
}

Version

0.5.35

What database are you using?

MS SQL

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

Chr0no591 avatar Dec 20 '23 10:12 Chr0no591