apitome 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/apitome/application.css +22 -7
  3. data/app/controllers/apitome/docs_controller.rb +5 -1
  4. data/app/views/apitome/docs/_all_examples.html.erb +1 -1
  5. data/app/views/apitome/docs/_body.html.erb +1 -1
  6. data/app/views/apitome/docs/_curl.html.erb +1 -1
  7. data/app/views/apitome/docs/_example.html.erb +4 -3
  8. data/app/views/apitome/docs/_headers.html.erb +1 -1
  9. data/app/views/apitome/docs/_navigation.html.erb +2 -2
  10. data/app/views/apitome/docs/_params.html.erb +1 -1
  11. data/app/views/apitome/docs/_query.html.erb +1 -1
  12. data/app/views/apitome/docs/_response_fields.html.erb +27 -0
  13. data/app/views/apitome/docs/_route.html.erb +1 -1
  14. data/app/views/apitome/docs/_status.html.erb +1 -1
  15. data/app/views/apitome/docs/show.html.erb +1 -1
  16. data/app/views/layouts/apitome/application.html.erb +1 -0
  17. data/config/locales/en.yml +12 -0
  18. data/config/locales/es.yml +11 -0
  19. data/lib/apitome.rb +1 -1
  20. data/lib/apitome/configuration.rb +4 -0
  21. data/lib/apitome/engine.rb +2 -0
  22. data/lib/apitome/version.rb +1 -1
  23. data/lib/generators/apitome/install/templates/initializer.rb +3 -3
  24. metadata +11 -66
  25. data/spec/dummy/doc/api/access_tokens/generating_an_access_token.json +0 -47
  26. data/spec/dummy/doc/api/alerts/listing_alert_types.json +0 -33
  27. data/spec/dummy/doc/api/alerts/listing_alerts.json +0 -52
  28. data/spec/dummy/doc/api/index.json +0 -29
  29. data/spec/dummy/log/development.log +0 -18290
  30. data/spec/dummy/tmp/cache/assets/development/sprockets/038ff9775f572c3dfc1a380247c59890 +0 -0
  31. data/spec/dummy/tmp/cache/assets/development/sprockets/03fdbedf7c517a2e1feda524c52a652a +0 -0
  32. data/spec/dummy/tmp/cache/assets/development/sprockets/07b6695ed44671a8d213823bc763b378 +0 -0
  33. data/spec/dummy/tmp/cache/assets/development/sprockets/0f10ed0a447d44a80afcc427e858ddf1 +0 -0
  34. data/spec/dummy/tmp/cache/assets/development/sprockets/3c0d7839d05fa6264e540e4612e76d8e +0 -0
  35. data/spec/dummy/tmp/cache/assets/development/sprockets/51da1b3982537bb7f98b971e3f9c45f1 +0 -0
  36. data/spec/dummy/tmp/cache/assets/development/sprockets/53ba3c64ee4d340ffd21feaab8cc579a +0 -0
  37. data/spec/dummy/tmp/cache/assets/development/sprockets/54ddec13d8230a77be44f49bba9ab063 +0 -0
  38. data/spec/dummy/tmp/cache/assets/development/sprockets/82a9467461d6cbd74f0c38002037d366 +0 -0
  39. data/spec/dummy/tmp/cache/assets/development/sprockets/82b46b5876ec191ffb4ee1f73b9037cf +0 -0
  40. data/spec/dummy/tmp/cache/assets/development/sprockets/833c936b0961f9bc9f6821682b662c28 +0 -0
  41. data/spec/dummy/tmp/cache/assets/development/sprockets/86d22f0e7f750dbdf5b602b99e7c51c8 +0 -0
  42. data/spec/dummy/tmp/cache/assets/development/sprockets/898d7a0610dc79a7141e7b570b77a951 +0 -0
  43. data/spec/dummy/tmp/cache/assets/development/sprockets/8eb01b8f553b48d4712bc6df728f05ed +0 -0
  44. data/spec/dummy/tmp/cache/assets/development/sprockets/98be05ccb93e3f09cd213ad66be4afd5 +0 -0
  45. data/spec/dummy/tmp/cache/assets/development/sprockets/a4636c23002ad75a90567e067a4a87b2 +0 -0
  46. data/spec/dummy/tmp/cache/assets/development/sprockets/a47d2ddd9c0e1b87d20a911bb1c92651 +0 -0
  47. data/spec/dummy/tmp/cache/assets/development/sprockets/a7dbf6dc1b06132961af53b0dc4bd187 +0 -0
  48. data/spec/dummy/tmp/cache/assets/development/sprockets/b7fc26490932e9ef364d72f46116f29a +0 -0
  49. data/spec/dummy/tmp/cache/assets/development/sprockets/d9052716353aa1cde34614ee79e75fc2 +0 -0
  50. data/spec/dummy/tmp/cache/assets/development/sprockets/dab2b969e1e0d90b3b2325566486eca9 +0 -0
  51. data/spec/dummy/tmp/cache/assets/development/sprockets/dfd8cd5b3aa5e4d8e14f8b26118e94f3 +0 -0
  52. data/spec/dummy/tmp/cache/assets/development/sprockets/e71d75c9c50c9552b2c6a42957e853fd +0 -0
  53. data/spec/dummy/tmp/cache/assets/development/sprockets/fa138ab5e008fb2d4c75be6c6558677b +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a353a3202331bc578b1953eb57e5487af66e7f74
4
- data.tar.gz: 43208184eb1f9fb13e24b2f150103e558f44ac55
3
+ metadata.gz: a1e1b44d0fcdb63bafd524f03297c31f51c4b523
4
+ data.tar.gz: f7ed3657e3e285f7aaae171fcf0337e3052108a2
5
5
  SHA512:
6
- metadata.gz: 7042fbafc30cdae94c57f1ed70481a4616333e6d09cdba777a662182fc4fd733582379b295dbfae540ba2754c5130ed899d32dbad0c24e71d197159aabaf50a3
7
- data.tar.gz: 5ef301b2e922b7882c849dd26c98a39de676b93c5e3c8eac1b58bb49a942a06c9e4eb5b98514a63e40f87ac09f6e15a6bf6a23eac3991e6a1de1045c8b07bafd
6
+ metadata.gz: f57528a4c1e0488e6a9b546f1cd99212fd889f082642cd6eb2a7744cad4c8526536d2f9a5d2325cbafbc840058f351845eaa1a6ce316527b33e561ea81e0e3d5
7
+ data.tar.gz: 3fe1abfa64a4fc598312173ff16702b8d2adbbab1959458322a754cf20fee6fd3462d8165bb33b285881e319659abe6787ce7a70bb037231183a091c6c18fd40
@@ -1,6 +1,5 @@
1
1
  /*
2
2
  *= require apitome/bootstrap.min
3
- *= require apitome/highlight_themes/default
4
3
  */
5
4
 
6
5
  body {
@@ -10,7 +9,7 @@ body {
10
9
 
11
10
  h1,
12
11
  h2 {
13
- margin-top: 30px;
12
+ margin-top: 20px;
14
13
  }
15
14
  pre {
16
15
  background: #fcfbf9;
@@ -80,12 +79,28 @@ pre code {
80
79
  font-size: 90%;
81
80
  }
82
81
 
83
- body.single-page .docs-section section.readme article {
84
- margin-top: -50px;
85
- margin-bottom: -20px;
82
+ body.single-page .docs-section > section {
83
+ padding-top: 20px;
84
+ padding-bottom: 10px;
85
+ border-bottom: 1px solid #eee;
86
86
  }
87
- body.single-page .docs-section section article {
88
- padding-top: 50px;
87
+ body.single-page .docs-section > section h1 {
88
+ padding-top: 25px;
89
+ margin-bottom: -45px;
90
+ }
91
+ body.single-page .docs-section > section article {
92
+ padding-top: 60px;
93
+ }
94
+
95
+ body.single-page .docs-section > section.readme {
96
+ padding-top: 0;
97
+ }
98
+ body.single-page .docs-section > section.readme h1 {
99
+ padding-top: 0;
100
+ margin-bottom: 0;
101
+ }
102
+ body.single-page .docs-section > section.readme article {
103
+ margin-top: -52px;
89
104
  }
90
105
 
91
106
  @media screen and (min-width: 992px) {
@@ -32,7 +32,11 @@ class Apitome::DocsController < ActionController::Base
32
32
 
33
33
  def formatted_readme
34
34
  file = Apitome.configuration.root.join(Apitome.configuration.doc_path, Apitome.configuration.readme)
35
- GitHub::Markdown.render_gfm(file_for(file))
35
+ if defined?(GitHub::Markdown)
36
+ GitHub::Markdown.render_gfm(file_for(file))
37
+ else
38
+ Kramdown::Document.new(file_for(file)).to_html
39
+ end
36
40
  end
37
41
 
38
42
  def formatted_body(body, type)
@@ -1,6 +1,6 @@
1
1
  <% resources.each do |resource| %>
2
2
  <section class="example" id="<%= id_for(resource['name']) %>">
3
- <h2 class="resource-name"><%= resource['name'] %></h2>
3
+ <h1 class="resource-name"><%= resource['name'] %></h1>
4
4
  <% resource['examples'].each do |example| %>
5
5
  <article id="<%= id_for(example['link'].gsub('.json', '')) %>">
6
6
  <%= render partial: 'example', locals: { example: set_example(example['link'].gsub('.json', '')) } %>
@@ -1,4 +1,4 @@
1
1
  <section class="body">
2
- <h4>Body</h4>
2
+ <h4><%= t(:body) %></h4>
3
3
  <pre><code class="<%= type %>"><%= formatted_body(body, type) %></code></pre>
4
4
  </section>
@@ -1,4 +1,4 @@
1
1
  <section class="curl">
2
- <h4>cURL</h4>
2
+ <h4><%= t(:curl) %></h4>
3
3
  <pre><%= request['curl'] %></pre>
4
4
  </section>
@@ -1,11 +1,11 @@
1
- <h3><%= example['description'] %></h3>
1
+ <h2><%= example['description'] %></h2>
2
2
 
3
3
  <%= render partial: 'apitome/docs/explanation', locals: {explaination: example['explanation']} if example['explanation'] %>
4
4
  <%= render partial: 'apitome/docs/params', locals: {params: example['parameters']} if example['parameters'].size > 0 %>
5
5
 
6
6
  <% example['requests'].each_with_index do |request, index| %>
7
7
  <div id="<%= "request-#{index}" %>">
8
- <h3>Request</h3>
8
+ <h3><%= t(:request) %></h3>
9
9
  <div class="request">
10
10
  <%= render partial: 'apitome/docs/route', locals: {request: request, index: index} %>
11
11
  <%= render partial: 'apitome/docs/headers', locals: {request: request, index: index, headers: request['request_headers']} %>
@@ -14,8 +14,9 @@
14
14
  <%= render partial: 'apitome/docs/curl', locals: {request: request, index: index} if request['curl'] %>
15
15
  </div>
16
16
 
17
- <h3>Response</h3>
17
+ <h3><%= t(:response) %></h3>
18
18
  <div class="response">
19
+ <%= render partial: 'apitome/docs/response_fields', locals: {params: example['response_fields']} if example['response_fields'].size > 0 %>
19
20
  <%= render partial: 'apitome/docs/status', locals: {request: request, index: index} %>
20
21
  <%= render partial: 'apitome/docs/headers', locals: {request: request, index: index, headers: request['response_headers']} %>
21
22
  <%= render partial: 'apitome/docs/body', locals: {request: request, index: index, body: request['response_body'], type: request['response_content_type']} if request['response_body'] %>
@@ -1,4 +1,4 @@
1
1
  <section class="headers">
2
- <h4>Headers</h4>
2
+ <h4><%= t(:headers) %></h4>
3
3
  <pre><code class="http"><%= headers.map{ |k,v| "#{k}: #{v}" }.join("\n") %></code></pre>
4
4
  </section>
@@ -1,9 +1,9 @@
1
1
  <ul class="nav sidenav">
2
2
  <li>
3
3
  <% if Apitome.configuration.single_page %>
4
- <a href="#readme">README</a>
4
+ <a href="#readme"><%= t(:readme) %></a>
5
5
  <% else %>
6
- <a href="<%= Apitome.configuration.mount_at %>">README</a>
6
+ <a href="<%= Apitome.configuration.mount_at %>"><%= t(:readme) %></a>
7
7
  <% end %>
8
8
  </li>
9
9
  <% resources.each do |resource| %>
@@ -1,5 +1,5 @@
1
1
  <section class="params">
2
- <h3>Parameters</h3>
2
+ <h3><%= t(:parameters) %></h3>
3
3
  <div class="table-responsive">
4
4
  <table class="table table-bordered">
5
5
  <tr>
@@ -1,4 +1,4 @@
1
1
  <section class="query-parameters">
2
- <h4>Query Parameters</h4>
2
+ <h4><%= t(:query_parameters) %></h4>
3
3
  <pre><%= request['request_query_parameters'].map{ |k,v| "#{k}=#{v}" }.join("\n") %></pre>
4
4
  </section>
@@ -0,0 +1,27 @@
1
+ <section class="params">
2
+ <h3><%= t(:response_fields) %></h3>
3
+ <div class="table-responsive">
4
+ <table class="table table-bordered">
5
+ <tr>
6
+ <% param_headers(params).each do |title| %>
7
+ <th><%= title %></th>
8
+ <% end %>
9
+ </tr>
10
+ <% params.each do |param| %>
11
+ <tr>
12
+ <td class="name">
13
+ <% if param['scope'] %>
14
+ <%= "#{param['scope']}[#{param['name']}]" %>
15
+ <% else %>
16
+ <%= param['name'] %>
17
+ <% end %>
18
+ </td>
19
+ <td class="description"><%= param['description'] %></td>
20
+ <% param_extras(params).each do |extra| %>
21
+ <td class="extra"><%= param[extra] %></td>
22
+ <% end %>
23
+ </tr>
24
+ <% end %>
25
+ </table>
26
+ </div>
27
+ </section>
@@ -1,4 +1,4 @@
1
1
  <section class="route">
2
- <h4>Route</h4>
2
+ <h4><%= t(:route) %></h4>
3
3
  <pre><%= "#{request['request_method']} #{request['request_path']}" %></pre>
4
4
  </section>
@@ -1,4 +1,4 @@
1
1
  <section class="status">
2
- <h4>Status</h4>
2
+ <h4><%= t(:status) %></h4>
3
3
  <pre><code class="http"><%= request['response_status'] %></code></pre>
4
4
  </section>
@@ -1,2 +1,2 @@
1
- <h2 class="resource-name"><%= example['resource'] %></h2>
1
+ <h1 class="resource-name"><%= example['resource'] %></h1>
2
2
  <%= render 'example' %>
@@ -3,6 +3,7 @@
3
3
  <head>
4
4
  <title><%= Apitome.configuration.title %></title>
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <%= stylesheet_link_tag Apitome.configuration.code_theme_url, media: 'all' %>
6
7
  <%= stylesheet_link_tag Apitome.configuration.css_override || 'apitome/application', media: 'all' %>
7
8
  <%= javascript_include_tag Apitome.configuration.js_override || 'apitome/application' %>
8
9
  </head>
@@ -0,0 +1,12 @@
1
+ en:
2
+ body: Body
3
+ curl: cURL
4
+ headers: Headers
5
+ parameters: Parameters
6
+ query_parameters: Query Parameters
7
+ readme: README
8
+ request: Request
9
+ response: Response
10
+ response_fields: Response Fields
11
+ route: Route
12
+ status: Status
@@ -0,0 +1,11 @@
1
+ es:
2
+ body: Cuerpo
3
+ curl: cURL
4
+ headers: Encabezados
5
+ parameters: Parametros
6
+ query_parameters: Parámetros de la consulta
7
+ readme: LEEME
8
+ request: Solicitud
9
+ response: Respuesta
10
+ route: Ruta
11
+ status: Estado
@@ -4,4 +4,4 @@ require 'apitome/configuration'
4
4
 
5
5
  require 'apitome/engine'
6
6
 
7
- require 'github/markdown'
7
+ require 'kramdown'
@@ -19,6 +19,10 @@ module Apitome
19
19
  def self.root=(path)
20
20
  @@root = Pathname.new(path.to_s) if path.present?
21
21
  end
22
+
23
+ def self.code_theme_url
24
+ "apitome/highlight_themes/#{@@code_theme}"
25
+ end
22
26
  end
23
27
 
24
28
  mattr_accessor :configuration
@@ -2,6 +2,8 @@ module Apitome
2
2
  class Engine < ::Rails::Engine
3
3
  isolate_namespace Apitome
4
4
 
5
+ config.assets.precompile += %w( apitome/*.css apitome/*.js )
6
+
5
7
  initializer :assets, group: :all do |app|
6
8
  # default the root if it's not set
7
9
  Apitome.configuration.root ||= app.root
@@ -1,3 +1,3 @@
1
1
  module Apitome
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -1,9 +1,9 @@
1
1
  Apitome.setup do |config|
2
2
 
3
- # This determines where the Apitome routes will be mounted. Changing this to "/api/documentation" for instance would
3
+ # This determines where the Apitome routes will be mounted. Changing this to '/api/documentation' for instance would
4
4
  # allow you to browse to http://localhost:3000/api/documentation to see your api documentation. Set to nil and mount
5
5
  # it yourself if you need to.
6
- config.mount_at = "/api/docs"
6
+ config.mount_at = '/api/docs'
7
7
 
8
8
  # This defaults to Rails.root if left nil. If you're providing documentation for an engine using a dummy application
9
9
  # it can be useful to set this to your engines root.. E.g. Application::Engine.root
@@ -33,7 +33,7 @@ Apitome.setup do |config|
33
33
  # override, but if you want to override it entirely you can do so.
34
34
  config.js_override = nil
35
35
 
36
- # You can provide a "README" style markdown file for the documentation, which is a useful place to include general
36
+ # You can provide a 'README' style markdown file for the documentation, which is a useful place to include general
37
37
  # information. This path is relative to your doc_path configuration.
38
38
  config.readme = '../api.md'
39
39
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apitome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - jejacks0n
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-14 00:00:00.000000000 Z
11
+ date: 2014-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -45,19 +45,19 @@ dependencies:
45
45
  - !ruby/object:Gem::Version
46
46
  version: '0'
47
47
  - !ruby/object:Gem::Dependency
48
- name: github-markdown
48
+ name: kramdown
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - ">="
51
+ - - '='
52
52
  - !ruby/object:Gem::Version
53
- version: '0'
53
+ version: 1.3.3
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - ">="
58
+ - - '='
59
59
  - !ruby/object:Gem::Version
60
- version: '0'
60
+ version: 1.3.3
61
61
  description: API documentation renderer for Rails using RSpec API Documentation JSON
62
62
  output
63
63
  email:
@@ -83,11 +83,14 @@ files:
83
83
  - app/views/apitome/docs/_navigation.html.erb
84
84
  - app/views/apitome/docs/_params.html.erb
85
85
  - app/views/apitome/docs/_query.html.erb
86
+ - app/views/apitome/docs/_response_fields.html.erb
86
87
  - app/views/apitome/docs/_route.html.erb
87
88
  - app/views/apitome/docs/_status.html.erb
88
89
  - app/views/apitome/docs/index.html.erb
89
90
  - app/views/apitome/docs/show.html.erb
90
91
  - app/views/layouts/apitome/application.html.erb
92
+ - config/locales/en.yml
93
+ - config/locales/es.yml
91
94
  - config/routes.rb
92
95
  - lib/apitome.rb
93
96
  - lib/apitome/configuration.rb
@@ -110,37 +113,8 @@ files:
110
113
  - spec/dummy/config/initializers/apitome.rb
111
114
  - spec/dummy/config/routes.rb
112
115
  - spec/dummy/doc/api.md
113
- - spec/dummy/doc/api/access_tokens/generating_an_access_token.json
114
- - spec/dummy/doc/api/alerts/listing_alert_types.json
115
- - spec/dummy/doc/api/alerts/listing_alerts.json
116
- - spec/dummy/doc/api/index.json
117
- - spec/dummy/log/development.log
118
116
  - spec/dummy/public/favicon.ico
119
117
  - spec/dummy/script/rails
120
- - spec/dummy/tmp/cache/assets/development/sprockets/038ff9775f572c3dfc1a380247c59890
121
- - spec/dummy/tmp/cache/assets/development/sprockets/03fdbedf7c517a2e1feda524c52a652a
122
- - spec/dummy/tmp/cache/assets/development/sprockets/07b6695ed44671a8d213823bc763b378
123
- - spec/dummy/tmp/cache/assets/development/sprockets/0f10ed0a447d44a80afcc427e858ddf1
124
- - spec/dummy/tmp/cache/assets/development/sprockets/3c0d7839d05fa6264e540e4612e76d8e
125
- - spec/dummy/tmp/cache/assets/development/sprockets/51da1b3982537bb7f98b971e3f9c45f1
126
- - spec/dummy/tmp/cache/assets/development/sprockets/53ba3c64ee4d340ffd21feaab8cc579a
127
- - spec/dummy/tmp/cache/assets/development/sprockets/54ddec13d8230a77be44f49bba9ab063
128
- - spec/dummy/tmp/cache/assets/development/sprockets/82a9467461d6cbd74f0c38002037d366
129
- - spec/dummy/tmp/cache/assets/development/sprockets/82b46b5876ec191ffb4ee1f73b9037cf
130
- - spec/dummy/tmp/cache/assets/development/sprockets/833c936b0961f9bc9f6821682b662c28
131
- - spec/dummy/tmp/cache/assets/development/sprockets/86d22f0e7f750dbdf5b602b99e7c51c8
132
- - spec/dummy/tmp/cache/assets/development/sprockets/898d7a0610dc79a7141e7b570b77a951
133
- - spec/dummy/tmp/cache/assets/development/sprockets/8eb01b8f553b48d4712bc6df728f05ed
134
- - spec/dummy/tmp/cache/assets/development/sprockets/98be05ccb93e3f09cd213ad66be4afd5
135
- - spec/dummy/tmp/cache/assets/development/sprockets/a4636c23002ad75a90567e067a4a87b2
136
- - spec/dummy/tmp/cache/assets/development/sprockets/a47d2ddd9c0e1b87d20a911bb1c92651
137
- - spec/dummy/tmp/cache/assets/development/sprockets/a7dbf6dc1b06132961af53b0dc4bd187
138
- - spec/dummy/tmp/cache/assets/development/sprockets/b7fc26490932e9ef364d72f46116f29a
139
- - spec/dummy/tmp/cache/assets/development/sprockets/d9052716353aa1cde34614ee79e75fc2
140
- - spec/dummy/tmp/cache/assets/development/sprockets/dab2b969e1e0d90b3b2325566486eca9
141
- - spec/dummy/tmp/cache/assets/development/sprockets/dfd8cd5b3aa5e4d8e14f8b26118e94f3
142
- - spec/dummy/tmp/cache/assets/development/sprockets/e71d75c9c50c9552b2c6a42957e853fd
143
- - spec/dummy/tmp/cache/assets/development/sprockets/fa138ab5e008fb2d4c75be6c6558677b
144
118
  - vendor/assets/javascripts/apitome/bootstrap.min.LICENSE
145
119
  - vendor/assets/javascripts/apitome/bootstrap.min.js
146
120
  - vendor/assets/javascripts/apitome/highlight.min.LICENSE
@@ -195,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
169
  version: '0'
196
170
  requirements: []
197
171
  rubyforge_project:
198
- rubygems_version: 2.2.0
172
+ rubygems_version: 2.2.2
199
173
  signing_key:
200
174
  specification_version: 4
201
175
  summary: 'Apitome: /iˈpitəmē/ An API documentation reader RSpec API Documentation'
@@ -210,36 +184,7 @@ test_files:
210
184
  - spec/dummy/config/initializers/apitome.rb
211
185
  - spec/dummy/config/routes.rb
212
186
  - spec/dummy/config.ru
213
- - spec/dummy/doc/api/access_tokens/generating_an_access_token.json
214
- - spec/dummy/doc/api/alerts/listing_alert_types.json
215
- - spec/dummy/doc/api/alerts/listing_alerts.json
216
- - spec/dummy/doc/api/index.json
217
187
  - spec/dummy/doc/api.md
218
- - spec/dummy/log/development.log
219
188
  - spec/dummy/public/favicon.ico
220
189
  - spec/dummy/Rakefile
221
190
  - spec/dummy/script/rails
222
- - spec/dummy/tmp/cache/assets/development/sprockets/038ff9775f572c3dfc1a380247c59890
223
- - spec/dummy/tmp/cache/assets/development/sprockets/03fdbedf7c517a2e1feda524c52a652a
224
- - spec/dummy/tmp/cache/assets/development/sprockets/07b6695ed44671a8d213823bc763b378
225
- - spec/dummy/tmp/cache/assets/development/sprockets/0f10ed0a447d44a80afcc427e858ddf1
226
- - spec/dummy/tmp/cache/assets/development/sprockets/3c0d7839d05fa6264e540e4612e76d8e
227
- - spec/dummy/tmp/cache/assets/development/sprockets/51da1b3982537bb7f98b971e3f9c45f1
228
- - spec/dummy/tmp/cache/assets/development/sprockets/53ba3c64ee4d340ffd21feaab8cc579a
229
- - spec/dummy/tmp/cache/assets/development/sprockets/54ddec13d8230a77be44f49bba9ab063
230
- - spec/dummy/tmp/cache/assets/development/sprockets/82a9467461d6cbd74f0c38002037d366
231
- - spec/dummy/tmp/cache/assets/development/sprockets/82b46b5876ec191ffb4ee1f73b9037cf
232
- - spec/dummy/tmp/cache/assets/development/sprockets/833c936b0961f9bc9f6821682b662c28
233
- - spec/dummy/tmp/cache/assets/development/sprockets/86d22f0e7f750dbdf5b602b99e7c51c8
234
- - spec/dummy/tmp/cache/assets/development/sprockets/898d7a0610dc79a7141e7b570b77a951
235
- - spec/dummy/tmp/cache/assets/development/sprockets/8eb01b8f553b48d4712bc6df728f05ed
236
- - spec/dummy/tmp/cache/assets/development/sprockets/98be05ccb93e3f09cd213ad66be4afd5
237
- - spec/dummy/tmp/cache/assets/development/sprockets/a4636c23002ad75a90567e067a4a87b2
238
- - spec/dummy/tmp/cache/assets/development/sprockets/a47d2ddd9c0e1b87d20a911bb1c92651
239
- - spec/dummy/tmp/cache/assets/development/sprockets/a7dbf6dc1b06132961af53b0dc4bd187
240
- - spec/dummy/tmp/cache/assets/development/sprockets/b7fc26490932e9ef364d72f46116f29a
241
- - spec/dummy/tmp/cache/assets/development/sprockets/d9052716353aa1cde34614ee79e75fc2
242
- - spec/dummy/tmp/cache/assets/development/sprockets/dab2b969e1e0d90b3b2325566486eca9
243
- - spec/dummy/tmp/cache/assets/development/sprockets/dfd8cd5b3aa5e4d8e14f8b26118e94f3
244
- - spec/dummy/tmp/cache/assets/development/sprockets/e71d75c9c50c9552b2c6a42957e853fd
245
- - spec/dummy/tmp/cache/assets/development/sprockets/fa138ab5e008fb2d4c75be6c6558677b
@@ -1,47 +0,0 @@
1
- {
2
- "resource": "Access Tokens",
3
- "http_method": "POST",
4
- "route": "/api/oauth/token.json",
5
- "description": "Generating an access token",
6
- "explanation": " Before any API requests can be fulfilled a valid oauth access token must be requested. This token is required to be provided in the Authorization header as <code>Bearer [access_token]</code> for all other API requests.<br/><br/>\n A Client ID and Secret Key will be issued for your specific client application which will be used to retrieve your token.<br/><br/>\n If an unknown or invalid token is provided to any API request, a 401 status is returned with additional messaging.<br/><br/>\n",
7
- "parameters": [
8
- {
9
- "required": true,
10
- "name": "client_id",
11
- "description": "Client ID (as provided)"
12
- },
13
- {
14
- "required": true,
15
- "name": "client_secret",
16
- "description": "Client Secret (as provided)"
17
- },
18
- {
19
- "required": true,
20
- "Expected": "client_credentials",
21
- "name": "grant_type",
22
- "description": "Grant Type"
23
- }
24
- ],
25
- "requests": [
26
- {
27
- "request_method": "POST",
28
- "request_path": "/api/oauth/token.json",
29
- "request_body": "{\"client_id\":\"ed76da6a68dda8c08cf047ba2bb6efc4b68954ce7c8cb7f697dab3e74848bf83\",\"client_secret\":\"882dc99d1971589ea74390be04d32a926d7c67e58ddb8683d92236bb9125381a\",\"grant_type\":\"client_credentials\"}",
30
- "request_headers": {
31
- "Content-Type": "application/json",
32
- "Accept": "application/json",
33
- "Host": "example.org",
34
- "Cookie": ""
35
- },
36
- "request_query_parameters": {
37
- },
38
- "request_content_type": "application/json",
39
- "response_status": 200,
40
- "response_status_text": "OK",
41
- "response_body": "{\"access_token\":\"684a867ac0faae326680cb642de78c0a097e6830350b8f47d2b8eed5338dcb21\",\"token_type\":\"bearer\",\"expires_in\":7200,\"refresh_token\":null,\"scope\":\"\"}",
42
- "response_headers": {"Content-Type":"application/json; charset=utf-8","Cache-Control":"no-store","Pragma":"no-cache","ETag":"\"990747d7d337812e5014c730d1c67922\"","X-Request-Id":"86f83f85-b0e3-4e40-8d41-859b9f4bf829","X-Runtime":"0.093011","Content-Length":"155"},
43
- "response_content_type": "application/json; charset=utf-8",
44
- "curl": null
45
- }
46
- ]
47
- }