-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
32 lines (28 loc) · 856 Bytes
/
index.html
File metadata and controls
32 lines (28 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<html>
<head>
<!-- power-sword deps -->
<script src="bower_components/traverson/browser/dist/traverson.js"></script>
<script src="bower_components/rsvp/rsvp.js"></script>
<script src="js/power-sword.js"></script>
</head>
<body>
Look at js console for more exciting stuff.
<script>
powerSword = new PowerSword(RSVP);
powerSword.getRootLinks().then(function (links) {
console.log("root links");
console.log(links);
});
powerSword.getUseCases().then(function (use_cases) {
console.log("use cases");
console.log(use_cases);
use_case = use_cases[0];
console.log("first use case");
console.log(use_case);
powerSword.generateDataset({use_case: encodeURIComponent(use_case._links.self.href)}).then(function (jc) {
console.log(jc);
});
});
</script>
</body>
</html>