Skip to content

Commit f957e64

Browse files
committed
Fix response status code on documentation
1 parent 651ad2f commit f957e64

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

dist/scripts/api-console.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@
118118

119119
$scope.currentStatusCode = '200';
120120

121+
if ($scope.methodInfo.responseCodes && $scope.methodInfo.responseCodes.length > 0) {
122+
$scope.currentStatusCode = $scope.methodInfo.responseCodes[0];
123+
}
124+
121125
function beautify(body, contentType) {
122126
if(contentType.indexOf('json')) {
123127
body = vkbeautify.json(body, 2);

src/app/directives/documentation.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313

1414
$scope.currentStatusCode = '200';
1515

16+
if ($scope.methodInfo.responseCodes && $scope.methodInfo.responseCodes.length > 0) {
17+
$scope.currentStatusCode = $scope.methodInfo.responseCodes[0];
18+
}
19+
1620
function beautify(body, contentType) {
1721
if(contentType.indexOf('json')) {
1822
body = vkbeautify.json(body, 2);

0 commit comments

Comments
 (0)