trogdir_api 0.2.0 → 0.2.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e718e085c241224b67d4ae83d769990fbcd0aa88
|
4
|
+
data.tar.gz: 9090142fec71fdb63f4f4665d74168186f5ee2e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 159c788383717a4f237283af435d7edd8bac9b9bfa65c4e98779a35321f789d3fc57c3c58a16661639e2f3af6c96f37f225e61afe9eb8ce970f97d87d4120c33
|
7
|
+
data.tar.gz: 7b38b14abb64e92dd9ff357421993d8c82c015912a5999d0352cacdee4b3aeb6bccad18a52b4d760071968f99283a81a14f65f135c7f5bb20b4cca3d86c86ed7
|
@@ -21,11 +21,11 @@ module Trogdir
|
|
21
21
|
params do
|
22
22
|
requires :type, type: Symbol, values: Address::TYPES
|
23
23
|
requires :street_1, type: String
|
24
|
-
optional :
|
24
|
+
optional :street_2, type: String
|
25
25
|
optional :city, type: String
|
26
26
|
optional :state, type: String
|
27
27
|
optional :zip, type: String
|
28
|
-
optional :
|
28
|
+
optional :country, type: String
|
29
29
|
end
|
30
30
|
post do
|
31
31
|
present @person.addresses.create!(clean_params(except: :person_id)), with: AddressEntity
|
@@ -35,11 +35,11 @@ module Trogdir
|
|
35
35
|
requires :address_id, type: String
|
36
36
|
optional :type, type: Symbol, values: Address::TYPES
|
37
37
|
optional :street_1, type: String
|
38
|
-
optional :
|
38
|
+
optional :street_2, type: String
|
39
39
|
optional :city, type: String
|
40
40
|
optional :state, type: String
|
41
41
|
optional :zip, type: String
|
42
|
-
optional :
|
42
|
+
optional :country, type: String
|
43
43
|
end
|
44
44
|
put ':address_id' do
|
45
45
|
@address.update_attributes! clean_params(except: [:person_id, :address_id])
|
@@ -21,8 +21,8 @@ module Trogdir
|
|
21
21
|
params do
|
22
22
|
requires :type, type: Symbol, values: Photo::TYPES
|
23
23
|
requires :url, type: String
|
24
|
-
|
25
|
-
|
24
|
+
requires :height, type: Integer
|
25
|
+
requires :width, type: Integer
|
26
26
|
end
|
27
27
|
post do
|
28
28
|
present @person.photos.create!(clean_params(except: :person_id)), with: PhotoEntity
|
data/lib/trogdir_api/version.rb
CHANGED