-
Notifications
You must be signed in to change notification settings - Fork 1
/
editor-default.html
405 lines (374 loc) · 18.1 KB
/
editor-default.html
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>API Designer (Mock)</title>
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<!-- Styles -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/patternfly/3.14.0/css/patternfly.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/patternfly/3.14.0/css/patternfly-additions.css">
<link rel="stylesheet/less" type="text/css" href="css/api-designer.less" />
<link rel="stylesheet/less" type="text/css" href="css/editor.less" />
<!-- Scripts -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.10.0/js/bootstrap-select.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/patternfly/3.14.0/js/patternfly.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.4/ace.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/less.js/2.7.1/less.js"></script>
<script type="text/javascript" src="js/api-designer.js"></script>
<script type="text/javascript" src="js/main-nav.js"></script>
</head>
<body class="cards-pf">
<nav class="navbar navbar-default navbar-pf" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html" style="padding-top: 4px; padding-bottom: 2px">
<img class="navbar-brand-logo" src="../img/api-designer-logo.png" alt="API Designer">
</a>
</div>
<div class="collapse navbar-collapse navbar-collapse-1">
<ul class="nav navbar-nav navbar-utility">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<span class="pficon pficon-user"></span>
<span>Tom Brady</span>
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="#">Profile</a></li>
<li class="divider"></li>
<li><a href="#">Logout</a></li>
</ul></li>
</ul>
</div>
</nav>
<div id="api-nav-menu-shade" style="display:none">
</div>
<div id="api-vertical-nav">
<div id="api-nav-item-dashboard" class="api-nav-item">
<span class="fa fa-fw fa-dashboard"></span>
<div>Dashboard</div>
</div>
<div id="api-nav-item-apis" class="api-nav-item active">
<span class="fa fa-fw fa-bolt"></span>
<div>APIs</div>
</div>
<div id="api-nav-item-mappings" class="api-nav-item">
<span class="fa fa-fw fa-random"></span>
<div>Mappings</div>
</div>
<div class="api-nav-item-filler">
</div>
</div>
<div id="api-vertical-nav-details" style="display:none">
<div id="api-nav-detail-dashboard" class="api-nav-detail-item" style="display:none">
<h3>Dashboard</h3>
<p>Click below to navigate back to the default API Designer dashboard.</p>
<ul>
<li><a href="dashboard.html">Back to Dashboard</a></li>
</ul>
</div>
<div id="api-nav-detail-apis" class="api-nav-detail-item" style="display:none">
<h3>APIs</h3>
<p class="description">Choose from the actions below or jump directly to one of your starred/favorited APIs.</p>
<h4 class="heading">API Actions</h4>
<div class="action">
<a href="my-apis.html"><span class="fa fa-fw fa-search"></span><span>List All APIs</span></a>
</div>
<div class="action">
<a href="new-api.html"><span class="fa fa-fw fa-plus"></span><span>Create New API</span></a>
</div>
<div class="action">
<a href="add-api.html"><span class="fa fa-fw fa-plus"></span><span>Add Existing API</span></a>
</div>
<h4 class="heading">Starred APIs</h4>
<div>
<a href="api-details.html"><span class="fa fa-fw fa-bolt"></span><span>Gateway Configuration API</span></a>
</div>
<div>
<a href="api-details.html"><span class="fa fa-fw fa-bolt"></span><span>Manager API</span></a>
</div>
</div>
<div id="api-nav-detail-mappings" class="api-nav-detail-item" style="display:none">
<h3>Mappings</h3>
<p class="description">Choose from the actions below or jump directly to one of your starred/favorited Mappings.</p>
<h4 class="heading">Mapping Actions</h4>
<div class="action">
<a href="#"><span class="fa fa-fw fa-search"></span><span>List All Mappings</span></a>
</div>
<div class="action">
<a href="#"><span class="fa fa-fw fa-plus"></span><span>New Mapping</span></a>
</div>
<h4 class="heading">Starred Mappings</h4>
<div>
<a href="#"><span class="fa fa-fw fa-random"></span><span>Invoice API -> SOAP Invoices</span></a>
</div>
<div>
<a href="#"><span class="fa fa-fw fa-random"></span><span>Manager API -> Manager Camel Routes</span></a>
</div>
</div>
</div>
<div id="api-page-body">
<div class="" style="background-color: white; float: left; width: 100%; border-bottom: 1px solid #ddd">
<div class="container-fluid api-breadcrumbs" style="float:left; border-bottom: 0px; margin-bottom: 0px">
<div class="row-fluid">
<ol class="breadcrumb">
<li><a href="dashboard.html"><span class="fa fa-fw fa-dashboard"></span><span>Dashboard</span></a></li>
<li><a href="my-apis.html"><span class="fa fa-fw fa-search"></span><span>My APIs</span></a></li>
<li class="active">
<a href="api-details.html">
<span class="fa fa-fw fa-bolt"></span>
<span>API:</span>
<strong>Gateway Configuration API</strong>
</a>
</li>
<li class="active">
<span class="fa fa-fw fa-pencil"></span>
<span>Editor</span>
</li>
</ol>
</div>
</div>
<div class="pull-right">
<!--
<button id="api-editor-save" class="btn btn-sm btn-primary" style="margin-top: 7px; margin-right: 15px;">Save Changes</button>
-->
<div class="dropdown" style="margin-top: 5px; margin-right: 15px;">
<button class="btn btn-primary dropdown-toggle" type="button" id="commitMessageMenu" data-toggle="dropdown">
<span>Save Changes</span>
<span class="caret"></span>
</button>
<div class="dropdown-menu" role="menu" aria-labelledby="commitMessageMenu" style="right: 0; left: auto; min-width: 500px; padding-bottom: 15px;">
<form id="api-editor-save-form" class="form-horizontal" (submit)="saveChanges()" #saveForm="ngForm">
<div class="container-fluid">
<div class="row">
<div class="col-sm-12">
<h3>Commit changes to GitHub</h3>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<input name="summary" type="text" id="save-summary" class="form-control" placeholder="Commit Summary"
required [(ngModel)]="model.name">
</div>
</div>
<div class="row" style="padding-top: 5px">
<div class="col-sm-12">
<textarea name="description" id="save-description" class="form-control" placeholder="Extended description (optional)"
[(ngModel)]="model.description"></textarea>
</div>
</div>
<div class="row" style="padding-top: 10px">
<div class="col-sm-12">
<button type="submit" class="btn btn-primary">Commit</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="api-editor-container">
<div class="api-editor light" id="api-editor">
<div class="editor-master">
<div class="editor-main selected">
<h2>Gateway Configuration API</h2>
</div>
<div class="editor-search">
<span class="fa fa-fw fa-search"></span>
<input type="text" placeholder="Search everything...">
</div>
<div class="editor-outline">
<!-- Resources Section -->
<div class="section resource-section">
<div class="section-header">
<a data-toggle="collapse" data-target="#resource-section-body">
<span class="section-label">Resources</span>
</a>
<button class="btn btn-sm btn-default pull-right"><span class="fa fa-plus"></span></button>
</div>
<div class="section-body collapse in" id="resource-section-body">
<div class="api-resource">
<span>/apis/</span>
</div>
<div class="api-resource" onclick="window.location = 'editor-resource.html'">
<span>/apis/</span><span class="path-param">{organizationId}</span><span>/</span><span class="path-param">{apiId}</span><span>/</span><span class="path-param">{version}</span>
</div>
<div class="api-resource">
<span>/apis/</span><span class="path-param">{organizationId}</span><span>/</span><span class="path-param">{apiId}</span><span>/</span><span class="path-param">{version}</span><span>/path</span>
</div>
<div class="api-resource">
<span>/clients/</span>
</div>
<div class="api-resource">
<span>/clients/</span><span class="path-param">{organizationId}</span><span>/</span><span class="path-param">{apiId}</span><span>/</span><span class="path-param">{version}</span>
</div>
<div class="api-resource">
<span>/system/status</span>
</div>
</div>
</div>
<!-- Definitions Section -->
<div class="section definition-section">
<div class="section-header">
<a data-toggle="collapse" data-target="#definition-section-body">
<span class="section-label">Definitions</span>
</a>
<button class="btn btn-sm btn-default pull-right"><span class="fa fa-plus"></span></button>
</div>
<div class="section-body collapse in" id="definition-section-body">
<div class="api-definition">
<span class="fa fa-fw fa-code"></span>
<span>Api</span>
</div>
<div class="api-definition" onclick="window.location = 'editor-definition.html'">
<span class="fa fa-fw fa-code"></span>
<span>NewApi</span>
</div>
<div class="api-definition">
<span class="fa fa-fw fa-code"></span>
<span>Client</span>
</div>
</div>
</div>
<!-- Responses Section -->
<div class="section response-section">
<div class="section-header">
<a class="collapsed" data-toggle="collapse" data-target="#response-section-body">
<span class="section-label">Responses</span>
</a>
<button class="btn btn-sm btn-default pull-right"><span class="fa fa-plus"></span></button>
</div>
<div class="section-body collapse" id="response-section-body">
<div class="api-response">
<span class="fa fa-fw fa-reply"></span>
<span>NotFound</span>
</div>
<div class="api-response">
<span class="fa fa-fw fa-reply"></span>
<span>IllegalInput</span>
</div>
<div class="api-response">
<span class="fa fa-fw fa-reply"></span>
<span>GeneralError</span>
</div>
</div>
</div>
</div>
</div>
<div class="editor-detail">
<div class="detail-title">
<div class="detail-label"></div>
<div class="detail-actions">
<div class="dropdown">
<button class="btn btn-link dropdown-toggle" type="button" id="dropdownKebab" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<span class="fa fa-ellipsis-v"></span>
</button>
<ul class="dropdown-menu " aria-labelledby="dropdownKebab">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li role="separator" class="divider"></li>
<li><a href="#">Separated link</a></li>
</ul>
</div>
</div>
</div>
<div class="detail-tabs">
<ul class="nav nav-tabs nav-tabs-pf">
<li class="active"><a href="#">Design</a></li>
<li><a href="#">Source</a></li>
</ul>
</div>
<div class="detail-content">
<!-- Info about the API -->
<div class="section info-section">
<div class="section-header">
<a data-toggle="collapse" data-target="#info-section-body">
<span class="section-label">INFO</span>
</a>
</div>
<div class="section-body collapse in" id="info-section-body">
<h1>
<span class="api-title api-item-title">Gateway Configuration API</span>
<span class="api-version">1.0.0</span>
</h1>
<div class="api-description api-item-description">
This is a sample server Petstore server via JSON.
</div>
<div class="api-meta-data">
<!-- TOS -->
<div class="api-md-entry">
<div class="md-label">Terms of Service</div>
<div class="md-value">
<a href="http://helloreverb.com/terms/">http://helloreverb.com/terms/</a>
<span class="fa fa-fw fa-external-link"></span>
</div>
</div>
<!-- Contact Info -->
<div class="api-md-entry">
<div class="md-label">Contact</div>
<div class="md-value">
<div>
<span>James Bond</span>
<span> - </span>
<span>[email protected]</span>
</div>
<div>
<a href="http://www.007.com/">http://www.007.com/</a>
<span class="fa fa-fw fa-external-link"></span>
</div>
</div>
</div>
<!-- License -->
<div class="api-md-entry">
<div class="md-label">License</div>
<div class="md-value">
<span>Apache 2.0</span>
<a href="http://www.apache.org/licenses/LICENSE-2.0.html">http://www.apache.org/licenses/LICENSE-2.0.html</a>
<span class="fa fa-fw fa-external-link"></span>
</div>
</div>
</div>
</div>
</div>
<!-- Global Tags -->
<div class="section info-section">
<div class="section-header">
<a data-toggle="collapse" data-target="#tags-section-body">
<span class="section-label">TAGS</span>
</a>
<button class="btn btn-sm btn-default pull-right"><span class="fa fa-plus"></span></button>
</div>
<div class="section-body collapse in" id="tags-section-body">
<p>Configure the API's tags here</p>
</div>
</div>
<!-- Security Definitions -->
<div class="section info-section">
<div class="section-header">
<a data-toggle="collapse" data-target="#security-section-body">
<span class="section-label">SECURITY</span>
</a>
<button class="btn btn-sm btn-default pull-right"><span class="fa fa-plus"></span></button>
</div>
<div class="section-body collapse in" id="security-section-body">
<p>Configure the API's security definitions here</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>