Skip to content

Commit cc559f8

Browse files
Shima DastgheibShima Dastgheib
Shima Dastgheib
authored and
Shima Dastgheib
committed
pushed the forked repo in the new repo
1 parent a3cdd81 commit cc559f8

File tree

223 files changed

+58373
-0
lines changed

Some content is hidden

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

223 files changed

+58373
-0
lines changed

404.html

+157
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Page Not Found :(</title>
6+
<style>
7+
::-moz-selection {
8+
background: #b3d4fc;
9+
text-shadow: none;
10+
}
11+
12+
::selection {
13+
background: #b3d4fc;
14+
text-shadow: none;
15+
}
16+
17+
html {
18+
padding: 30px 10px;
19+
font-size: 20px;
20+
line-height: 1.4;
21+
color: #737373;
22+
background: #f0f0f0;
23+
-webkit-text-size-adjust: 100%;
24+
-ms-text-size-adjust: 100%;
25+
}
26+
27+
html,
28+
input {
29+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
30+
}
31+
32+
body {
33+
max-width: 500px;
34+
_width: 500px;
35+
padding: 30px 20px 50px;
36+
border: 1px solid #b3b3b3;
37+
border-radius: 4px;
38+
margin: 0 auto;
39+
box-shadow: 0 1px 10px #a7a7a7, inset 0 1px 0 #fff;
40+
background: #fcfcfc;
41+
}
42+
43+
h1 {
44+
margin: 0 10px;
45+
font-size: 50px;
46+
text-align: center;
47+
}
48+
49+
h1 span {
50+
color: #bbb;
51+
}
52+
53+
h3 {
54+
margin: 1.5em 0 0.5em;
55+
}
56+
57+
p {
58+
margin: 1em 0;
59+
}
60+
61+
ul {
62+
padding: 0 0 0 40px;
63+
margin: 1em 0;
64+
}
65+
66+
.container {
67+
max-width: 380px;
68+
_width: 380px;
69+
margin: 0 auto;
70+
}
71+
72+
/* google search */
73+
74+
#goog-fixurl ul {
75+
list-style: none;
76+
padding: 0;
77+
margin: 0;
78+
}
79+
80+
#goog-fixurl form {
81+
margin: 0;
82+
}
83+
84+
#goog-wm-qt,
85+
#goog-wm-sb {
86+
border: 1px solid #bbb;
87+
font-size: 16px;
88+
line-height: normal;
89+
vertical-align: top;
90+
color: #444;
91+
border-radius: 2px;
92+
}
93+
94+
#goog-wm-qt {
95+
width: 220px;
96+
height: 20px;
97+
padding: 5px;
98+
margin: 5px 10px 0 0;
99+
box-shadow: inset 0 1px 1px #ccc;
100+
}
101+
102+
#goog-wm-sb {
103+
display: inline-block;
104+
height: 32px;
105+
padding: 0 10px;
106+
margin: 5px 0 0;
107+
white-space: nowrap;
108+
cursor: pointer;
109+
background-color: #f5f5f5;
110+
background-image: -webkit-linear-gradient(rgba(255,255,255,0), #f1f1f1);
111+
background-image: -moz-linear-gradient(rgba(255,255,255,0), #f1f1f1);
112+
background-image: -ms-linear-gradient(rgba(255,255,255,0), #f1f1f1);
113+
background-image: -o-linear-gradient(rgba(255,255,255,0), #f1f1f1);
114+
-webkit-appearance: none;
115+
-moz-appearance: none;
116+
appearance: none;
117+
*overflow: visible;
118+
*display: inline;
119+
*zoom: 1;
120+
}
121+
122+
#goog-wm-sb:hover,
123+
#goog-wm-sb:focus {
124+
border-color: #aaa;
125+
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
126+
background-color: #f8f8f8;
127+
}
128+
129+
#goog-wm-qt:hover,
130+
#goog-wm-qt:focus {
131+
border-color: #105cb6;
132+
outline: 0;
133+
color: #222;
134+
}
135+
136+
input::-moz-focus-inner {
137+
padding: 0;
138+
border: 0;
139+
}
140+
</style>
141+
</head>
142+
<body>
143+
<div class="container">
144+
<h1>Not found <span>:(</span></h1>
145+
<p>Sorry, but the page you were trying to view does not exist.</p>
146+
<p>It looks like this was the result of either:</p>
147+
<ul>
148+
<li>a mistyped address</li>
149+
<li>an out-of-date link</li>
150+
</ul>
151+
<script>
152+
var GOOG_FIXURL_LANG = (navigator.language || '').slice(0,2),GOOG_FIXURL_SITE = location.host;
153+
</script>
154+
<script src="//linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>
155+
</div>
156+
</body>
157+
</html>

CNAME

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
editor.swagger.io

Dockerfile

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
###
2+
# swagger-editor - https://github.com/swagger-api/swagger-editor/
3+
#
4+
# Run the swagger-editor service on port 8080
5+
###
6+
7+
FROM mhart/alpine-node
8+
9+
RUN npm install -g http-server
10+
11+
WORKDIR /editor
12+
ADD ./ /editor
13+
14+
# The default port of the application
15+
EXPOSE 8080
16+
17+
CMD ["http-server", "--cors", "-p8080", "/editor"]

README.md

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# smartAPI Editor: A tool for semantic annotation of Web APIs
2+
3+
smartAPI Editor is an an extension to [Swagger Editor](https://github.com/swagger-api/swagger-editor/releases). Swagger Editor lets you edit your API document in in YAML inside your browser and to preview documentations in real time.
4+
5+
**[LIVE DEMO](https://www.youtube.com/watch?v=EQpUEiOu1ng&t=2s)**
6+
7+
[![Screenshot of the smartAPI Editor](docs/screenshot.png "Annotating your Web API with smartAPI Editor")]()
8+
9+
smartAPI editor:
10+
* Validates your API document against [smartAPI specifications](https://github.com/WebsmartAPI/swagger-editor/blob/master/node_modules_changes/schema.json), an extended version of openAPI specification.
11+
12+
* Lets you Save your API document into [smartAPI registry](http://smart-api.info/registry/).
13+
14+
* Enhances auto-suggestion functionality for metadata *elements* by providing the element's conformance level (Required, Recommended, Optional).
15+
16+
* Enhances auto-suggestion functionality for metadata *values* by suggesting a list of values used by other APIs along with and sorted by their usage frequency.
17+
18+
* Enables semantic annotation of *parameters* and *responses* of the API:
19+
* auto-suggests values for *parameters.parameterValueType* from [identifiers.org](http://identifiers.org/) along with their usage frequency by other APIs.
20+
* Integrates the editor with [smartAPI profiler](http://smart-api.info/profiler) which automatically annotates the *responses.responseDataType* of the API.
21+
22+
23+
#### Building From Source
24+
25+
Make sure you have [Node.js](http://nodejs.org/) installed.
26+
Running the editor:
27+
28+
```shell
29+
git clone https://github.com/WebsmartAPI/swagger-editor.git
30+
cd swagger-editor
31+
npm install
32+
chmod 755 scripts/nmchange.sh
33+
./scripts/nmchange.sh
34+
npm start
35+
```
36+
Make sure you have [elasticsearch](https://www.elastic.co/guide/en/elasticsearch/reference/current/_installation.html) installed.
37+
Running elasticsearch:
38+
```shell
39+
./elasticsearch
40+
```
41+
42+
Running the Identifiers API ( an elasticsearch-based tornado app providing the identifiers from identifiers.org indexed using their names,synonyms, description, and URL)
43+
```shell
44+
cd identifiers
45+
make index
46+
make backend
47+
```
48+
#### Documentations
49+
* [smartAPI Developer Guide](./docs/smartAPIdeveloper.md)
50+
* [smartAPI User Guide](./docs/smartAPIuser.md)
51+
52+
#### Other Swagger Documentations
53+
* [Importing your Swagger document](./docs/import.md)
54+
* [Development Guide](./docs/development.md)
55+
* [Configuration Guide](./docs/config.md)
56+
* [Cross Origin Request(CORS) issues](docs/cors.md)
57+
58+
[Contributing](./CONTRIBUTING.md)
59+
60+
[LICENSE](./LICENSE)
61+
62+
---
63+
<img src="http://swagger.io/wp-content/uploads/2016/02/logo.jpg"/>

config/defaults.json

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"codegen": {
3+
"servers": "http://generator.swagger.io/api/gen/servers",
4+
"clients": "http://generator.swagger.io/api/gen/clients",
5+
"server": "http://generator.swagger.io/api/gen/servers/{language}",
6+
"client": "http://generator.swagger.io/api/gen/clients/{language}"
7+
},
8+
"analytics": {
9+
"google": {
10+
"id": "UA-51231036-1"
11+
}
12+
},
13+
"disableCodeGen": false,
14+
"examplesFolder": "spec-files/",
15+
"editorOptions": {
16+
"theme": "ace/theme/atom_dark"
17+
},
18+
"exampleFiles": [
19+
"default.yaml",
20+
"heroku-pets.yaml",
21+
"minimal.yaml",
22+
"echo.yaml",
23+
"petstore_simple.yaml",
24+
"petstore_full.yaml",
25+
"basic-auth.yaml",
26+
"security.yaml",
27+
"instagram.yaml",
28+
"twitter.yaml",
29+
"swagger.json"
30+
],
31+
"autocompleteExtension": {},
32+
"useBackendForStorage": false,
33+
"backendThrottle": 200,
34+
"keyPressDebounceTime": 200,
35+
"backendEndpoint": "/editor/spec",
36+
"useYamlBackend": false,
37+
"disableFileMenu": false,
38+
"headerBranding": false,
39+
"disableNewUserIntro": false,
40+
"enableTryIt": true,
41+
"brandingCssClass": "",
42+
"importProxyUrl": "https://cors-it.herokuapp.com/?url=",
43+
"pointerResolutionBasePath": null,
44+
"suggestionServiceBasePath": "http://smart-api.info/api/suggestion?field="
45+
46+
}

0 commit comments

Comments
 (0)