Refactoring getParticipants API #822
Replies: 3 comments 4 replies
-
Beta Was this translation helpful? Give feedback.
-
|
Please keep in mind I'm not familiar with the use cases here... It's probably more straightforward for the end users when separate APIs with required args are defined and documented rather than one API with optional args, so separating this into separate APIs makes a lot of sense. Beyond that, maybe we don't need to change the getParticipants implementation? Can we just validate based on the API called and then pass that data into |
Beta Was this translation helpful? Give feedback.
-
|
I agree the API handles mixed situations and is confusing.
|
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
With the current state there is a lot of confusion when talking about the getParticipants API. The confusion always seems to stem from the fact that
filteris one of the types you can pass in. If you pass in that type you also need to pass in an option. What I also noticed is that iffilteris passed in as the option we are using a completely different function to return data. My idea is to split thefilteroption into its own API calledfilterParticipants. We would keepgetParticipantsas an API but we would use it as an API where people can return data based on pre-determined queries such asverifiedandconsentNotSubmittedandfilterParticipantswould be an API where users would need to pass in both a field they want to filter by as well as the value that the filter should match.Thoughts on this?
Beta Was this translation helpful? Give feedback.
All reactions