How to handle arrays of parameters with REST API endpoints? #7923
Unanswered
raman-shaliamekh
asked this question in
Question
Replies: 0 comments
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.
-
Based on some work we are experimenting with in developing REST API endpoints I have the following question.
How can we handle arrays of parameters where (depending on how we implement it) might look something like this:
e.g.
/employees=Todd
/employees=Todd,Bob
/employees[]=Todd&employees[]=Bob
Where in the above example, employees can be a string, or an "array" (fancy string that represents an array) that will translate to a WHERE employee IN ['Todd', 'Bob']
Beta Was this translation helpful? Give feedback.
All reactions