hoc_utils 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2c5ffdd1c418b3fad3c13814cbcda79bc0a05ac5
|
|
4
|
+
data.tar.gz: 3c0f72cdbdd0776dae481fbad0e863f48c2c5791
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2c8711c4eb5634bd8c3be08e6cfc11121c3b7fbca22b7cb4014bf1f6f72460a85742796b29350079563677b1ad1256a59efe66cf5c4ce9c5c955fd0c8c4d12b8
|
|
7
|
+
data.tar.gz: 82808971e499314b80c2000f366d3f62f2766bd899e9dce28c145d12df434ea0e0bfe1cae6f54fe0636cbbbd59b92ea18a76ce9d3bc916b0f448070d97521d49
|
|
@@ -10,7 +10,7 @@ describe 'House of Code API' do
|
|
|
10
10
|
parameter name: :all, in: :query, type: :boolean
|
|
11
11
|
parameter name: :page, in: :query, type: :integer
|
|
12
12
|
parameter name: :Authorization, in: :header, required: true, type: :string
|
|
13
|
-
<%= "parameter name: :#{singular_parent_name}_id, in: :path, required:true, type: integer" if is_nested? %>
|
|
13
|
+
<%= "parameter name: :#{singular_parent_name}_id, in: :path, required:true, type: :integer" if is_nested? %>
|
|
14
14
|
response '200', '<%= plural_table_name.camelize %>' do
|
|
15
15
|
schema '$ref' => '#/definitions/<%= plural_table_name %>'
|
|
16
16
|
run_test!
|
|
@@ -26,7 +26,7 @@ describe 'House of Code API' do
|
|
|
26
26
|
description 'Creates <%= singular_table_name %> with given input'
|
|
27
27
|
produces 'application/json'
|
|
28
28
|
consumes 'application/json'
|
|
29
|
-
<%= "parameter name: :#{singular_parent_name}_id, in: :path, required:true, type: integer" if is_nested? %>
|
|
29
|
+
<%= "parameter name: :#{singular_parent_name}_id, in: :path, required:true, type: :integer" if is_nested? %>
|
|
30
30
|
parameter name: :<%= singular_table_name %>, in: :body, schema: {
|
|
31
31
|
'$ref' => '#/definitions/<%= singular_table_name %>_input'
|
|
32
32
|
}
|
|
@@ -47,7 +47,7 @@ describe 'House of Code API' do
|
|
|
47
47
|
description 'Gets <%= singular_table_name %> with :id'
|
|
48
48
|
produces 'application/json'
|
|
49
49
|
consumes 'application/json'
|
|
50
|
-
<%= "parameter name: :#{singular_parent_name}_id, in: :path, required:true, type: integer" if is_nested? %>
|
|
50
|
+
<%= "parameter name: :#{singular_parent_name}_id, in: :path, required:true, type: :integer" if is_nested? %>
|
|
51
51
|
parameter name: :id, in: :path, type: :integer, required: true
|
|
52
52
|
parameter name: :Authorization, in: :header, required: true, type: :string
|
|
53
53
|
response '200', '<%= singular_table_name.camelize %>' do
|
|
@@ -65,7 +65,7 @@ describe 'House of Code API' do
|
|
|
65
65
|
description 'Updates <%= singular_table_name %> with :id'
|
|
66
66
|
produces 'application/json'
|
|
67
67
|
consumes 'application/json'
|
|
68
|
-
<%= "parameter name: :#{singular_parent_name}_id, in: :path, required:true, type: integer" if is_nested? %>
|
|
68
|
+
<%= "parameter name: :#{singular_parent_name}_id, in: :path, required:true, type: :integer" if is_nested? %>
|
|
69
69
|
parameter name: :id, in: :path, type: :integer, required: true
|
|
70
70
|
parameter name: :Authorization, in: :header, required: true, type: :string
|
|
71
71
|
response '200', '<%= singular_table_name.camelize %>' do
|
|
@@ -83,7 +83,7 @@ describe 'House of Code API' do
|
|
|
83
83
|
description 'Deletes <%= singular_table_name %> with :id'
|
|
84
84
|
produces 'application/json'
|
|
85
85
|
consumes 'application/json'
|
|
86
|
-
<%= "parameter name: :#{singular_parent_name}_id, in: :path, required:true, type: integer" if is_nested? %>
|
|
86
|
+
<%= "parameter name: :#{singular_parent_name}_id, in: :path, required:true, type: :integer" if is_nested? %>
|
|
87
87
|
parameter name: :Authorization, in: :header, required: true, type: :string
|
|
88
88
|
parameter name: :id, in: :path, type: :integer, required: true
|
|
89
89
|
response '200', '<%= singular_table_name.camelize %> deleted' do
|
data/lib/hoc_utils/version.rb
CHANGED