What is the best way to filtering in API?

93 views
Skip to first unread message

Cem Topkaya

unread,
Nov 19, 2017, 4:40:26 AM11/19/17
to API Craft
Let's say we need to filter data behind of the API.
Which semantic is useful to naming filter functions.

IEnumerable<XElement> filterByName(string name)
List<XElement> filterByLessonCode(string code)
or
XElement[] filterByCriteria(string fieldName, string term)

Would you please explain which one these your something else should be used?
Reply all
Reply to author
Forward
0 new messages