GET multiple values in a search request

安稳与你 提交于 2019-12-11 22:33:57

问题


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

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!


回答1:


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


来源:https://stackoverflow.com/questions/27494081/get-multiple-values-in-a-search-request

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!