Questions for DAB #1826
Closed
George Qiao (qiaohaojie)
started this conversation in
General
Replies: 5 comments 4 replies
|
I'm surprised that no reply yet. As shown below, I have a stored proc that leverages rich Json capability in Azure SQL: My hope is that I can leverage DAB to expose this as a customer-facing REST API. I need the ability to surface custom message ( most cases are complex validation messages when doing PUT/PATCH) . |
0 replies
|
Davide Mauri (@yorek) , hope this is possible? |
0 replies
|
Hi @qiaohaojie , Thank you for reaching and sorry about the delay in response. My answers to your questions:
|
3 replies
|
DAB is awesome! We’ve implemented it with our Azure SQL Server, and our users are loving it! Any ETA on version 1.8? We’re really looking forward to these new REST features! 😊
|
1 reply
|
This remains on our backlog without any immediate dates for implementation. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
DAB is exciting!
Some questions:
Where and how do I specify custom status_code and exception messages in DAB? For example, I have a stored proc to read data and I want to return status_code 404 if the data not found. And in writing scenario, if my stored proc detect validation error, I want to return status_code 500 (Internal Error; or maybe even more customised user friendly message).
How to I protect the exposed DAB REST end point? How do I provide features like rate limiting, IP restriction etc? Also, as mentioned in question 1, if I can use custom status_code and exception message, how can I pass this to API gateway?
My initial thought might be sth like: client --> Azure API management --> DAB --> Azure SQL (stored proc). Let's say my stored proc decides to return status_code 400 (bad request) with exception message ("input value can not be less than 100"). How my store proc to pass to DAB, and DAB pass to Azure API management, so that at the end, the client will receive this 400 error with the exception message?
All reactions