From 6aab5b8051cbc73962598ebd54c550f9bc3bd916 Mon Sep 17 00:00:00 2001 From: Deepak S Date: Tue, 17 Oct 2017 21:23:00 -0700 Subject: update rest api table Change-Id: I71f8b419a8b28bc3c9208c8902b91d06bc4653de Signed-off-by: Deepak S --- .../user/userguide/06-How_to_use_REST_api.rst | 169 +++++++++++---------- 1 file changed, 88 insertions(+), 81 deletions(-) (limited to 'docs/testing/user/userguide/06-How_to_use_REST_api.rst') diff --git a/docs/testing/user/userguide/06-How_to_use_REST_api.rst b/docs/testing/user/userguide/06-How_to_use_REST_api.rst index 658f99d3..64c68a4f 100644 --- a/docs/testing/user/userguide/06-How_to_use_REST_api.rst +++ b/docs/testing/user/userguide/06-How_to_use_REST_api.rst @@ -8,7 +8,7 @@ REST API ======================================================== Introduction -=============== +--------------- As the internet industry progresses creating REST API becomes more concrete with emerging best Practices. RESTful web services don’t follow a prescribed standard except fpr the protocol that is used which is HTTP, its important @@ -30,7 +30,7 @@ Here are important points to be considered: REST API in SampleVNF -===================== +--------------------- In SampleVNF project VNF’s are run under different contexts like BareMetal, SRIOV, OVS & Openstack etc. It becomes difficult to interact with the @@ -45,7 +45,7 @@ REST api on VNF’s will help adapting with the new automation techniques being adapted in yardstick. Web server integration with VNF’s -================================== +---------------------------------- In order to implement REST api’s in VNF one of the first task is to identify a simple web server that needs to be integrated with VNF’s. @@ -66,93 +66,102 @@ for different URI’s that are implemented. Typical usage is shown below URI definition for different VNF’s ----------------------------------- -:: - +---------------------------------+-----------------+--------------------------+----------------------------------------------------+ - | **URI** | **REST Method** | **Arguments** |**Description** | - +---------------------------------+-----------------+--------------------------+----------------------------------------------------+ - |/vnf | GET | None |Displays top level methods available | - +---------------------------------+-----------------+--------------------------+----------------------------------------------------+ - |/vnf/config | GET | None |Displays the current config set | - | | POST | pci_white_list: | | - | | | num_worker(o): | | - | | | vnf_type(o): | | - | | | pkt_type (o): | | - | | | num_lb(o): | | - | | | sw_lb(o): | | - | | | sock_in(o): | | - | | | hyperthread(o): | | - +---------------------------------+-----------------+--------------------------+----------------------------------------------------+ - |/vnf/config/arp | GET | None |Displays ARP/ND info | - | | POST | action: | | - | | | ipv4/ipv6:
| | - | | | portid: <> | | - | | | macaddr: <> for add | | - +---------------------------------+-----------------+--------------------------+----------------------------------------------------+ - |/vnf/config/link | GET | None | | - | | POST | link_id:<> | | - | | | state: <1/0> | | - +---------------------------------+-----------------+--------------------------+----------------------------------------------------+ - |/vnf/config/link/ | GET | None | | - | | POST | ipv4/ipv6:
| | - | | | depth: <> | | - +---------------------------------+-----------------+--------------------------+----------------------------------------------------+ - |/vnf/config/route | GET | None |Displays gateway route entries | - | | POST | portid: <> |Adds route entries for default gateway | - | | | nhipv4/nhipv6: | | - | | | depth: <> | | - | | | type:"net/host" | | - +---------------------------------+-----------------+--------------------------+----------------------------------------------------+ - |/vnf/config/rules(vFW/vACL only) | GET | None |Displays the methods /load/clear | - +---------------------------------+-----------------+--------------------------+----------------------------------------------------+ - |/vnf/config/rules/load | GET | None |Displays if file was loaded | - | | PUT |