在搜索请求中获取多个值 [英] GET multiple values in a search request

查看:96
本文介绍了在搜索请求中获取多个值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用AtTask API进行一些自定义报告,并且我希望获取不止一个特定参数.例如,在文档中指出:

I am using the AtTask API to do some custom reporting and I would like to get back more than one of a particular parameter. For example, in the documentation it states:

GET/attask/api/project/search?status = CUR

GET /attask/api/project/search?status=CUR

有没有办法也可以找回APP,PLN等?即我想打一个电话,并取回所有具有特定状态的项目.我尝试过:

Is there a way to also get back APP, PLN, etc? i.e. I'd like to do one call and get back all projects with a particular set of statuses. I've tried:

status={CUR,APP,PLN}
status=CUR,APP,PLN
status=CUR&status=APP&status=PLN

到目前为止,这些都没有返回数据集.谢谢!

So far none of those have returned the dataset. Thank you!

推荐答案

您最近一次尝试是最接近的一次.您只需要添加status_Mod=in,所以您的声明将是:

Your last attempt is the closest. You just need to add status_Mod=in, so your statement would be:

GET /attask/api/project/search?status=CUR&status=APP&status=PLN&status_Mod=in

这篇关于在搜索请求中获取多个值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆