From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from tama50.ecl.ntt.co.jp (tama50.ecl.ntt.co.jp [129.60.39.147]) by dpdk.org (Postfix) with ESMTP id CC0BA293B for ; Thu, 25 Oct 2018 07:20:39 +0200 (CEST) Received: from vc1.ecl.ntt.co.jp (vc1.ecl.ntt.co.jp [129.60.86.153]) by tama50.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id w9P5Kc0m022758; Thu, 25 Oct 2018 14:20:38 +0900 Received: from vc1.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id BBD10EA7CFC; Thu, 25 Oct 2018 14:20:38 +0900 (JST) Received: from localhost.localdomain (unknown [129.60.13.51]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id A4CD4EA7C7B; Thu, 25 Oct 2018 14:20:38 +0900 (JST) From: ogawa.yasufumi@lab.ntt.co.jp To: spp@dpdk.org, ferruh.yigit@intel.com, ogawa.yasufumi@lab.ntt.co.jp Date: Thu, 25 Oct 2018 14:20:22 +0900 Message-Id: <20181025052023.17190-5-ogawa.yasufumi@lab.ntt.co.jp> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20181025052023.17190-1-ogawa.yasufumi@lab.ntt.co.jp> References: <20181025052023.17190-1-ogawa.yasufumi@lab.ntt.co.jp> X-TM-AS-MML: disable Subject: [spp] [PATCH 4/5] docs: add DELETE method for exiting spp_primary X-BeenThere: spp@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Soft Patch Panel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Oct 2018 05:20:40 -0000 From: Yasufumi Ogawa To support `bye` command of `spp.py`, add DELETE method for spp_primary. $ curl -X DELETE http://127.0.0.1:7777/v1/primary Signed-off-by: Yasufumi Ogawa --- docs/guides/spp-ctl/api-reference.rst | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/docs/guides/spp-ctl/api-reference.rst b/docs/guides/spp-ctl/api-reference.rst index f0661c8..3c22cb9 100644 --- a/docs/guides/spp-ctl/api-reference.rst +++ b/docs/guides/spp-ctl/api-reference.rst @@ -253,7 +253,27 @@ Request example Response ^^^^^^^^ -There is no body content for the response of a successful ``PUT`` request. +There is no body content for the response of a successful ``DELETE`` request. + +DELETE /v1/primary +~~~~~~~~~~~~~~~~~~ + +Terminate primary process. + +* Normal response codes: 204 + +Request example +^^^^^^^^^^^^^^^ + +.. code-block:: console + + curl -X DELETE -H 'application/json' \ + http://127.0.0.1:7777/v1/primary + +Response +^^^^^^^^ + +There is no body content for the response of a successful ``DELETE`` request. API for spp_nfv/spp_vm -- 2.7.4