Skip to content

Commit

Permalink
new API group/tag: responses
Browse files Browse the repository at this point in the history
  • Loading branch information
darklynx committed Aug 9, 2016
1 parent 4b3b971 commit 29edda0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 5 additions & 2 deletions doc/api-swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"tags" : [ {
"name" : "baskets",
"description" : "Manage baskets"
}, {
"name" : "responses",
"description" : "Configure basket responses"
}, {
"name" : "requests",
"description" : "Manage collected requests"
Expand Down Expand Up @@ -198,7 +201,7 @@
},
"/baskets/{name}/responses/{method}" : {
"get" : {
"tags" : [ "baskets" ],
"tags" : [ "responses" ],
"summary" : "Get response settings",
"description" : "Retrieves information about configured response of the basket. Service will reply with this response to any\nHTTP request sent to the basket with appropriate HTTP method.\n\nIf nothing is configured, the default response is HTTP 200 - OK with empty content.\n",
"parameters" : [ {
Expand Down Expand Up @@ -234,7 +237,7 @@
} ]
},
"put" : {
"tags" : [ "baskets" ],
"tags" : [ "responses" ],
"summary" : "Update response settings",
"description" : "Allows to configure HTTP response of this basket. The service will reply with configured response to any HTTP\nrequest sent to the basket with appropriate HTTP method.\n\nIf nothing is configured, the default response is HTTP 200 - OK with empty content.\n",
"parameters" : [ {
Expand Down
6 changes: 4 additions & 2 deletions doc/api-swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ produces:
tags:
- name: baskets
description: Manage baskets
- name: responses
description: Configure basket responses
- name: requests
description: Manage collected requests

Expand Down Expand Up @@ -187,7 +189,7 @@ paths:
/baskets/{name}/responses/{method}:
get:
tags:
- baskets
- responses
summary: Get response settings
description: |
Retrieves information about configured response of the basket. Service will reply with this response to any
Expand Down Expand Up @@ -219,7 +221,7 @@ paths:
- basket_token: []
put:
tags:
- baskets
- responses
summary: Update response settings
description: |
Allows to configure HTTP response of this basket. The service will reply with configured response to any HTTP
Expand Down

0 comments on commit 29edda0

Please sign in to comment.