forked from ntotten/api-explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.jade
More file actions
53 lines (46 loc) · 1.55 KB
/
index.jade
File metadata and controls
53 lines (46 loc) · 1.55 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
doctype html
html(lang="en")
head
meta(http-equiv="content-type", content="text/html; charset=us-ascii")
title="API Explorer"
link(rel="stylesheet", href="api-explorer.css")
link(href="//netdna.bootstrapcdn.com/bootstrap/2.3.2/css/bootstrap.min.css", rel="stylesheet")
script(type="text/javascript", src="//code.jquery.com/jquery-1.11.0.min.js")
script(type="text/javascript", src="api-explorer.js")
script.
require(['api-explorer'], function () {
var api_explorer = require('api-explorer');
api_explorer({
el: $('#my-sdk'),
isAuth: false,
tenantDomain: 'login0.myauth0.com',
docsDomain: 'docs.auth0.com',
clientId: '#{clientId}',
clientSecret: '#{clientSecret}',
readOnly: #{readOnly},
anchors: true,
user: {
id: 'john.doe',
name: 'John Doe',
mail: 'john@doe.com'
}
});
api_explorer({
el: $('#my-sdk-auth'),
isAuth: true,
tenantDomain: 'login0.myauth0.com',
docsDomain: 'docs.auth0.com',
clientId: '#{clientId}',
clientSecret: '#{clientSecret}',
readOnly: #{readOnly},
anchors: false,
user: {
id: 'john.doe',
name: 'John Doe',
mail: 'john@doe.com'
}
});
});
body.page-api-explorer
div#my-sdk
div#my-sdk-auth