This file contains hidden or 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
| <h1>Documentation</h1> | |
| <p>Use our live documentation to learn about Hello World API</p> | |
| {% active_docs version: "2.0" services: "SERVICE_NAME" %} | |
| <script type="text/javascript"> | |
| $(function () { | |
| {% comment %} | |
| // you have access to swaggerUi.options object to customize its behaviour |
This file contains hidden or 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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
This file contains hidden or 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
| <!-- if we are inside '/documentation' URL --> | |
| <li class="{% if request.request_uri contains "/documentation" %}active{% endif %}"><!-- add the active class to the menu item --> | |
| <a href="/documentation">Documentation</a> | |
| </li> |
This file contains hidden or 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
| curl -X POST -d "provider_key=YOUR_PROVIDER_KEY&username=USERNAME&expires_in=60" https://YOUR_ADMIN_PORTAL.3scale.net/admin/api/sso_tokens.xml |
This file contains hidden or 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
| <a href="{{ urls.signup }}?{{ service | to_param }}">Signup to {{ service.name }}</a> |
This file contains hidden or 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
| #three-scale .dashboard_bubble |
This file contains hidden or 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
| GET /v1/words/{word}.json?app_id={app_id}&app_key={app_key} | |
| POST /v1/words/{word}.json?value={value}&app_id={app_id}&app_key={app_key} | |
| GET /v1/sentence/{sentence}.json?app_id={app_id}&app_key={app_key} |
This file contains hidden or 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
| <script src="/active_docs/application.js" ></script> | |
| <link href="/active_docs/application.css" media="screen" rel="stylesheet" /> | |
| <div class='api-docs-wrap'></div> | |
| <script> | |
| $(function(){ ThreeScale.APIDocs.init([]); }); | |
| </script> |
This file contains hidden or 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
| X-3scale-matched-rules: /v1/word/{word}.json, /v1 | |
| X-3scale-credentials: app_key=APP_KEY&app_id=APP_ID | |
| X-3scale-usage: usage[version_1]=1&usage[word]=1 |
This file contains hidden or 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
| sudo /opt/openresty/nginx/sbin/nginx -p /opt/openresty/nginx/ -c /opt/openresty/nginx/conf/YOUR-CONFIG-FILE.conf |