Dear Wiki user, You have subscribed to a wiki page or wiki category on "Nutch Wiki" for change notification.
The "NutchRESTAPI" page has been changed by FjodorVershinin: https://wiki.apache.org/nutch/NutchRESTAPI?action=diff&rev1=5&rev2=6 "confId":"default", "args":null, "result":null, + "state":"FINISHED", + "msg":"", + "crawlId":"crawl-01" + } + { + "id":"job-id-5978", + "type":"PARSE", + "confId":"default", + "args":null, + "result":null, "state":"RUNNING", "msg":"", "crawlId":"crawl-01" } ] + }}}} + + ==== Get job info ==== + + {{{{ + GET /job/job-id-5977 + }}}} + + __Response__ + {{{{ + { + "id":"job-id-5977", + "type":"FETCH", + "confId":"default", + "args":null, + "result":null, + "state":"FINISHED", + "msg":"", + "crawlId":"crawl-01" + } + }}}} + + ==== Stop job ==== + + {{{{ + GET /job/job-id-5977/stop + }}}} + + __Response__ + {{{{ + true + }}}} + + + ==== Kill job ==== + + {{{{ + GET /job/job-id-5977/abort + }}}} + + __Response__ + {{{{ + true + }}}} + + ==== Create job ==== + Create job with given parameters. You should either specify JobType or jobClassName. + {{{{ + POST /job/create + { + "crawlId":"crawl-01", + "type":"FETCH", + "confId":"default", + "args":{"someParam":"someValue"} + } + + POST /job/create + { + "crawlId":"crawl-01", + "jobClassName":"org.apache.nutch.fetcher.FetcherJob" + "confId":"default", + "args":{"someParam":"someValue"} + } + }}}} + + __Response__ is created job id. + {{{{ + job-id-43243 }}}} === Configuration ===