我没有在 CQ 工作过,但我正在与另一个使用 CQ 的团队合作,因此需要知道 CQ 是否支持 REST 命令(类似于下面使用 CURL 完成的操作)?我需要通过 HTTP 请求从 CQ 调用外部 REST Web 服务。
注意:我已经向 CQ 团队提出了这个问题,但还没有得到答案,因此想到了在这个论坛上查看..
curl -X PUT -H 'Content-type: application/json' -d '{"period": 300,"type": "crawl","start_time": "2011-03-18T12:10:32-0700","active": true}' http://localhost:8888/api/collections/collection1/datasources/8/schedule