apitome 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/apitome/application.css +22 -7
- data/app/controllers/apitome/docs_controller.rb +5 -1
- data/app/views/apitome/docs/_all_examples.html.erb +1 -1
- data/app/views/apitome/docs/_body.html.erb +1 -1
- data/app/views/apitome/docs/_curl.html.erb +1 -1
- data/app/views/apitome/docs/_example.html.erb +4 -3
- data/app/views/apitome/docs/_headers.html.erb +1 -1
- data/app/views/apitome/docs/_navigation.html.erb +2 -2
- data/app/views/apitome/docs/_params.html.erb +1 -1
- data/app/views/apitome/docs/_query.html.erb +1 -1
- data/app/views/apitome/docs/_response_fields.html.erb +27 -0
- data/app/views/apitome/docs/_route.html.erb +1 -1
- data/app/views/apitome/docs/_status.html.erb +1 -1
- data/app/views/apitome/docs/show.html.erb +1 -1
- data/app/views/layouts/apitome/application.html.erb +1 -0
- data/config/locales/en.yml +12 -0
- data/config/locales/es.yml +11 -0
- data/lib/apitome.rb +1 -1
- data/lib/apitome/configuration.rb +4 -0
- data/lib/apitome/engine.rb +2 -0
- data/lib/apitome/version.rb +1 -1
- data/lib/generators/apitome/install/templates/initializer.rb +3 -3
- metadata +11 -66
- data/spec/dummy/doc/api/access_tokens/generating_an_access_token.json +0 -47
- data/spec/dummy/doc/api/alerts/listing_alert_types.json +0 -33
- data/spec/dummy/doc/api/alerts/listing_alerts.json +0 -52
- data/spec/dummy/doc/api/index.json +0 -29
- data/spec/dummy/log/development.log +0 -18290
- data/spec/dummy/tmp/cache/assets/development/sprockets/038ff9775f572c3dfc1a380247c59890 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/03fdbedf7c517a2e1feda524c52a652a +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/07b6695ed44671a8d213823bc763b378 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/0f10ed0a447d44a80afcc427e858ddf1 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/3c0d7839d05fa6264e540e4612e76d8e +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/51da1b3982537bb7f98b971e3f9c45f1 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/53ba3c64ee4d340ffd21feaab8cc579a +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/54ddec13d8230a77be44f49bba9ab063 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/82a9467461d6cbd74f0c38002037d366 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/82b46b5876ec191ffb4ee1f73b9037cf +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/833c936b0961f9bc9f6821682b662c28 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/86d22f0e7f750dbdf5b602b99e7c51c8 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/898d7a0610dc79a7141e7b570b77a951 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/8eb01b8f553b48d4712bc6df728f05ed +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/98be05ccb93e3f09cd213ad66be4afd5 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/a4636c23002ad75a90567e067a4a87b2 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/a47d2ddd9c0e1b87d20a911bb1c92651 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/a7dbf6dc1b06132961af53b0dc4bd187 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/b7fc26490932e9ef364d72f46116f29a +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d9052716353aa1cde34614ee79e75fc2 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/dab2b969e1e0d90b3b2325566486eca9 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/dfd8cd5b3aa5e4d8e14f8b26118e94f3 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/e71d75c9c50c9552b2c6a42957e853fd +0 -0
- 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1e1b44d0fcdb63bafd524f03297c31f51c4b523
|
4
|
+
data.tar.gz: f7ed3657e3e285f7aaae171fcf0337e3052108a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
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
|
84
|
-
|
85
|
-
|
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
|
88
|
-
padding-top:
|
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
|
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
|
-
<
|
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,11 +1,11 @@
|
|
1
|
-
<
|
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
|
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
|
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,9 +1,9 @@
|
|
1
1
|
<ul class="nav sidenav">
|
2
2
|
<li>
|
3
3
|
<% if Apitome.configuration.single_page %>
|
4
|
-
<a href="#readme"
|
4
|
+
<a href="#readme"><%= t(:readme) %></a>
|
5
5
|
<% else %>
|
6
|
-
<a href="<%= Apitome.configuration.mount_at %>"
|
6
|
+
<a href="<%= Apitome.configuration.mount_at %>"><%= t(:readme) %></a>
|
7
7
|
<% end %>
|
8
8
|
</li>
|
9
9
|
<% resources.each do |resource| %>
|
@@ -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,2 +1,2 @@
|
|
1
|
-
<
|
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>
|
data/lib/apitome.rb
CHANGED
data/lib/apitome/engine.rb
CHANGED
data/lib/apitome/version.rb
CHANGED
@@ -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
|
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 =
|
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
|
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.
|
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-
|
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:
|
48
|
+
name: kramdown
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- -
|
51
|
+
- - '='
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
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:
|
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.
|
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
|
-
}
|