OIC GET Method for a REST API with filters

  Kiến thức lập trình

I am trying to invoke a UDSA exposed rest API from OIC (Rest Adapter to be specific).

https://mpr.datamart.ams.usda.gov/ws/report/v1/cattle/LM_CT100?filter={“filters”:[{“fieldName
“:”Report%20date”,”operatorType”:”EQUAL”,”values”:[“01/10/2018”]}]}

The API itself has multiple filters (derived in JSON format) and work fine over the browser or on an API client like Postman.
However, I am unable to model the query in my OIC rest adapter trigger for the same.

I was trying to pass the filter condition it as a POST request body, but that is not permitted.

Any pointers?

LEAVE A COMMENT