Attask API Username Search Case Sensitive

后端 未结 3 1218
北恋
北恋 2021-01-24 01:46

I\'m currently trying to use Attask API\'s to pull out a list of users based on a string parameter, using the name_Mod \"contains\".

So far so good, I can pull back a li

3条回答
  •  旧时难觅i
    2021-01-24 02:25

    I have encountered a few limitations with the method Jim used.

    Specifically, this query will not work as you expect.

    ..attask/api/project/search?status=CPL&status=CON&status_Mod=contains&$$LIMIT=2000

    Only the first status is returned.

    My preferred solution for searching with a "Contains" filter is this:

    ../attask/api/user/search?filters={firstName:['Chris','Steve','steve','Stephen','Anne']}

    I feel it is easier to assemble an array programmatically as you do not have to prepend the field name.

    If needed you could perform a ToUpper, ToLower and Case the first Char in the string and cover most of the

    The filters verb does not respond to the field Modifier. You cannot use Not Equal, Less Than, Etc.

    Hope that helps!

提交回复
热议问题