Skip to content

Commit ef7ef4d

Browse files
author
Denis Kalinin
committed
Revert "Removing dist folder"
This reverts commit 1cd3d33.
1 parent 1cd3d33 commit ef7ef4d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+546190
-3
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,3 @@ node_modules
66
selenium
77
vendor/bower_components
88
bower_components
9-
dist
10-
.project
11-
.settings

dist/authentication/oauth1.html

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<script type='text/javascript'>
5+
function getVariable(string, variable) {
6+
var vars = string.split('&');
7+
for (var i = 0; i < vars.length; i++) {
8+
var pair = vars[i].split('=');
9+
if (decodeURIComponent(pair[0]) == variable) {
10+
return decodeURIComponent(pair[1]);
11+
}
12+
}
13+
14+
return undefined;
15+
}
16+
17+
function getQueryVariable(variable) {
18+
var query = window.location.search.substring(1);
19+
return getVariable(query, variable);
20+
}
21+
22+
var result = {
23+
token: getQueryVariable('oauth_token'),
24+
verifier: getQueryVariable('oauth_verifier')
25+
};
26+
27+
window.opener.RAML.authorizationSuccess(result);
28+
window.close();
29+
</script>
30+
</head>
31+
<body>
32+
</body>
33+
</html>

dist/authentication/oauth2.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<script type='text/javascript'>
5+
window.opener.oauth2Callback(window.location.href);
6+
window.close();
7+
</script>
8+
</head>
9+
<body>
10+
</body>
11+
</html>

dist/examples/array.raml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
#%RAML 1.0
2+
#baseUri: http://www.tshirt.com/api
3+
baseUri: http://mocksvc.mulesoft.com/mocks/a2126894-176f-4892-b21a-0cd998bcdcdb/api
4+
title: T-Shirt Ordering Service
5+
version: 1.0.development
6+
mediaType: [application/json]
7+
types:
8+
Shirts:
9+
type: array
10+
items: shirt
11+
shirt:
12+
type: object
13+
properties:
14+
size: number
15+
productCode: string
16+
description: string
17+
18+
/orders:
19+
displayName: Orders
20+
description: Orders collection resource used to create new orders.
21+
get:
22+
description: lists all orders of a specific user
23+
queryParameters:
24+
userId:
25+
type: string
26+
description: use to query all orders of a user
27+
required: true
28+
example: 1964401a-a8b3-40c1-b86e-d8b9f75b5842
29+
size:
30+
description: the amount of elements of each result page
31+
type: integer
32+
required: false
33+
example: 10
34+
page:
35+
description: the page number
36+
type: integer
37+
required: false
38+
example: 0
39+
responses:
40+
200:
41+
body:
42+
application/json:
43+
type: object
44+
properties:
45+
orders:
46+
type: array
47+
items:
48+
type: object
49+
properties:
50+
order_id: string
51+
creation_date: string
52+
items:
53+
type: array
54+
items:
55+
type: object
56+
properties:
57+
product_id: string
58+
quantity: integer

0 commit comments

Comments
 (0)