Skip to content

Commit

Permalink
added some annotated screenshots for API Console section
Browse files Browse the repository at this point in the history
  • Loading branch information
dobrych committed Apr 26, 2016
1 parent c649a1d commit f3bce71
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 0 deletions.
Binary file added source/images/API-Console-execute-query.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/images/API-Console-preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/images/API-Console-results.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions source/includes/_rest-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,16 @@ request(options, function (error, response, body) {
</tbody>
</table>

## API Console
[API Console](http://api.planetos.com/console/) provides simple UI for building API query interactively.
It has short descriptions of query parameters and output JSON schema.
If the user enters his personal API key into an appropriate query field, API Console allows to execute that query and see results.

<a href="images/API-Console-preview.png" data-featherlight><img src="images/API-Console-preview.png" alt="API Console"/></a>

<a href="images/API-Console-execute-query.png" data-featherlight><img src="images/API-Console-execute-query.png" alt="API Console"/></a>

<a href="images/API-Console-results.png" data-featherlight><img src="images/API-Console-results.png" alt="API Console"/></a>

## Rate Limits
The REST API is rate limited to **500 calls per day**.
Expand Down
8 changes: 8 additions & 0 deletions source/javascripts/lib/featherlight.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions source/layouts/layout.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ under the License.
<%= Rouge::Themes::Base16::Monokai.render(:scope => '.highlight') %>
</style>
<%= stylesheet_link_tag :screen, media: :screen %>
<%= stylesheet_link_tag :featherlight, media: :screen %>
<%= stylesheet_link_tag :custom, media: :screen %>
<%= stylesheet_link_tag :print, media: :print %>
<% if current_page.data.search %>
Expand All @@ -35,6 +36,7 @@ under the License.
<% end %>
<%= javascript_include_tag "apikey" %>
<%= javascript_include_tag "lib/featherlight" %>

</head>

Expand Down
8 changes: 8 additions & 0 deletions source/stylesheets/featherlight.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f3bce71

Please sign in to comment.