From 66a368f20caa97e052502b7ab35179ef5da26223 Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Fri, 24 Apr 2015 15:04:56 -0400 Subject: [PATCH] Document the HTTP interface to `rug-ctl`. Change-Id: I53cdf73b81054e3ef754075b7d17ce2617d5a164 --- docs/source/operation.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/source/operation.rst b/docs/source/operation.rst index e8c2ce8..73cc228 100644 --- a/docs/source/operation.rst +++ b/docs/source/operation.rst @@ -69,6 +69,17 @@ a running :py:mod:`akanda.rug` via AMQP:: current state of its worker processes and the state machines under their management. +:program:`akanda-rug` also exposes an RPC API on the management network, +which allows non-interactive `rug-ctl` commands to be issued via HTTP, e.g., + +:: + + $ curl -X PUT -g6 "http://[fdca:3ba5:a17a:acda::1]:44250/poll/" + $ curl -X PUT -g6 "http://[fdca:3ba5:a17a:acda::1]:44250/workers/debug/" + $ curl -X PUT -g6 "http://[fdca:3ba5:a17a:acda::1]:44250/router/rebuild/" + + + akanda-debug-router +++++++++++++++++++