openapi-rails 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7de2269c948f0ee5b643d6508f87551181bec70c
4
- data.tar.gz: 7b2f7b0279fa82108b3aafcaa7a52743991c5a90
3
+ metadata.gz: 04215cceee526a3cb07ce9e8dd82c372b9783dfa
4
+ data.tar.gz: dda8613714499f1fdb7566ac5ba31d0b6568a49f
5
5
  SHA512:
6
- metadata.gz: 344fd7b1b01c77d22bda310dd0ccbcc9719260e5b09e7e5a27cebbc68819b2f3c9e101b3a333045cfbb9ff1e5923f6cb4e4dbb7f09160861cc2130a98e48d843
7
- data.tar.gz: 658ff23bab20e35dbdfe7e128b014abf73818d8349192f3ded01539315e189ca8aaf798279f407fba5f294e70312d65629d7b6c8cb62c797d0ac13095bbb6bfd
6
+ metadata.gz: fac5762cc61ddf457b29c4533b1e8f409f74d614b3d5e9da57c77f3fd6c4552e77d47f301782d2c3f5ea21da2971a88fd4c372f1c01b8f10bb5a5e09df038cc4
7
+ data.tar.gz: 3a3302a4499378929d39ea351bba0a7c92149ffaac2e772ef908bbda9c87199ad8c04284fd0dea34a1e338dc8bc279098de6aab6f782a09dc33c4ee46de0ac3e
data/README.md CHANGED
@@ -122,7 +122,7 @@ documentation.
122
122
 
123
123
  Specification for custom methods should be added manually. Check out
124
124
  [Swagger Blocks](https://github.com/fotinakis/swagger-blocks) gem or
125
- [specification builder](https://github.com/slate-studio/openapi-rails/blob/master/lib/openapi/mongoid/spec_builder.rb) code for the reference.
125
+ [specification builder](https://github.com/slate-studio/openapi-rails/blob/master/lib/openapi/mongoid/spec_builder.rb) code for DSL reference.
126
126
 
127
127
  Here is an example of custom method specification:
128
128
 
@@ -211,7 +211,7 @@ end
211
211
  Controllers with custom logic would be placed at `app/controllers/api/v1` and
212
212
  `app/controllers/api/v2` modules.
213
213
 
214
- ![OpenAPI Rails — Multiple versions demo](http://files.slatestudio.com/hJjg/openapi-rails-multiple-versions.png)
214
+ ![OpenAPI Rails — Multiple versions demo](https://d3vv6lp55qjaqc.cloudfront.net/items/3J200Q0m2m0V2m0Q3V2i/openapi-rails-multiple-versions.png)
215
215
 
216
216
 
217
217
  ## Contributors
@@ -1,8 +1,9 @@
1
+ # Be sure to restart your server when you modify this file.
1
2
  Openapi.configure do |config|
2
3
  config.apis = {
3
4
  default: {
4
5
  title: 'Default',
5
- description: '',
6
+ description: 'API configuration is in `config/initializers/openapi.rb`.',
6
7
  version: '1.0',
7
8
  base_path: '/api',
8
9
  controllers: []
@@ -239,6 +239,7 @@ module Openapi
239
239
  end
240
240
 
241
241
  response 200 do
242
+ key :description, 'Success'
242
243
  schema type: :array do
243
244
  items do
244
245
  key :'$ref', name
@@ -287,6 +288,7 @@ module Openapi
287
288
  end
288
289
 
289
290
  response 201 do
291
+ key :description, 'Success'
290
292
  schema do
291
293
  key :'$ref', name
292
294
  end
@@ -336,6 +338,7 @@ module Openapi
336
338
  end
337
339
 
338
340
  response 200 do
341
+ key :description, 'Success'
339
342
  schema do
340
343
  key :'$ref', name
341
344
  end
@@ -389,6 +392,7 @@ module Openapi
389
392
  end
390
393
 
391
394
  response 200 do
395
+ key :description, 'Success'
392
396
  schema do
393
397
  key :'$ref', name
394
398
  end
@@ -410,7 +414,7 @@ module Openapi
410
414
  end
411
415
 
412
416
  response 204 do
413
- key :description, "#{name} destroyed"
417
+ key :description, 'Success'
414
418
  end
415
419
  end
416
420
  end
@@ -1,3 +1,3 @@
1
1
  module Openapi
2
- VERSION = '0.3.1'.freeze
2
+ VERSION = '0.3.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openapi-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kravets
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-08-30 00:00:00.000000000 Z
12
+ date: 2016-09-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: swagger-blocks