From f19dacfe679c17c3322a8b354e38cb83fa5e2eed Mon Sep 17 00:00:00 2001 From: Alex Osborne Date: Mon, 20 Apr 2020 18:32:43 +0900 Subject: [PATCH] Document GET /engine --- docs/api.rst | 50 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/docs/api.rst b/docs/api.rst index 1f4b22ad..4563f8bc 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -15,6 +15,54 @@ is typically found in most unix environments. Curl is \ `available `__ for many systems including Windows. +Get Engine Status +~~~~~~~~~~~~~~~~~ + +.. http:get:: https://(heritrixhost):8443/engine + + Returns information about this instance of Heritrix such as version number, memory usage and the list of crawl jobs. + + **XML Example:** + + .. code:: bash + + curl -v -k -u admin:admin --anyauth --location -H "Accept: application/xml" https://localhost:8443/engine + + Response: + + .. code:: xml + + + 3.3.0-SNAPSHOT-2017-07-12T04:17:56Z + + 69529904 + 589824000 + 2885681152 + + /heritrix/jobs + https://localhost:8443/engine/jobsdir/ + + rescan + add + create + + + + myjob + https://localhost:8443/engine/job/myjob + false + 0 + + false + Unbuilt + false + /heritrix/jobs/myjob/crawler-beans.cxml + https://localhost:8443/engine/jobdir/crawler-beans.cxml + myjob + + + + Create New Job ~~~~~~~~~~~~~~ @@ -77,7 +125,7 @@ Get Job Status curl -v -k -u admin:admin --anyauth --location -H "Accept: application/xml" https://localhost:8443/engine/job/myjob - Example response: + Response: .. code:: xml