-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pushed the forked repo in the new repo
- Loading branch information
Shima Dastgheib
authored and
Shima Dastgheib
committed
May 15, 2017
1 parent
a3cdd81
commit cc559f8
Showing
223 changed files
with
58,373 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Page Not Found :(</title> | ||
<style> | ||
::-moz-selection { | ||
background: #b3d4fc; | ||
text-shadow: none; | ||
} | ||
|
||
::selection { | ||
background: #b3d4fc; | ||
text-shadow: none; | ||
} | ||
|
||
html { | ||
padding: 30px 10px; | ||
font-size: 20px; | ||
line-height: 1.4; | ||
color: #737373; | ||
background: #f0f0f0; | ||
-webkit-text-size-adjust: 100%; | ||
-ms-text-size-adjust: 100%; | ||
} | ||
|
||
html, | ||
input { | ||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | ||
} | ||
|
||
body { | ||
max-width: 500px; | ||
_width: 500px; | ||
padding: 30px 20px 50px; | ||
border: 1px solid #b3b3b3; | ||
border-radius: 4px; | ||
margin: 0 auto; | ||
box-shadow: 0 1px 10px #a7a7a7, inset 0 1px 0 #fff; | ||
background: #fcfcfc; | ||
} | ||
|
||
h1 { | ||
margin: 0 10px; | ||
font-size: 50px; | ||
text-align: center; | ||
} | ||
|
||
h1 span { | ||
color: #bbb; | ||
} | ||
|
||
h3 { | ||
margin: 1.5em 0 0.5em; | ||
} | ||
|
||
p { | ||
margin: 1em 0; | ||
} | ||
|
||
ul { | ||
padding: 0 0 0 40px; | ||
margin: 1em 0; | ||
} | ||
|
||
.container { | ||
max-width: 380px; | ||
_width: 380px; | ||
margin: 0 auto; | ||
} | ||
|
||
/* google search */ | ||
|
||
#goog-fixurl ul { | ||
list-style: none; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
#goog-fixurl form { | ||
margin: 0; | ||
} | ||
|
||
#goog-wm-qt, | ||
#goog-wm-sb { | ||
border: 1px solid #bbb; | ||
font-size: 16px; | ||
line-height: normal; | ||
vertical-align: top; | ||
color: #444; | ||
border-radius: 2px; | ||
} | ||
|
||
#goog-wm-qt { | ||
width: 220px; | ||
height: 20px; | ||
padding: 5px; | ||
margin: 5px 10px 0 0; | ||
box-shadow: inset 0 1px 1px #ccc; | ||
} | ||
|
||
#goog-wm-sb { | ||
display: inline-block; | ||
height: 32px; | ||
padding: 0 10px; | ||
margin: 5px 0 0; | ||
white-space: nowrap; | ||
cursor: pointer; | ||
background-color: #f5f5f5; | ||
background-image: -webkit-linear-gradient(rgba(255,255,255,0), #f1f1f1); | ||
background-image: -moz-linear-gradient(rgba(255,255,255,0), #f1f1f1); | ||
background-image: -ms-linear-gradient(rgba(255,255,255,0), #f1f1f1); | ||
background-image: -o-linear-gradient(rgba(255,255,255,0), #f1f1f1); | ||
-webkit-appearance: none; | ||
-moz-appearance: none; | ||
appearance: none; | ||
*overflow: visible; | ||
*display: inline; | ||
*zoom: 1; | ||
} | ||
|
||
#goog-wm-sb:hover, | ||
#goog-wm-sb:focus { | ||
border-color: #aaa; | ||
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); | ||
background-color: #f8f8f8; | ||
} | ||
|
||
#goog-wm-qt:hover, | ||
#goog-wm-qt:focus { | ||
border-color: #105cb6; | ||
outline: 0; | ||
color: #222; | ||
} | ||
|
||
input::-moz-focus-inner { | ||
padding: 0; | ||
border: 0; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<h1>Not found <span>:(</span></h1> | ||
<p>Sorry, but the page you were trying to view does not exist.</p> | ||
<p>It looks like this was the result of either:</p> | ||
<ul> | ||
<li>a mistyped address</li> | ||
<li>an out-of-date link</li> | ||
</ul> | ||
<script> | ||
var GOOG_FIXURL_LANG = (navigator.language || '').slice(0,2),GOOG_FIXURL_SITE = location.host; | ||
</script> | ||
<script src="//linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
editor.swagger.io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
### | ||
# swagger-editor - https://github.com/swagger-api/swagger-editor/ | ||
# | ||
# Run the swagger-editor service on port 8080 | ||
### | ||
|
||
FROM mhart/alpine-node | ||
|
||
RUN npm install -g http-server | ||
|
||
WORKDIR /editor | ||
ADD ./ /editor | ||
|
||
# The default port of the application | ||
EXPOSE 8080 | ||
|
||
CMD ["http-server", "--cors", "-p8080", "/editor"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# smartAPI Editor: A tool for semantic annotation of Web APIs | ||
|
||
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. | ||
|
||
**[LIVE DEMO](https://www.youtube.com/watch?v=EQpUEiOu1ng&t=2s)** | ||
|
||
[![Screenshot of the smartAPI Editor](docs/screenshot.png "Annotating your Web API with smartAPI Editor")]() | ||
|
||
smartAPI editor: | ||
* 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. | ||
|
||
* Lets you Save your API document into [smartAPI registry](http://smart-api.info/registry/). | ||
|
||
* Enhances auto-suggestion functionality for metadata *elements* by providing the element's conformance level (Required, Recommended, Optional). | ||
|
||
* 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. | ||
|
||
* Enables semantic annotation of *parameters* and *responses* of the API: | ||
* auto-suggests values for *parameters.parameterValueType* from [identifiers.org](http://identifiers.org/) along with their usage frequency by other APIs. | ||
* Integrates the editor with [smartAPI profiler](http://smart-api.info/profiler) which automatically annotates the *responses.responseDataType* of the API. | ||
|
||
|
||
#### Building From Source | ||
|
||
Make sure you have [Node.js](http://nodejs.org/) installed. | ||
Running the editor: | ||
|
||
```shell | ||
git clone https://github.com/WebsmartAPI/swagger-editor.git | ||
cd swagger-editor | ||
npm install | ||
chmod 755 scripts/nmchange.sh | ||
./scripts/nmchange.sh | ||
npm start | ||
``` | ||
Make sure you have [elasticsearch](https://www.elastic.co/guide/en/elasticsearch/reference/current/_installation.html) installed. | ||
Running elasticsearch: | ||
```shell | ||
./elasticsearch | ||
``` | ||
|
||
Running the Identifiers API ( an elasticsearch-based tornado app providing the identifiers from identifiers.org indexed using their names,synonyms, description, and URL) | ||
```shell | ||
cd identifiers | ||
make index | ||
make backend | ||
``` | ||
#### Documentations | ||
* [smartAPI Developer Guide](./docs/smartAPIdeveloper.md) | ||
* [smartAPI User Guide](./docs/smartAPIuser.md) | ||
|
||
#### Other Swagger Documentations | ||
* [Importing your Swagger document](./docs/import.md) | ||
* [Development Guide](./docs/development.md) | ||
* [Configuration Guide](./docs/config.md) | ||
* [Cross Origin Request(CORS) issues](docs/cors.md) | ||
|
||
[Contributing](./CONTRIBUTING.md) | ||
|
||
[LICENSE](./LICENSE) | ||
|
||
--- | ||
<img src="http://swagger.io/wp-content/uploads/2016/02/logo.jpg"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"codegen": { | ||
"servers": "http://generator.swagger.io/api/gen/servers", | ||
"clients": "http://generator.swagger.io/api/gen/clients", | ||
"server": "http://generator.swagger.io/api/gen/servers/{language}", | ||
"client": "http://generator.swagger.io/api/gen/clients/{language}" | ||
}, | ||
"analytics": { | ||
"google": { | ||
"id": "UA-51231036-1" | ||
} | ||
}, | ||
"disableCodeGen": false, | ||
"examplesFolder": "spec-files/", | ||
"editorOptions": { | ||
"theme": "ace/theme/atom_dark" | ||
}, | ||
"exampleFiles": [ | ||
"default.yaml", | ||
"heroku-pets.yaml", | ||
"minimal.yaml", | ||
"echo.yaml", | ||
"petstore_simple.yaml", | ||
"petstore_full.yaml", | ||
"basic-auth.yaml", | ||
"security.yaml", | ||
"instagram.yaml", | ||
"twitter.yaml", | ||
"swagger.json" | ||
], | ||
"autocompleteExtension": {}, | ||
"useBackendForStorage": false, | ||
"backendThrottle": 200, | ||
"keyPressDebounceTime": 200, | ||
"backendEndpoint": "/editor/spec", | ||
"useYamlBackend": false, | ||
"disableFileMenu": false, | ||
"headerBranding": false, | ||
"disableNewUserIntro": false, | ||
"enableTryIt": true, | ||
"brandingCssClass": "", | ||
"importProxyUrl": "https://cors-it.herokuapp.com/?url=", | ||
"pointerResolutionBasePath": null, | ||
"suggestionServiceBasePath": "http://smart-api.info/api/suggestion?field=" | ||
|
||
} |
Oops, something went wrong.