Sha256: 223848972336d45a81bdf9df8c10191b72a90c63fc9636cf26dc9bbdc6a018d6

Contents?: true

Size: 1.11 KB

Versions: 1

Compression:

Stored size: 1.11 KB

Contents

<!DOCTYPE html>
<html>
<head>
    <title>Exchange extractors</title>
    <script src="js/angular.min.js"></script>
</head>
<body>
<h1>Extract from response</h1>

<div ng-app="codeDemo" ng-controller="extract">
    <p>
        <b>Sample response</b>
        <p>
            {"root":
                {"parent1":
                    {"child1":5,"child2":"parent1 word"},
                "parent2":
                    {"uniq":"val","child2":"word2"}}
            }
        </p>
    </p>
    <p>Method:
        <select ng-model="index">
            <option value="0" selected="selected">Unique element from body</option>
            <option value="1">Element from body via JSONPath</option>
            <option value="2">List of values matching JSONPath</option>
        </select>
    </p>
    <p ng-bind="myData[index].method"></p>
    <p ng-bind="myData[index].result"></p>
</div>
<script>
    var app = angular.module('codeDemo', []);
    app.controller('extract', function($scope, $http) {
        $http.get("extract.json").then(function(response) {
            $scope.myData = response.data;
        });
    });
</script>
</body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
soaspec-0.2.15 demo/extract.html