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=11&rev2=12 {{attachment:API.png}} == REST API Calls == - === Administration (/admin) === + === Administration === Responsible class is ''AdminResource''. This API point is created in order to get server status and manage server's state. - + ==== Get server status ==== {{{{ - Server status JSON object contains server startup date, availible configuration names, job history and currently running jobs. GET /admin + }}}} + + __Response__ contains server startup date, availible configuration names, job history and currently running jobs. + {{{{ { "startDate":1403716000012, "configuration":[ @@ -40, +43 @@ } }}}} + ==== Stop server ==== - It is possible to stop running server using ''/admin/stop''. You can use non-mandatory ''force'' parameter, if you want to stop server despite running tasks. + It is possible to stop running server using ''/admin/stop''. You can use non-mandatory ''force'' parameter, if you want to stop server despite running tasks. {{{{ GET /admin/stop - GET /admin/stop?force=false GET /admin/stop?force=true }}}} + __Response__ {{{{ Stopping in 5 seconds.