Skip to content

Commit

Permalink
readme: make API description consistence
Browse files Browse the repository at this point in the history
Signed-off-by: liangchenye <liangchenye@huawei.com>
  • Loading branch information
liangchenye committed Feb 26, 2016
1 parent af0ddce commit d47616a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d47616a

Please sign in to comment.