From d47616a33969b7d880021ca24eca265128cc6ed1 Mon Sep 17 00:00:00 2001 From: liangchenye Date: Fri, 26 Feb 2016 15:52:54 +0800 Subject: [PATCH] readme: make API description consistence Signed-off-by: liangchenye --- api/v1/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/v1/README.md b/api/v1/README.md index 0020c86f..e71f8aec 100644 --- a/api/v1/README.md +++ b/api/v1/README.md @@ -205,7 +205,7 @@ The POST route for the Vulnerabilities resource creates a new Vulnerability. ###### Example Request ```json -POST /namespaces/debian%3A8/vulnerabilities HTTP/1.1 +POST http://localhost:6060/v1/namespaces/debian%3A8/vulnerabilities HTTP/1.1 { "Vulnerability": { @@ -281,7 +281,7 @@ The GET route for the Vulnerabilities resource displays the current data for a g ###### Example Request ```json -GET /namespaces/debian%3A8/vulnerabilities/CVE-2014-9471?fixedIn HTTP/1.1 +GET http://localhost:6060/v1/namespaces/debian%3A8/vulnerabilities/CVE-2014-9471?fixedIn HTTP/1.1 ``` ###### Example Response @@ -437,7 +437,7 @@ The PUT route for the Fixes resource updates a Feature that is the fix for a giv ###### Example Request ```json -PUT http://localhost:6060/namespaces/debian%3A8/vulnerabilities/CVE-2014-9471/fixes/coreutils HTTP/1.1 +PUT http://localhost:6060/v1/namespaces/debian%3A8/vulnerabilities/CVE-2014-9471/fixes/coreutils HTTP/1.1 { "Feature": { @@ -472,7 +472,7 @@ The DELETE route for the Fixes resource removes a Feature as fix for the given V ###### Example Request ```json -DELETE http://localhost:6060/namespaces/debian%3A8/vulnerabilities/CVE-2014-9471/fixes/coreutils +DELETE http://localhost:6060/v1/namespaces/debian%3A8/vulnerabilities/CVE-2014-9471/fixes/coreutils ``` ###### Example Response