This request simply returns whatever content is sent in the body of the request (body should be in json format, only used for testing)
-Example request: curl -XGET '127.0.0.1:7556/echo' -H "Content-Type: application/json" -d '{"nfvbench": "test"}'
-Response:
-{
- "nfvbench": "test"
-}
+Example request:
+
+.. code-block:: bash
+
+ curl -XGET '127.0.0.1:7556/echo' -H "Content-Type: application/json" -d '{"nfvbench": "test"}'
+ Response:
+ {
+ "nfvbench": "test"
+ }
<http-url>/status (GET)
<http-url>/start_run (POST)
-^^^^^^^^^^^^^^^^^^^^^
+^^^^^^^^^^^^^^^^^^^^^^^^^^^
-This request starts an NFVBench run with passed configurations.
+This request starts an NFVBench run with passed configurations. If no configuration is passed, a run with default configurations will be executed.
Example request: curl -XPOST 'localhost:7556/start_run' -H "Content-Type: application/json" -d @nfvbenchconfig.json
"status": "PENDING"
}
-If there is already an NFVBench running then it will return
+If there is already an NFVBench running then it will return:
.. code-block:: bash