apicasso 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2050 @@
1
+  (0.2ms) BEGIN
2
+ Apicasso::Key Exists (1.7ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "9e149567877b46c0b7490235bbdd74b2"], ["LIMIT", 1]]
3
+ Apicasso::Key Create (3.0ms) INSERT INTO "apicasso_keys" ("scope", "token", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["scope", "{\"manage\":{\"used_model\":true}}"], ["token", "9e149567877b46c0b7490235bbdd74b2"], ["created_at", "2018-11-26 15:21:22.744307"], ["updated_at", "2018-11-26 15:21:22.744307"]]
4
+  (2.0ms) COMMIT
5
+  (0.1ms) BEGIN
6
+ Apicasso::Key Exists (0.3ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "fba34a23ac1641b38815098195806ea8"], ["LIMIT", 1]]
7
+ Apicasso::Key Create (0.3ms) INSERT INTO "apicasso_keys" ("scope", "token", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["scope", "{\"manage\":{\"used_model\":true}}"], ["token", "fba34a23ac1641b38815098195806ea8"], ["created_at", "2018-11-26 15:21:22.808400"], ["updated_at", "2018-11-26 15:21:22.808400"]]
8
+  (1.8ms) COMMIT
9
+  (3.1ms) SELECT COUNT(*) FROM "used_models"
10
+ UsedModel Load (0.7ms) SELECT "used_models".* FROM "used_models"
11
+  (0.1ms) BEGIN
12
+ Apicasso::Key Exists (0.3ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "1e7e1f1ab2944db1a8755e00e049ca24"], ["LIMIT", 1]]
13
+ Apicasso::Key Create (0.3ms) INSERT INTO "apicasso_keys" ("scope", "token", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["scope", "{\"manage\":{\"used_model\":true}}"], ["token", "1e7e1f1ab2944db1a8755e00e049ca24"], ["created_at", "2018-11-26 15:21:23.521306"], ["updated_at", "2018-11-26 15:21:23.521306"]]
14
+  (2.5ms) COMMIT
15
+  (0.1ms) BEGIN
16
+ Apicasso::Key Exists (0.3ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "890620d282af4f94af31c7ea675cc097"], ["LIMIT", 1]]
17
+ Apicasso::Key Create (0.3ms) INSERT INTO "apicasso_keys" ("scope", "token", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["scope", "{\"manage\":{\"used_model\":true}}"], ["token", "890620d282af4f94af31c7ea675cc097"], ["created_at", "2018-11-26 15:21:23.529393"], ["updated_at", "2018-11-26 15:21:23.529393"]]
18
+  (1.9ms) COMMIT
19
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
20
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
21
+  (0.1ms) BEGIN
22
+ Apicasso::Key Exists (0.3ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "219ac3e6bd254e76a568cf75cbfe10b0"], ["LIMIT", 1]]
23
+ Apicasso::Key Create (0.2ms) INSERT INTO "apicasso_keys" ("scope", "token", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["scope", "{\"manage\":{\"used_model\":true}}"], ["token", "219ac3e6bd254e76a568cf75cbfe10b0"], ["created_at", "2018-11-26 15:21:23.542584"], ["updated_at", "2018-11-26 15:21:23.542584"]]
24
+  (1.8ms) COMMIT
25
+  (0.1ms) BEGIN
26
+ Apicasso::Key Exists (0.2ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "0053444a87ef49eea46a61cf8cd5e02d"], ["LIMIT", 1]]
27
+ Apicasso::Key Create (0.4ms) INSERT INTO "apicasso_keys" ("scope", "token", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["scope", "{\"read\":{\"used_model\":true}}"], ["token", "0053444a87ef49eea46a61cf8cd5e02d"], ["created_at", "2018-11-26 15:21:23.547006"], ["updated_at", "2018-11-26 15:21:23.547006"]]
28
+  (1.8ms) COMMIT
29
+  (0.1ms) BEGIN
30
+ Apicasso::Key Exists (0.2ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "22695aa7892544f08fc8ef205dd1c06b"], ["LIMIT", 1]]
31
+ Apicasso::Key Create (0.3ms) INSERT INTO "apicasso_keys" ("scope", "token", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["scope", "{\"create\":{\"used_model\":true}}"], ["token", "22695aa7892544f08fc8ef205dd1c06b"], ["created_at", "2018-11-26 15:21:23.551732"], ["updated_at", "2018-11-26 15:21:23.551732"]]
32
+  (1.7ms) COMMIT
33
+  (0.1ms) BEGIN
34
+ Apicasso::Key Exists (0.2ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "d607abcabd5b4f009ed558df4888cee6"], ["LIMIT", 1]]
35
+ Apicasso::Key Create (0.2ms) INSERT INTO "apicasso_keys" ("scope", "token", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["scope", "{\"update\":{\"used_model\":true}}"], ["token", "d607abcabd5b4f009ed558df4888cee6"], ["created_at", "2018-11-26 15:21:23.555942"], ["updated_at", "2018-11-26 15:21:23.555942"]]
36
+  (1.6ms) COMMIT
37
+  (0.1ms) BEGIN
38
+ Apicasso::Key Exists (0.2ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "3648c8cb82ea426293450a4b19654ead"], ["LIMIT", 1]]
39
+ Apicasso::Key Create (0.3ms) INSERT INTO "apicasso_keys" ("scope", "token", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["scope", "{\"destroy\":{\"used_model\":true}}"], ["token", "3648c8cb82ea426293450a4b19654ead"], ["created_at", "2018-11-26 15:21:23.559919"], ["updated_at", "2018-11-26 15:21:23.559919"]]
40
+  (1.7ms) COMMIT
41
+  (0.1ms) BEGIN
42
+ UsedModel Exists (0.6ms) SELECT 1 AS one FROM "used_models" WHERE "used_models"."id" IS NOT NULL AND "used_models"."slug" = $1 LIMIT $2 [["slug", "toyota-prius"], ["LIMIT", 1]]
43
+  (0.1ms) ROLLBACK
44
+  (0.1ms) BEGIN
45
+  (0.1ms) SAVEPOINT active_record_1
46
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
47
+  (0.1ms) ROLLBACK
48
+  (0.1ms) BEGIN
49
+  (0.1ms) SAVEPOINT active_record_1
50
+ UsedModel Exists (0.3ms) SELECT 1 AS one FROM "used_models" WHERE "used_models"."id" IS NOT NULL AND "used_models"."slug" = $1 LIMIT $2 [["slug", "ford-fiesta"], ["LIMIT", 1]]
51
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
52
+  (0.1ms) ROLLBACK
53
+  (0.1ms) BEGIN
54
+  (0.2ms) SAVEPOINT active_record_1
55
+ UsedModel Exists (0.4ms) SELECT 1 AS one FROM "used_models" WHERE "used_models"."id" IS NOT NULL AND "used_models"."slug" = $1 LIMIT $2 [["slug", "honda-accord"], ["LIMIT", 1]]
56
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
57
+  (0.2ms) ROLLBACK
58
+  (0.2ms) BEGIN
59
+ Started GET "/api/v1/used_models?group%5Bby%5D=brand&group%5Bcalculate%5D=count&group%5Bfields%5D=%27OR+1%3D1%3B" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
60
+ Processing by Apicasso::CrudController#index as HTML
61
+ Parameters: {"group"=>{"by"=>"brand", "calculate"=>"count", "fields"=>"'OR 1=1;"}, "resource"=>"used_models"}
62
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "9e149567877b46c0b7490235bbdd74b2"], ["LIMIT", 1]]
63
+ Completed 400 Bad Request in 3ms (ActiveRecord: 0.4ms)
64
+  (0.2ms) ROLLBACK
65
+  (0.1ms) BEGIN
66
+ Started GET "/api/v1/used_models?per_page=-1&sort=%27OR+1%3D1%3B" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
67
+ Processing by Apicasso::CrudController#index as HTML
68
+ Parameters: {"per_page"=>"-1", "sort"=>"'OR 1=1;", "resource"=>"used_models"}
69
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "9e149567877b46c0b7490235bbdd74b2"], ["LIMIT", 1]]
70
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.3ms)
71
+  (0.1ms) ROLLBACK
72
+  (0.1ms) BEGIN
73
+ Started GET "/api/v1/used_models?include=%27OR+1%3D1%3B" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
74
+ Processing by Apicasso::CrudController#index as HTML
75
+ Parameters: {"include"=>"'OR 1=1;", "resource"=>"used_models"}
76
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "9e149567877b46c0b7490235bbdd74b2"], ["LIMIT", 1]]
77
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.2ms)
78
+  (0.1ms) ROLLBACK
79
+  (0.1ms) BEGIN
80
+ Started GET "/api/v1/admins" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
81
+ Processing by Apicasso::CrudController#index as HTML
82
+ Parameters: {"resource"=>"admins"}
83
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
84
+  (0.1ms) ROLLBACK
85
+  (0.1ms) BEGIN
86
+ Started GET "/api/v1/used_models/1/admins" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
87
+ Processing by Apicasso::CrudController#nested_index as HTML
88
+ Parameters: {"resource"=>"used_models", "id"=>"1", "nested"=>"admins"}
89
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
90
+  (0.1ms) ROLLBACK
91
+  (0.1ms) BEGIN
92
+ Started GET "/api/v1/used_models?include=admins" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
93
+ Processing by Apicasso::CrudController#index as HTML
94
+ Parameters: {"include"=>"admins", "resource"=>"used_models"}
95
+ Apicasso::Key Load (0.5ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "9e149567877b46c0b7490235bbdd74b2"], ["LIMIT", 1]]
96
+ Completed 400 Bad Request in 3ms (ActiveRecord: 0.5ms)
97
+  (0.2ms) ROLLBACK
98
+ Started GET "/api/v1/used_models" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
99
+ Processing by Apicasso::CrudController#index as HTML
100
+ Parameters: {"resource"=>"used_models"}
101
+ Apicasso::Key Load (0.5ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "fba34a23ac1641b38815098195806ea8"], ["LIMIT", 1]]
102
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
103
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
104
+  (0.2ms) BEGIN
105
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["LIMIT", 1]]
106
+ Apicasso::Request Create (3.8ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["object", "{\"request\":{\"uuid\":\"86d606c8-ed02-45ce-ab43-94bade0c570e\",\"url\":\"http://www.example.com/api/v1/used_models\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=fba34a23ac1641b38815098195806ea8\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":1,\"active\":false,\"account_id\":8,\"unit_id\":3,\"brand\":\"Buick\",\"name\":\"M5\",\"slug\":\"m5\",\"model\":\"Odyssey\",\"version\":\"3.8\",\"model_year\":2017,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"4719.56\",\"price_value\":8533,\"price\":\"3805.29\",\"category\":\"Regular Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":43961194,\"km\":\"59551357\",\"plate\":\"2033\",\"color\":\"Beige\",\"doors\":6,\"fuel\":3,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.029Z\",\"updated_at\":\"2018-11-08T17:38:23.029Z\"},{\"id\":2,\"active\":false,\"account_id\":1,\"unit_id\":5,\"brand\":\"Audi\",\"name\":\"Civic\",\"slug\":\"civic\",\"model\":\"A5\",\"version\":\"2.2\",\"model_year\":2016,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1294.34\",\"price_value\":8525,\"price\":\"5665.78\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":51090415,\"km\":\"96433648\",\"plate\":\"9510\",\"color\":\"Black\",\"doors\":8,\"fuel\":0,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.036Z\",\"updated_at\":\"2018-11-08T17:38:23.036Z\"},{\"id\":3,\"active\":true,\"account_id\":7,\"unit_id\":4,\"brand\":\"Honda\",\"name\":\"Odyssey\",\"slug\":\"odyssey\",\"model\":\"Durango\",\"version\":\"4.4\",\"model_year\":2010,\"production_year\":\"2013\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5541.12\",\"price_value\":8648,\"price\":\"7039.23\",\"category\":\"Extended Cab Pickup\",\"transmission\":\"Automatic\",\"km_value\":90577483,\"km\":\"26084722\",\"plate\":\"4888\",\"color\":\"Violet\",\"doors\":3,\"fuel\":0,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.042Z\",\"updated_at\":\"2018-11-08T17:38:23.042Z\"},{\"id\":4,\"active\":false,\"account_id\":7,\"unit_id\":1,\"brand\":\"Chevy\",\"name\":\"Durango\",\"slug\":\"durango\",\"model\":\"Camero\",\"version\":\"8.5\",\"model_year\":2018,\"production_year\":\"2012\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2300.77\",\"price_value\":1516,\"price\":\"2245.59\",\"category\":\"Wagon\",\"transmission\":\"Automatic\",\"km_value\":78271823,\"km\":\"95493414\",\"plate\":\"2689\",\"color\":\"Red\",\"doors\":7,\"fuel\":1,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.047Z\",\"updated_at\":\"2018-11-08T17:38:23.047Z\"},{\"id\":5,\"active\":true,\"account_id\":8,\"unit_id\":0,\"brand\":\"Toyota\",\"name\":\"X3\",\"slug\":\"x3\",\"model\":\"Juke\",\"version\":\"3.2\",\"model_year\":2005,\"production_year\":\"2008\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"8812.52\",\"price_value\":9231,\"price\":\"1876.52\",\"category\":\"Hatchback\",\"transmission\":\"Automanual\",\"km_value\":40936712,\"km\":\"19445608\",\"plate\":\"5888\",\"color\":\"Black\",\"doors\":6,\"fuel\":9,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.053Z\",\"updated_at\":\"2018-11-08T17:38:23.053Z\"},{\"id\":6,\"active\":true,\"account_id\":0,\"unit_id\":2,\"brand\":\"Honda\",\"name\":\"Durango\",\"slug\":\"durango-9d02071a-77c0-403b-bc46-c7161408f812\",\"model\":\"MKZ\",\"version\":\"4.9\",\"model_year\":2008,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7058.43\",\"price_value\":5808,\"price\":\"8617.65\",\"category\":\"Coupe\",\"transmission\":\"Automanual\",\"km_value\":43250550,\"km\":\"34167150\",\"plate\":\"6998\",\"color\":\"Green\",\"doors\":1,\"fuel\":9,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.058Z\",\"updated_at\":\"2018-11-08T17:38:23.058Z\"},{\"id\":7,\"active\":true,\"account_id\":5,\"unit_id\":8,\"brand\":\"Chevy\",\"name\":\"A7\",\"slug\":\"a7\",\"model\":\"Camero\",\"version\":\"5.3\",\"model_year\":2011,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1580.64\",\"price_value\":1165,\"price\":\"8709.63\",\"category\":\"Convertible\",\"transmission\":\"CVT\",\"km_value\":52169327,\"km\":\"15231393\",\"plate\":\"2997\",\"color\":\"Green\",\"doors\":1,\"fuel\":3,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.064Z\",\"updated_at\":\"2018-11-08T17:38:23.064Z\"},{\"id\":8,\"active\":true,\"account_id\":2,\"unit_id\":4,\"brand\":\"Nissan\",\"name\":\"Prius\",\"slug\":\"prius\",\"model\":\"Accord\",\"version\":\"7.8\",\"model_year\":2009,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"7129.91\",\"price_value\":2488,\"price\":\"4001.48\",\"category\":\"SUV\",\"transmission\":\"Manual\",\"km_value\":80244772,\"km\":\"48716911\",\"plate\":\"9573\",\"color\":\"Grey\",\"doors\":4,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.069Z\",\"updated_at\":\"2018-11-08T17:38:23.069Z\"},{\"id\":9,\"active\":false,\"account_id\":7,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Focus\",\"slug\":\"focus\",\"model\":\"LaCrosse\",\"version\":\"1.7\",\"model_year\":2012,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5197.01\",\"price_value\":2028,\"price\":\"8301.38\",\"category\":\"Minivan\",\"transmission\":\"Automatic\",\"km_value\":34215256,\"km\":\"11433071\",\"plate\":\"5603\",\"color\":\"Violet\",\"doors\":1,\"fuel\":5,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.075Z\",\"updated_at\":\"2018-11-08T17:38:23.075Z\"},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Ram\",\"slug\":\"cr-v\",\"model\":\"Prius\",\"version\":\"9.5\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1648.31\",\"price_value\":8432,\"price\":\"2056.82\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":47546237,\"km\":\"39672408\",\"plate\":\"4005\",\"color\":\"Yellow\",\"doors\":9,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.080Z\",\"updated_at\":\"2018-11-08T17:38:23.080Z\"}],\"total\":10,\"total_pages\":1,\"last_page\":true,\"previous_page\":\"http://www.example.com/api/v1/used_models?page\",\"next_page\":\"http://www.example.com/api/v1/used_models?page\",\"out_of_bounds\":false,\"offset\":0}}}"], ["created_at", "2018-11-26 15:21:24.147154"], ["updated_at", "2018-11-26 15:21:24.147154"]]
107
+  (3.3ms) COMMIT
108
+ Completed 200 OK in 74ms (Views: 2.7ms | ActiveRecord: 12.7ms)
109
+  (0.1ms) BEGIN
110
+  (0.1ms) ROLLBACK
111
+  (0.1ms) BEGIN
112
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
113
+  (0.2ms) ROLLBACK
114
+ Started GET "/api/v1/used_models?per_page=-1" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
115
+ Processing by Apicasso::CrudController#index as HTML
116
+ Parameters: {"per_page"=>"-1", "resource"=>"used_models"}
117
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "fba34a23ac1641b38815098195806ea8"], ["LIMIT", 1]]
118
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
119
+  (0.2ms) BEGIN
120
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["LIMIT", 1]]
121
+ Apicasso::Request Create (0.4ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["object", "{\"request\":{\"uuid\":\"5ad77077-afea-406a-82ce-f86b47f8dd1d\",\"url\":\"http://www.example.com/api/v1/used_models?per_page=-1\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=fba34a23ac1641b38815098195806ea8\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":1,\"active\":false,\"account_id\":8,\"unit_id\":3,\"brand\":\"Buick\",\"name\":\"M5\",\"slug\":\"m5\",\"model\":\"Odyssey\",\"version\":\"3.8\",\"model_year\":2017,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"4719.56\",\"price_value\":8533,\"price\":\"3805.29\",\"category\":\"Regular Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":43961194,\"km\":\"59551357\",\"plate\":\"2033\",\"color\":\"Beige\",\"doors\":6,\"fuel\":3,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.029Z\",\"updated_at\":\"2018-11-08T17:38:23.029Z\"},{\"id\":2,\"active\":false,\"account_id\":1,\"unit_id\":5,\"brand\":\"Audi\",\"name\":\"Civic\",\"slug\":\"civic\",\"model\":\"A5\",\"version\":\"2.2\",\"model_year\":2016,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1294.34\",\"price_value\":8525,\"price\":\"5665.78\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":51090415,\"km\":\"96433648\",\"plate\":\"9510\",\"color\":\"Black\",\"doors\":8,\"fuel\":0,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.036Z\",\"updated_at\":\"2018-11-08T17:38:23.036Z\"},{\"id\":3,\"active\":true,\"account_id\":7,\"unit_id\":4,\"brand\":\"Honda\",\"name\":\"Odyssey\",\"slug\":\"odyssey\",\"model\":\"Durango\",\"version\":\"4.4\",\"model_year\":2010,\"production_year\":\"2013\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5541.12\",\"price_value\":8648,\"price\":\"7039.23\",\"category\":\"Extended Cab Pickup\",\"transmission\":\"Automatic\",\"km_value\":90577483,\"km\":\"26084722\",\"plate\":\"4888\",\"color\":\"Violet\",\"doors\":3,\"fuel\":0,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.042Z\",\"updated_at\":\"2018-11-08T17:38:23.042Z\"},{\"id\":4,\"active\":false,\"account_id\":7,\"unit_id\":1,\"brand\":\"Chevy\",\"name\":\"Durango\",\"slug\":\"durango\",\"model\":\"Camero\",\"version\":\"8.5\",\"model_year\":2018,\"production_year\":\"2012\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2300.77\",\"price_value\":1516,\"price\":\"2245.59\",\"category\":\"Wagon\",\"transmission\":\"Automatic\",\"km_value\":78271823,\"km\":\"95493414\",\"plate\":\"2689\",\"color\":\"Red\",\"doors\":7,\"fuel\":1,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.047Z\",\"updated_at\":\"2018-11-08T17:38:23.047Z\"},{\"id\":5,\"active\":true,\"account_id\":8,\"unit_id\":0,\"brand\":\"Toyota\",\"name\":\"X3\",\"slug\":\"x3\",\"model\":\"Juke\",\"version\":\"3.2\",\"model_year\":2005,\"production_year\":\"2008\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"8812.52\",\"price_value\":9231,\"price\":\"1876.52\",\"category\":\"Hatchback\",\"transmission\":\"Automanual\",\"km_value\":40936712,\"km\":\"19445608\",\"plate\":\"5888\",\"color\":\"Black\",\"doors\":6,\"fuel\":9,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.053Z\",\"updated_at\":\"2018-11-08T17:38:23.053Z\"},{\"id\":6,\"active\":true,\"account_id\":0,\"unit_id\":2,\"brand\":\"Honda\",\"name\":\"Durango\",\"slug\":\"durango-9d02071a-77c0-403b-bc46-c7161408f812\",\"model\":\"MKZ\",\"version\":\"4.9\",\"model_year\":2008,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7058.43\",\"price_value\":5808,\"price\":\"8617.65\",\"category\":\"Coupe\",\"transmission\":\"Automanual\",\"km_value\":43250550,\"km\":\"34167150\",\"plate\":\"6998\",\"color\":\"Green\",\"doors\":1,\"fuel\":9,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.058Z\",\"updated_at\":\"2018-11-08T17:38:23.058Z\"},{\"id\":7,\"active\":true,\"account_id\":5,\"unit_id\":8,\"brand\":\"Chevy\",\"name\":\"A7\",\"slug\":\"a7\",\"model\":\"Camero\",\"version\":\"5.3\",\"model_year\":2011,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1580.64\",\"price_value\":1165,\"price\":\"8709.63\",\"category\":\"Convertible\",\"transmission\":\"CVT\",\"km_value\":52169327,\"km\":\"15231393\",\"plate\":\"2997\",\"color\":\"Green\",\"doors\":1,\"fuel\":3,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.064Z\",\"updated_at\":\"2018-11-08T17:38:23.064Z\"},{\"id\":8,\"active\":true,\"account_id\":2,\"unit_id\":4,\"brand\":\"Nissan\",\"name\":\"Prius\",\"slug\":\"prius\",\"model\":\"Accord\",\"version\":\"7.8\",\"model_year\":2009,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"7129.91\",\"price_value\":2488,\"price\":\"4001.48\",\"category\":\"SUV\",\"transmission\":\"Manual\",\"km_value\":80244772,\"km\":\"48716911\",\"plate\":\"9573\",\"color\":\"Grey\",\"doors\":4,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.069Z\",\"updated_at\":\"2018-11-08T17:38:23.069Z\"},{\"id\":9,\"active\":false,\"account_id\":7,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Focus\",\"slug\":\"focus\",\"model\":\"LaCrosse\",\"version\":\"1.7\",\"model_year\":2012,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5197.01\",\"price_value\":2028,\"price\":\"8301.38\",\"category\":\"Minivan\",\"transmission\":\"Automatic\",\"km_value\":34215256,\"km\":\"11433071\",\"plate\":\"5603\",\"color\":\"Violet\",\"doors\":1,\"fuel\":5,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.075Z\",\"updated_at\":\"2018-11-08T17:38:23.075Z\"},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Ram\",\"slug\":\"cr-v\",\"model\":\"Prius\",\"version\":\"9.5\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1648.31\",\"price_value\":8432,\"price\":\"2056.82\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":47546237,\"km\":\"39672408\",\"plate\":\"4005\",\"color\":\"Yellow\",\"doors\":9,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.080Z\",\"updated_at\":\"2018-11-08T17:38:23.080Z\"}],\"total\":10}}}"], ["created_at", "2018-11-26 15:21:24.184170"], ["updated_at", "2018-11-26 15:21:24.184170"]]
122
+  (1.8ms) COMMIT
123
+ Completed 200 OK in 20ms (Views: 1.8ms | ActiveRecord: 3.4ms)
124
+  (0.1ms) BEGIN
125
+  (0.1ms) ROLLBACK
126
+  (0.1ms) BEGIN
127
+  (0.4ms) SELECT COUNT(*) FROM "used_models"
128
+  (0.4ms) ROLLBACK
129
+ Started GET "/api/v1/used_models?per_page=6&page=4" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
130
+ Processing by Apicasso::CrudController#index as HTML
131
+ Parameters: {"per_page"=>"6", "page"=>"4", "resource"=>"used_models"}
132
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "fba34a23ac1641b38815098195806ea8"], ["LIMIT", 1]]
133
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 6], ["OFFSET", 18]]
134
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
135
+  (0.2ms) BEGIN
136
+ Apicasso::Key Load (0.5ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["LIMIT", 1]]
137
+ Apicasso::Request Create (0.4ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["object", "{\"request\":{\"uuid\":\"987b2928-2581-4a9b-bafa-3f4883a6eac9\",\"url\":\"http://www.example.com/api/v1/used_models?per_page=6\\u0026page=4\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=fba34a23ac1641b38815098195806ea8\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[],\"total\":10,\"total_pages\":2,\"last_page\":true,\"previous_page\":\"http://www.example.com/api/v1/used_models?per_page=6\\u0026page=3\",\"next_page\":\"http://www.example.com/api/v1/used_models?per_page=6\\u0026page\",\"out_of_bounds\":true,\"offset\":18}}}"], ["created_at", "2018-11-26 15:21:24.209989"], ["updated_at", "2018-11-26 15:21:24.209989"]]
138
+  (1.9ms) COMMIT
139
+ Completed 200 OK in 12ms (Views: 0.1ms | ActiveRecord: 4.0ms)
140
+  (0.1ms) BEGIN
141
+  (0.2ms) ROLLBACK
142
+  (0.1ms) BEGIN
143
+  (0.1ms) ROLLBACK
144
+ Started GET "/api/v1/used_models?q%5Bbrand_matches%5D=Toyota" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
145
+ Processing by Apicasso::CrudController#index as HTML
146
+ Parameters: {"q"=>{"brand_matches"=>"Toyota"}, "resource"=>"used_models"}
147
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "fba34a23ac1641b38815098195806ea8"], ["LIMIT", 1]]
148
+ UsedModel Load (1.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."brand" ILIKE 'Toyota' LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
149
+  (0.5ms) SELECT COUNT(*) FROM "used_models" WHERE "used_models"."brand" ILIKE 'Toyota'
150
+  (0.1ms) BEGIN
151
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["LIMIT", 1]]
152
+ Apicasso::Request Create (0.5ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["object", "{\"request\":{\"uuid\":\"e3ad585d-ff14-46a7-b5db-e832306da41e\",\"url\":\"http://www.example.com/api/v1/used_models?q%5Bbrand_matches%5D=Toyota\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=fba34a23ac1641b38815098195806ea8\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":5,\"active\":true,\"account_id\":8,\"unit_id\":0,\"brand\":\"Toyota\",\"name\":\"X3\",\"slug\":\"x3\",\"model\":\"Juke\",\"version\":\"3.2\",\"model_year\":2005,\"production_year\":\"2008\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"8812.52\",\"price_value\":9231,\"price\":\"1876.52\",\"category\":\"Hatchback\",\"transmission\":\"Automanual\",\"km_value\":40936712,\"km\":\"19445608\",\"plate\":\"5888\",\"color\":\"Black\",\"doors\":6,\"fuel\":9,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.053Z\",\"updated_at\":\"2018-11-08T17:38:23.053Z\"}],\"total\":1,\"total_pages\":1,\"last_page\":true,\"previous_page\":\"http://www.example.com/api/v1/used_models?q%5Bbrand_matches%5D=Toyota\\u0026page\",\"next_page\":\"http://www.example.com/api/v1/used_models?q%5Bbrand_matches%5D=Toyota\\u0026page\",\"out_of_bounds\":false,\"offset\":0}}}"], ["created_at", "2018-11-26 15:21:24.236726"], ["updated_at", "2018-11-26 15:21:24.236726"]]
153
+  (2.1ms) COMMIT
154
+ Completed 200 OK in 22ms (Views: 8.2ms | ActiveRecord: 4.9ms)
155
+  (0.1ms) BEGIN
156
+  (0.2ms) ROLLBACK
157
+  (0.1ms) BEGIN
158
+  (0.2ms) ROLLBACK
159
+ Started GET "/api/v1/used_models?group%5Bby%5D=old_price&group%5Bcalculate%5D=count&group%5Bfields%5D=name" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
160
+ Processing by Apicasso::CrudController#index as HTML
161
+ Parameters: {"group"=>{"by"=>"old_price", "calculate"=>"count", "fields"=>"name"}, "resource"=>"used_models"}
162
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "fba34a23ac1641b38815098195806ea8"], ["LIMIT", 1]]
163
+  (0.4ms) SELECT COUNT(*) AS count_all, "used_models"."old_price" AS used_models_old_price FROM "used_models" GROUP BY "used_models"."old_price"
164
+  (0.1ms) BEGIN
165
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["LIMIT", 1]]
166
+ Apicasso::Request Create (0.3ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["object", "{\"request\":{\"uuid\":\"30f1006c-1e7d-46d8-8197-43296cee965c\",\"url\":\"http://www.example.com/api/v1/used_models?group%5Bby%5D=old_price\\u0026group%5Bcalculate%5D=count\\u0026group%5Bfields%5D=name\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=fba34a23ac1641b38815098195806ea8\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"4719.56\":1,\"7058.43\":1,\"8812.52\":1,\"2300.77\":1,\"1648.31\":1,\"1580.64\":1,\"5197.01\":1,\"5541.12\":1,\"1294.34\":1,\"7129.91\":1}}}"], ["created_at", "2018-11-26 15:21:24.255026"], ["updated_at", "2018-11-26 15:21:24.255026"]]
167
+  (1.9ms) COMMIT
168
+ Completed 200 OK in 9ms (Views: 0.1ms | ActiveRecord: 3.4ms)
169
+  (0.1ms) BEGIN
170
+  (0.1ms) ROLLBACK
171
+  (0.1ms) BEGIN
172
+  (0.3ms) SELECT COUNT(*) AS count_all, "used_models"."old_price" AS used_models_old_price FROM "used_models" WHERE (name is NOT NULL) GROUP BY "used_models"."old_price"
173
+  (0.1ms) ROLLBACK
174
+ Started GET "/api/v1/used_models?per_page=-1&sort=%2Bbrand%2C%2Bmodel" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
175
+ Processing by Apicasso::CrudController#index as HTML
176
+ Parameters: {"per_page"=>"-1", "sort"=>"+brand,+model", "resource"=>"used_models"}
177
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "fba34a23ac1641b38815098195806ea8"], ["LIMIT", 1]]
178
+ UsedModel Load (0.7ms) SELECT "used_models".* FROM "used_models" ORDER BY "used_models"."brand" ASC, "used_models"."model" ASC
179
+  (0.1ms) BEGIN
180
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["LIMIT", 1]]
181
+ Apicasso::Request Create (0.7ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["object", "{\"request\":{\"uuid\":\"6851283a-71ef-44d7-9aaf-a5c9b7636f25\",\"url\":\"http://www.example.com/api/v1/used_models?per_page=-1\\u0026sort=%2Bbrand%2C%2Bmodel\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=fba34a23ac1641b38815098195806ea8\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":2,\"active\":false,\"account_id\":1,\"unit_id\":5,\"brand\":\"Audi\",\"name\":\"Civic\",\"slug\":\"civic\",\"model\":\"A5\",\"version\":\"2.2\",\"model_year\":2016,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1294.34\",\"price_value\":8525,\"price\":\"5665.78\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":51090415,\"km\":\"96433648\",\"plate\":\"9510\",\"color\":\"Black\",\"doors\":8,\"fuel\":0,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.036Z\",\"updated_at\":\"2018-11-08T17:38:23.036Z\"},{\"id\":1,\"active\":false,\"account_id\":8,\"unit_id\":3,\"brand\":\"Buick\",\"name\":\"M5\",\"slug\":\"m5\",\"model\":\"Odyssey\",\"version\":\"3.8\",\"model_year\":2017,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"4719.56\",\"price_value\":8533,\"price\":\"3805.29\",\"category\":\"Regular Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":43961194,\"km\":\"59551357\",\"plate\":\"2033\",\"color\":\"Beige\",\"doors\":6,\"fuel\":3,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.029Z\",\"updated_at\":\"2018-11-08T17:38:23.029Z\"},{\"id\":7,\"active\":true,\"account_id\":5,\"unit_id\":8,\"brand\":\"Chevy\",\"name\":\"A7\",\"slug\":\"a7\",\"model\":\"Camero\",\"version\":\"5.3\",\"model_year\":2011,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1580.64\",\"price_value\":1165,\"price\":\"8709.63\",\"category\":\"Convertible\",\"transmission\":\"CVT\",\"km_value\":52169327,\"km\":\"15231393\",\"plate\":\"2997\",\"color\":\"Green\",\"doors\":1,\"fuel\":3,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.064Z\",\"updated_at\":\"2018-11-08T17:38:23.064Z\"},{\"id\":4,\"active\":false,\"account_id\":7,\"unit_id\":1,\"brand\":\"Chevy\",\"name\":\"Durango\",\"slug\":\"durango\",\"model\":\"Camero\",\"version\":\"8.5\",\"model_year\":2018,\"production_year\":\"2012\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2300.77\",\"price_value\":1516,\"price\":\"2245.59\",\"category\":\"Wagon\",\"transmission\":\"Automatic\",\"km_value\":78271823,\"km\":\"95493414\",\"plate\":\"2689\",\"color\":\"Red\",\"doors\":7,\"fuel\":1,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.047Z\",\"updated_at\":\"2018-11-08T17:38:23.047Z\"},{\"id\":9,\"active\":false,\"account_id\":7,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Focus\",\"slug\":\"focus\",\"model\":\"LaCrosse\",\"version\":\"1.7\",\"model_year\":2012,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5197.01\",\"price_value\":2028,\"price\":\"8301.38\",\"category\":\"Minivan\",\"transmission\":\"Automatic\",\"km_value\":34215256,\"km\":\"11433071\",\"plate\":\"5603\",\"color\":\"Violet\",\"doors\":1,\"fuel\":5,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.075Z\",\"updated_at\":\"2018-11-08T17:38:23.075Z\"},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Ram\",\"slug\":\"cr-v\",\"model\":\"Prius\",\"version\":\"9.5\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1648.31\",\"price_value\":8432,\"price\":\"2056.82\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":47546237,\"km\":\"39672408\",\"plate\":\"4005\",\"color\":\"Yellow\",\"doors\":9,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.080Z\",\"updated_at\":\"2018-11-08T17:38:23.080Z\"},{\"id\":3,\"active\":true,\"account_id\":7,\"unit_id\":4,\"brand\":\"Honda\",\"name\":\"Odyssey\",\"slug\":\"odyssey\",\"model\":\"Durango\",\"version\":\"4.4\",\"model_year\":2010,\"production_year\":\"2013\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5541.12\",\"price_value\":8648,\"price\":\"7039.23\",\"category\":\"Extended Cab Pickup\",\"transmission\":\"Automatic\",\"km_value\":90577483,\"km\":\"26084722\",\"plate\":\"4888\",\"color\":\"Violet\",\"doors\":3,\"fuel\":0,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.042Z\",\"updated_at\":\"2018-11-08T17:38:23.042Z\"},{\"id\":6,\"active\":true,\"account_id\":0,\"unit_id\":2,\"brand\":\"Honda\",\"name\":\"Durango\",\"slug\":\"durango-9d02071a-77c0-403b-bc46-c7161408f812\",\"model\":\"MKZ\",\"version\":\"4.9\",\"model_year\":2008,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7058.43\",\"price_value\":5808,\"price\":\"8617.65\",\"category\":\"Coupe\",\"transmission\":\"Automanual\",\"km_value\":43250550,\"km\":\"34167150\",\"plate\":\"6998\",\"color\":\"Green\",\"doors\":1,\"fuel\":9,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.058Z\",\"updated_at\":\"2018-11-08T17:38:23.058Z\"},{\"id\":8,\"active\":true,\"account_id\":2,\"unit_id\":4,\"brand\":\"Nissan\",\"name\":\"Prius\",\"slug\":\"prius\",\"model\":\"Accord\",\"version\":\"7.8\",\"model_year\":2009,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"7129.91\",\"price_value\":2488,\"price\":\"4001.48\",\"category\":\"SUV\",\"transmission\":\"Manual\",\"km_value\":80244772,\"km\":\"48716911\",\"plate\":\"9573\",\"color\":\"Grey\",\"doors\":4,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.069Z\",\"updated_at\":\"2018-11-08T17:38:23.069Z\"},{\"id\":5,\"active\":true,\"account_id\":8,\"unit_id\":0,\"brand\":\"Toyota\",\"name\":\"X3\",\"slug\":\"x3\",\"model\":\"Juke\",\"version\":\"3.2\",\"model_year\":2005,\"production_year\":\"2008\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"8812.52\",\"price_value\":9231,\"price\":\"1876.52\",\"category\":\"Hatchback\",\"transmission\":\"Automanual\",\"km_value\":40936712,\"km\":\"19445608\",\"plate\":\"5888\",\"color\":\"Black\",\"doors\":6,\"fuel\":9,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.053Z\",\"updated_at\":\"2018-11-08T17:38:23.053Z\"}],\"total\":10}}}"], ["created_at", "2018-11-26 15:21:24.273231"], ["updated_at", "2018-11-26 15:21:24.273231"]]
182
+  (1.9ms) COMMIT
183
+ Completed 200 OK in 23ms (Views: 1.5ms | ActiveRecord: 3.8ms)
184
+  (0.1ms) BEGIN
185
+  (0.1ms) ROLLBACK
186
+  (0.1ms) BEGIN
187
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" ORDER BY "used_models"."brand" ASC, "used_models"."model" ASC
188
+  (0.2ms) ROLLBACK
189
+ Started GET "/api/v1/used_models?select=transmission" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
190
+ Processing by Apicasso::CrudController#index as HTML
191
+ Parameters: {"select"=>"transmission", "resource"=>"used_models"}
192
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "fba34a23ac1641b38815098195806ea8"], ["LIMIT", 1]]
193
+ UsedModel Load (0.4ms) SELECT "used_models"."transmission" FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
194
+  (0.4ms) SELECT COUNT("used_models"."transmission") FROM "used_models"
195
+  (0.1ms) BEGIN
196
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["LIMIT", 1]]
197
+ Apicasso::Request Create (0.4ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["object", "{\"request\":{\"uuid\":\"3dc54f51-a366-46c7-87e5-1a2f3e80e02b\",\"url\":\"http://www.example.com/api/v1/used_models?select=transmission\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=fba34a23ac1641b38815098195806ea8\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":null,\"transmission\":\"Manual\"},{\"id\":null,\"transmission\":\"Automanual\"},{\"id\":null,\"transmission\":\"Automatic\"},{\"id\":null,\"transmission\":\"Automatic\"},{\"id\":null,\"transmission\":\"Automanual\"},{\"id\":null,\"transmission\":\"Automanual\"},{\"id\":null,\"transmission\":\"CVT\"},{\"id\":null,\"transmission\":\"Manual\"},{\"id\":null,\"transmission\":\"Automatic\"},{\"id\":null,\"transmission\":\"Automatic\"}],\"total\":10,\"total_pages\":1,\"last_page\":true,\"previous_page\":\"http://www.example.com/api/v1/used_models?select=transmission\\u0026page\",\"next_page\":\"http://www.example.com/api/v1/used_models?select=transmission\\u0026page\",\"out_of_bounds\":false,\"offset\":0}}}"], ["created_at", "2018-11-26 15:21:24.303345"], ["updated_at", "2018-11-26 15:21:24.303345"]]
198
+  (2.1ms) COMMIT
199
+ Completed 200 OK in 15ms (Views: 0.3ms | ActiveRecord: 4.0ms)
200
+  (0.1ms) BEGIN
201
+  (0.2ms) ROLLBACK
202
+  (0.1ms) BEGIN
203
+  (0.1ms) ROLLBACK
204
+ Started GET "/api/v1/used_models?include=files_blobs%2Cfiles_url" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
205
+ Processing by Apicasso::CrudController#index as HTML
206
+ Parameters: {"include"=>"files_blobs,files_url", "resource"=>"used_models"}
207
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "fba34a23ac1641b38815098195806ea8"], ["LIMIT", 1]]
208
+ UsedModel Load (0.6ms) SELECT "used_models".* FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
209
+ ActiveStorage::Attachment Load (2.1ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_type" = $1 AND "active_storage_attachments"."name" = $2 AND "active_storage_attachments"."record_id" IN ($3, $4, $5, $6, $7, $8, $9, $10, $11, $12) [["record_type", "UsedModel"], ["name", "files"], ["record_id", 1], ["record_id", 2], ["record_id", 3], ["record_id", 4], ["record_id", 5], ["record_id", 6], ["record_id", 7], ["record_id", 8], ["record_id", 9], ["record_id", 10]]
210
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
211
+  (0.2ms) BEGIN
212
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["LIMIT", 1]]
213
+ Apicasso::Request Create (0.5ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["object", "{\"request\":{\"uuid\":\"56e3987b-d677-4f37-b178-1d3c1629734c\",\"url\":\"http://www.example.com/api/v1/used_models?include=files_blobs%2Cfiles_url\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=fba34a23ac1641b38815098195806ea8\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":1,\"active\":false,\"account_id\":8,\"unit_id\":3,\"brand\":\"Buick\",\"name\":\"M5\",\"slug\":\"m5\",\"model\":\"Odyssey\",\"version\":\"3.8\",\"model_year\":2017,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"4719.56\",\"price_value\":8533,\"price\":\"3805.29\",\"category\":\"Regular Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":43961194,\"km\":\"59551357\",\"plate\":\"2033\",\"color\":\"Beige\",\"doors\":6,\"fuel\":3,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.029Z\",\"updated_at\":\"2018-11-08T17:38:23.029Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":2,\"active\":false,\"account_id\":1,\"unit_id\":5,\"brand\":\"Audi\",\"name\":\"Civic\",\"slug\":\"civic\",\"model\":\"A5\",\"version\":\"2.2\",\"model_year\":2016,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1294.34\",\"price_value\":8525,\"price\":\"5665.78\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":51090415,\"km\":\"96433648\",\"plate\":\"9510\",\"color\":\"Black\",\"doors\":8,\"fuel\":0,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.036Z\",\"updated_at\":\"2018-11-08T17:38:23.036Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":3,\"active\":true,\"account_id\":7,\"unit_id\":4,\"brand\":\"Honda\",\"name\":\"Odyssey\",\"slug\":\"odyssey\",\"model\":\"Durango\",\"version\":\"4.4\",\"model_year\":2010,\"production_year\":\"2013\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5541.12\",\"price_value\":8648,\"price\":\"7039.23\",\"category\":\"Extended Cab Pickup\",\"transmission\":\"Automatic\",\"km_value\":90577483,\"km\":\"26084722\",\"plate\":\"4888\",\"color\":\"Violet\",\"doors\":3,\"fuel\":0,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.042Z\",\"updated_at\":\"2018-11-08T17:38:23.042Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":4,\"active\":false,\"account_id\":7,\"unit_id\":1,\"brand\":\"Chevy\",\"name\":\"Durango\",\"slug\":\"durango\",\"model\":\"Camero\",\"version\":\"8.5\",\"model_year\":2018,\"production_year\":\"2012\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2300.77\",\"price_value\":1516,\"price\":\"2245.59\",\"category\":\"Wagon\",\"transmission\":\"Automatic\",\"km_value\":78271823,\"km\":\"95493414\",\"plate\":\"2689\",\"color\":\"Red\",\"doors\":7,\"fuel\":1,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.047Z\",\"updated_at\":\"2018-11-08T17:38:23.047Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":5,\"active\":true,\"account_id\":8,\"unit_id\":0,\"brand\":\"Toyota\",\"name\":\"X3\",\"slug\":\"x3\",\"model\":\"Juke\",\"version\":\"3.2\",\"model_year\":2005,\"production_year\":\"2008\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"8812.52\",\"price_value\":9231,\"price\":\"1876.52\",\"category\":\"Hatchback\",\"transmission\":\"Automanual\",\"km_value\":40936712,\"km\":\"19445608\",\"plate\":\"5888\",\"color\":\"Black\",\"doors\":6,\"fuel\":9,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.053Z\",\"updated_at\":\"2018-11-08T17:38:23.053Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":6,\"active\":true,\"account_id\":0,\"unit_id\":2,\"brand\":\"Honda\",\"name\":\"Durango\",\"slug\":\"durango-9d02071a-77c0-403b-bc46-c7161408f812\",\"model\":\"MKZ\",\"version\":\"4.9\",\"model_year\":2008,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7058.43\",\"price_value\":5808,\"price\":\"8617.65\",\"category\":\"Coupe\",\"transmission\":\"Automanual\",\"km_value\":43250550,\"km\":\"34167150\",\"plate\":\"6998\",\"color\":\"Green\",\"doors\":1,\"fuel\":9,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.058Z\",\"updated_at\":\"2018-11-08T17:38:23.058Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":7,\"active\":true,\"account_id\":5,\"unit_id\":8,\"brand\":\"Chevy\",\"name\":\"A7\",\"slug\":\"a7\",\"model\":\"Camero\",\"version\":\"5.3\",\"model_year\":2011,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1580.64\",\"price_value\":1165,\"price\":\"8709.63\",\"category\":\"Convertible\",\"transmission\":\"CVT\",\"km_value\":52169327,\"km\":\"15231393\",\"plate\":\"2997\",\"color\":\"Green\",\"doors\":1,\"fuel\":3,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.064Z\",\"updated_at\":\"2018-11-08T17:38:23.064Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":8,\"active\":true,\"account_id\":2,\"unit_id\":4,\"brand\":\"Nissan\",\"name\":\"Prius\",\"slug\":\"prius\",\"model\":\"Accord\",\"version\":\"7.8\",\"model_year\":2009,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"7129.91\",\"price_value\":2488,\"price\":\"4001.48\",\"category\":\"SUV\",\"transmission\":\"Manual\",\"km_value\":80244772,\"km\":\"48716911\",\"plate\":\"9573\",\"color\":\"Grey\",\"doors\":4,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.069Z\",\"updated_at\":\"2018-11-08T17:38:23.069Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":9,\"active\":false,\"account_id\":7,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Focus\",\"slug\":\"focus\",\"model\":\"LaCrosse\",\"version\":\"1.7\",\"model_year\":2012,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5197.01\",\"price_value\":2028,\"price\":\"8301.38\",\"category\":\"Minivan\",\"transmission\":\"Automatic\",\"km_value\":34215256,\"km\":\"11433071\",\"plate\":\"5603\",\"color\":\"Violet\",\"doors\":1,\"fuel\":5,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.075Z\",\"updated_at\":\"2018-11-08T17:38:23.075Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Ram\",\"slug\":\"cr-v\",\"model\":\"Prius\",\"version\":\"9.5\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1648.31\",\"price_value\":8432,\"price\":\"2056.82\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":47546237,\"km\":\"39672408\",\"plate\":\"4005\",\"color\":\"Yellow\",\"doors\":9,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.080Z\",\"updated_at\":\"2018-11-08T17:38:23.080Z\",\"files_url\":[],\"files_blobs\":[]}],\"total\":10,\"total_pages\":1,\"last_page\":true,\"previous_page\":\"http://www.example.com/api/v1/used_models?include=files_blobs%2Cfiles_url\\u0026page\",\"next_page\":\"http://www.example.com/api/v1/used_models?include=files_blobs%2Cfiles_url\\u0026page\",\"out_of_bounds\":false,\"offset\":0}}}"], ["created_at", "2018-11-26 15:21:24.413080"], ["updated_at", "2018-11-26 15:21:24.413080"]]
214
+  (1.9ms) COMMIT
215
+ Completed 200 OK in 109ms (Views: 1.6ms | ActiveRecord: 7.3ms)
216
+  (0.1ms) BEGIN
217
+  (0.1ms) ROLLBACK
218
+  (0.1ms) BEGIN
219
+  (0.1ms) ROLLBACK
220
+  (0.1ms) BEGIN
221
+ Started GET "/api/v1/used_models?include=filess%2Cfilee" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
222
+ Processing by Apicasso::CrudController#index as HTML
223
+ Parameters: {"include"=>"filess,filee", "resource"=>"used_models"}
224
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "fba34a23ac1641b38815098195806ea8"], ["LIMIT", 1]]
225
+ Completed 400 Bad Request in 2ms (ActiveRecord: 0.3ms)
226
+  (0.2ms) ROLLBACK
227
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models"
228
+ Started GET "/api/v1/used_models/5" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
229
+ Processing by Apicasso::CrudController#show as HTML
230
+ Parameters: {"resource"=>"used_models", "id"=>"5"}
231
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "fba34a23ac1641b38815098195806ea8"], ["LIMIT", 1]]
232
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "5"], ["LIMIT", 1]]
233
+ UsedModel Load (0.8ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]]
234
+  (0.2ms) BEGIN
235
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["LIMIT", 1]]
236
+ Apicasso::Request Create (0.4ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["object", "{\"request\":{\"uuid\":\"046c4fd8-9a94-41af-af41-e3c8a508f9cd\",\"url\":\"http://www.example.com/api/v1/used_models/5\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=fba34a23ac1641b38815098195806ea8\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":5,\"active\":true,\"account_id\":8,\"unit_id\":0,\"brand\":\"Toyota\",\"name\":\"X3\",\"slug\":\"x3\",\"model\":\"Juke\",\"version\":\"3.2\",\"model_year\":2005,\"production_year\":\"2008\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"8812.52\",\"price_value\":9231,\"price\":\"1876.52\",\"category\":\"Hatchback\",\"transmission\":\"Automanual\",\"km_value\":40936712,\"km\":\"19445608\",\"plate\":\"5888\",\"color\":\"Black\",\"doors\":6,\"fuel\":9,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.053Z\",\"updated_at\":\"2018-11-08T17:38:23.053Z\"}}}"], ["created_at", "2018-11-26 15:21:24.448005"], ["updated_at", "2018-11-26 15:21:24.448005"]]
237
+  (2.1ms) COMMIT
238
+ Completed 200 OK in 15ms (Views: 0.6ms | ActiveRecord: 4.6ms)
239
+  (5.5ms) BEGIN
240
+  (0.8ms) ROLLBACK
241
+  (0.2ms) BEGIN
242
+  (0.3ms) ROLLBACK
243
+  (0.1ms) BEGIN
244
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]]
245
+  (0.4ms) ROLLBACK
246
+ UsedModel Load (0.6ms) SELECT "used_models".* FROM "used_models"
247
+ Started GET "/api/v1/used_models/10?select=fuel" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
248
+ Processing by Apicasso::CrudController#show as HTML
249
+ Parameters: {"select"=>"fuel", "resource"=>"used_models", "id"=>"10"}
250
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "fba34a23ac1641b38815098195806ea8"], ["LIMIT", 1]]
251
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "10"], ["LIMIT", 1]]
252
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]]
253
+  (0.2ms) BEGIN
254
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["LIMIT", 1]]
255
+ Apicasso::Request Create (0.5ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["object", "{\"request\":{\"uuid\":\"f86de948-7a6e-4602-80ad-858713573f87\",\"url\":\"http://www.example.com/api/v1/used_models/10?select=fuel\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=fba34a23ac1641b38815098195806ea8\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"fuel\":2}}}"], ["created_at", "2018-11-26 15:21:24.483567"], ["updated_at", "2018-11-26 15:21:24.483567"]]
256
+  (1.9ms) COMMIT
257
+ Completed 200 OK in 15ms (Views: 0.2ms | ActiveRecord: 4.0ms)
258
+  (0.1ms) BEGIN
259
+  (0.1ms) ROLLBACK
260
+  (0.1ms) BEGIN
261
+  (0.1ms) ROLLBACK
262
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models"
263
+ Started GET "/api/v1/used_models/8?include=files_blobs%2Cfiles_url" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
264
+ Processing by Apicasso::CrudController#show as HTML
265
+ Parameters: {"include"=>"files_blobs,files_url", "resource"=>"used_models", "id"=>"8"}
266
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "fba34a23ac1641b38815098195806ea8"], ["LIMIT", 1]]
267
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "8"], ["LIMIT", 1]]
268
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]]
269
+ ActiveStorage::Attachment Load (0.5ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 [["record_id", 8], ["record_type", "UsedModel"], ["name", "files"]]
270
+ ActiveStorage::Blob Load (1.7ms) SELECT "active_storage_blobs".* FROM "active_storage_blobs" INNER JOIN "active_storage_attachments" ON "active_storage_blobs"."id" = "active_storage_attachments"."blob_id" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 [["record_id", 8], ["record_type", "UsedModel"], ["name", "files"]]
271
+  (0.1ms) BEGIN
272
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["LIMIT", 1]]
273
+ Apicasso::Request Create (0.3ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["object", "{\"request\":{\"uuid\":\"2ca487be-0d3e-4be9-86ad-400bf028ab38\",\"url\":\"http://www.example.com/api/v1/used_models/8?include=files_blobs%2Cfiles_url\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=fba34a23ac1641b38815098195806ea8\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":8,\"active\":true,\"account_id\":2,\"unit_id\":4,\"brand\":\"Nissan\",\"name\":\"Prius\",\"slug\":\"prius\",\"model\":\"Accord\",\"version\":\"7.8\",\"model_year\":2009,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"7129.91\",\"price_value\":2488,\"price\":\"4001.48\",\"category\":\"SUV\",\"transmission\":\"Manual\",\"km_value\":80244772,\"km\":\"48716911\",\"plate\":\"9573\",\"color\":\"Grey\",\"doors\":4,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.069Z\",\"updated_at\":\"2018-11-08T17:38:23.069Z\",\"files_url\":[],\"files_blobs\":[]}}}"], ["created_at", "2018-11-26 15:21:24.518823"], ["updated_at", "2018-11-26 15:21:24.518823"]]
274
+  (1.8ms) COMMIT
275
+ Completed 200 OK in 28ms (Views: 0.6ms | ActiveRecord: 9.5ms)
276
+  (0.1ms) BEGIN
277
+  (0.1ms) ROLLBACK
278
+  (0.1ms) BEGIN
279
+  (0.1ms) ROLLBACK
280
+  (0.1ms) BEGIN
281
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
282
+ Started GET "/api/v1/used_models/5?include=filess%2Cfilee" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
283
+ Processing by Apicasso::CrudController#show as HTML
284
+ Parameters: {"include"=>"filess,filee", "resource"=>"used_models", "id"=>"5"}
285
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "fba34a23ac1641b38815098195806ea8"], ["LIMIT", 1]]
286
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.2ms)
287
+  (0.1ms) ROLLBACK
288
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models"
289
+ Started GET "/api/v1/used_models/x3" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
290
+ Processing by Apicasso::CrudController#show as HTML
291
+ Parameters: {"resource"=>"used_models", "id"=>"x3"}
292
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "fba34a23ac1641b38815098195806ea8"], ["LIMIT", 1]]
293
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "x3"], ["LIMIT", 1]]
294
+  (0.1ms) BEGIN
295
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["LIMIT", 1]]
296
+ Apicasso::Request Create (0.3ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["object", "{\"request\":{\"uuid\":\"5616ce02-5dd6-4db4-85fb-09aa788d21c4\",\"url\":\"http://www.example.com/api/v1/used_models/x3\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=fba34a23ac1641b38815098195806ea8\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":5,\"active\":true,\"account_id\":8,\"unit_id\":0,\"brand\":\"Toyota\",\"name\":\"X3\",\"slug\":\"x3\",\"model\":\"Juke\",\"version\":\"3.2\",\"model_year\":2005,\"production_year\":\"2008\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"8812.52\",\"price_value\":9231,\"price\":\"1876.52\",\"category\":\"Hatchback\",\"transmission\":\"Automanual\",\"km_value\":40936712,\"km\":\"19445608\",\"plate\":\"5888\",\"color\":\"Black\",\"doors\":6,\"fuel\":9,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.053Z\",\"updated_at\":\"2018-11-08T17:38:23.053Z\"}}}"], ["created_at", "2018-11-26 15:21:24.540816"], ["updated_at", "2018-11-26 15:21:24.540816"]]
297
+  (1.8ms) COMMIT
298
+ Completed 200 OK in 10ms (Views: 0.3ms | ActiveRecord: 3.1ms)
299
+  (0.1ms) BEGIN
300
+  (0.1ms) ROLLBACK
301
+  (0.1ms) BEGIN
302
+  (0.1ms) ROLLBACK
303
+  (0.1ms) BEGIN
304
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "x3"], ["LIMIT", 1]]
305
+  (0.2ms) ROLLBACK
306
+  (0.6ms) SELECT COUNT(*) FROM "used_models"
307
+ Started POST "/api/v1/used_models/" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
308
+ Processing by Apicasso::CrudController#create as HTML
309
+ Parameters: {"used_model"=>{"active"=>"true", "account_id"=>"4", "unit_id"=>"0", "brand"=>"Toyota", "name"=>"Honda Civic", "model"=>"X5", "slug"=>"beatae", "version"=>"8.2", "model_year"=>"2010", "production_year"=>"2017", "kind"=>"car", "new_vehicle"=>"true", "old_price"=>"7362.91", "price_value"=>"7257.21", "price"=>"2830.84", "category"=>"Cargo Van", "transmission"=>"Automanual", "km_value"=>"47684914", "km"=>"56294807", "plate"=>"5798", "color"=>"Red", "doors"=>"8", "fuel"=>"1", "fuel_text"=>"E-85/Gasoline", "shielded"=>"false"}, "resource"=>"used_models"}
310
+ Apicasso::Key Load (0.5ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "fba34a23ac1641b38815098195806ea8"], ["LIMIT", 1]]
311
+  (0.1ms) BEGIN
312
+ UsedModel Create (2.5ms) INSERT INTO "used_models" ("account_id", "unit_id", "brand", "name", "slug", "model", "version", "model_year", "production_year", "kind", "new_vehicle", "old_price", "price_value", "price", "category", "transmission", "km_value", "km", "plate", "color", "doors", "fuel", "fuel_text", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25) RETURNING "id" [["account_id", 4], ["unit_id", 0], ["brand", "Toyota"], ["name", "Honda Civic"], ["slug", "beatae"], ["model", "X5"], ["version", "8.2"], ["model_year", 2010], ["production_year", "2017"], ["kind", "car"], ["new_vehicle", true], ["old_price", "7362.91"], ["price_value", 7257], ["price", "2830.84"], ["category", "Cargo Van"], ["transmission", "Automanual"], ["km_value", 47684914], ["km", "56294807"], ["plate", "5798"], ["color", "Red"], ["doors", 8], ["fuel", 1], ["fuel_text", "E-85/Gasoline"], ["created_at", "2018-11-26 15:21:24.573321"], ["updated_at", "2018-11-26 15:21:24.573321"]]
313
+  (2.0ms) COMMIT
314
+  (0.2ms) BEGIN
315
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["LIMIT", 1]]
316
+ Apicasso::Request Create (0.4ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["object", "{\"request\":{\"uuid\":\"7469edd6-99fa-4fee-a0d5-d9c1a522b071\",\"url\":\"http://www.example.com/api/v1/used_models/\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=fba34a23ac1641b38815098195806ea8\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":201,\"body\":{\"id\":51,\"active\":true,\"account_id\":4,\"unit_id\":0,\"brand\":\"Toyota\",\"name\":\"Honda Civic\",\"slug\":\"beatae\",\"model\":\"X5\",\"version\":\"8.2\",\"model_year\":2010,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"7362.91\",\"price_value\":7257,\"price\":\"2830.84\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":47684914,\"km\":\"56294807\",\"plate\":\"5798\",\"color\":\"Red\",\"doors\":8,\"fuel\":1,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:21:24.573Z\",\"updated_at\":\"2018-11-26T15:21:24.573Z\"}}}"], ["created_at", "2018-11-26 15:21:24.583322"], ["updated_at", "2018-11-26 15:21:24.583322"]]
317
+  (2.2ms) COMMIT
318
+ Completed 201 Created in 19ms (Views: 0.1ms | ActiveRecord: 8.1ms)
319
+  (0.1ms) BEGIN
320
+  (0.1ms) ROLLBACK
321
+  (0.1ms) BEGIN
322
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
323
+  (0.1ms) ROLLBACK
324
+  (0.1ms) BEGIN
325
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "beatae"], ["LIMIT", 1]]
326
+  (0.1ms) ROLLBACK
327
+  (0.1ms) BEGIN
328
+ Started POST "/api/v1/used_models/" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
329
+ Processing by Apicasso::CrudController#create as HTML
330
+ Parameters: {"used_model"=>{"slug"=>"cr-v"}, "resource"=>"used_models"}
331
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "fba34a23ac1641b38815098195806ea8"], ["LIMIT", 1]]
332
+  (0.3ms) SAVEPOINT active_record_1
333
+  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1
334
+  (0.2ms) SAVEPOINT active_record_1
335
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["LIMIT", 1]]
336
+ Apicasso::Request Create (0.7ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["object", "{\"request\":{\"uuid\":\"443466ed-a0d3-47be-8add-c3e2dd62ed78\",\"url\":\"http://www.example.com/api/v1/used_models/\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=fba34a23ac1641b38815098195806ea8\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":422,\"body\":{\"account_id\":[\"can't be blank\"],\"unit_id\":[\"can't be blank\"]}}}"], ["created_at", "2018-11-26 15:21:24.613169"], ["updated_at", "2018-11-26 15:21:24.613169"]]
337
+  (0.6ms) RELEASE SAVEPOINT active_record_1
338
+ Completed 422 Unprocessable Entity in 15ms (Views: 0.2ms | ActiveRecord: 2.6ms)
339
+  (0.2ms) ROLLBACK
340
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models"
341
+ Started PATCH "/api/v1/used_models/6" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
342
+ Processing by Apicasso::CrudController#update as HTML
343
+ Parameters: {"used_model"=>{"name"=>"eum"}, "resource"=>"used_models", "id"=>"6"}
344
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "fba34a23ac1641b38815098195806ea8"], ["LIMIT", 1]]
345
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "6"], ["LIMIT", 1]]
346
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
347
+  (0.1ms) BEGIN
348
+ UsedModel Update (0.4ms) UPDATE "used_models" SET "name" = $1, "updated_at" = $2 WHERE "used_models"."id" = $3 [["name", "eum"], ["updated_at", "2018-11-26 15:21:24.628285"], ["id", 6]]
349
+  (2.1ms) COMMIT
350
+  (0.6ms) BEGIN
351
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["LIMIT", 1]]
352
+ Apicasso::Request Create (0.4ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["object", "{\"request\":{\"uuid\":\"007b286e-b025-4aa9-a7d4-b31865acf394\",\"url\":\"http://www.example.com/api/v1/used_models/6\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=fba34a23ac1641b38815098195806ea8\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":6,\"name\":\"eum\",\"slug\":\"durango-9d02071a-77c0-403b-bc46-c7161408f812\",\"account_id\":0,\"unit_id\":2,\"active\":true,\"brand\":\"Honda\",\"model\":\"MKZ\",\"version\":\"4.9\",\"model_year\":2008,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7058.43\",\"price_value\":5808,\"price\":\"8617.65\",\"category\":\"Coupe\",\"transmission\":\"Automanual\",\"km_value\":43250550,\"km\":\"34167150\",\"plate\":\"6998\",\"color\":\"Green\",\"doors\":1,\"fuel\":9,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.058Z\",\"updated_at\":\"2018-11-26T15:21:24.628Z\"}}}"], ["created_at", "2018-11-26 15:21:24.638442"], ["updated_at", "2018-11-26 15:21:24.638442"]]
353
+  (2.0ms) COMMIT
354
+ Completed 200 OK in 21ms (Views: 0.1ms | ActiveRecord: 7.4ms)
355
+  (0.1ms) BEGIN
356
+  (0.1ms) ROLLBACK
357
+  (0.1ms) BEGIN
358
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
359
+  (0.2ms) ROLLBACK
360
+  (0.4ms) BEGIN
361
+ UsedModel Load (0.7ms) SELECT "used_models".* FROM "used_models"
362
+ Started PATCH "/api/v1/used_models/51" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
363
+ Processing by Apicasso::CrudController#update as HTML
364
+ Parameters: {"used_model"=>{"unit_id"=>nil}, "resource"=>"used_models", "id"=>"51"}
365
+ Apicasso::Key Load (0.5ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "fba34a23ac1641b38815098195806ea8"], ["LIMIT", 1]]
366
+ UsedModel Load (0.6ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "51"], ["LIMIT", 1]]
367
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 51], ["LIMIT", 1]]
368
+  (0.2ms) SAVEPOINT active_record_1
369
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
370
+  (0.3ms) SAVEPOINT active_record_1
371
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["LIMIT", 1]]
372
+ Apicasso::Request Create (0.3ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["object", "{\"request\":{\"uuid\":\"dde5b486-ac44-4aef-8866-25184cac9950\",\"url\":\"http://www.example.com/api/v1/used_models/51\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=fba34a23ac1641b38815098195806ea8\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":422,\"body\":{\"unit_id\":[\"can't be blank\"]}}}"], ["created_at", "2018-11-26 15:21:24.668882"], ["updated_at", "2018-11-26 15:21:24.668882"]]
373
+  (0.1ms) RELEASE SAVEPOINT active_record_1
374
+ Completed 422 Unprocessable Entity in 14ms (Views: 0.2ms | ActiveRecord: 2.9ms)
375
+  (0.1ms) ROLLBACK
376
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
377
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models"
378
+ Started DELETE "/api/v1/used_models/3" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
379
+ Processing by Apicasso::CrudController#destroy as HTML
380
+ Parameters: {"resource"=>"used_models", "id"=>"3"}
381
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "fba34a23ac1641b38815098195806ea8"], ["LIMIT", 1]]
382
+ UsedModel Load (0.6ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "3"], ["LIMIT", 1]]
383
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
384
+  (0.3ms) BEGIN
385
+ UsedModel Destroy (0.6ms) DELETE FROM "used_models" WHERE "used_models"."id" = $1 [["id", 3]]
386
+  (1.9ms) COMMIT
387
+ ActiveStorage::Attachment Load (0.3ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 [["record_id", 3], ["record_type", "UsedModel"], ["name", "files"]]
388
+ ActiveStorage::Attachment Load (0.3ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 3], ["record_type", "UsedModel"], ["name", "file_highlighted"], ["LIMIT", 1]]
389
+  (0.1ms) BEGIN
390
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["LIMIT", 1]]
391
+ Apicasso::Request Create (0.5ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "0888b933-34d9-430f-94b1-45f09bbc9b62"], ["object", "{\"request\":{\"uuid\":\"5f3613c9-097c-4f5d-891f-b8fad214e2a7\",\"url\":\"http://www.example.com/api/v1/used_models/3\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=fba34a23ac1641b38815098195806ea8\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":204,\"body\":\"\"}}"], ["created_at", "2018-11-26 15:21:24.693816"], ["updated_at", "2018-11-26 15:21:24.693816"]]
392
+  (2.1ms) COMMIT
393
+ Completed 204 No Content in 24ms (ActiveRecord: 8.0ms)
394
+  (0.2ms) BEGIN
395
+  (0.3ms) ROLLBACK
396
+  (0.1ms) BEGIN
397
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
398
+  (0.1ms) ROLLBACK
399
+  (0.1ms) BEGIN
400
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
401
+  (0.2ms) ROLLBACK
402
+  (0.1ms) BEGIN
403
+ Started GET "/api/v1/used_model?group%5Bby%5D=brand&group%5Bcalculate%5D=count&group%5Bfields%5D=%27OR+1%3D1%3B" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
404
+ Processing by Apicasso::CrudController#index as HTML
405
+ Parameters: {"group"=>{"by"=>"brand", "calculate"=>"count", "fields"=>"'OR 1=1;"}, "resource"=>"used_model"}
406
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "1e7e1f1ab2944db1a8755e00e049ca24"], ["LIMIT", 1]]
407
+ Completed 400 Bad Request in 3ms (ActiveRecord: 0.4ms)
408
+  (0.3ms) ROLLBACK
409
+  (0.1ms) BEGIN
410
+ Started GET "/api/v1/used_model?per_page=-1&sort=%27OR+1%3D1%3B" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
411
+ Processing by Apicasso::CrudController#index as HTML
412
+ Parameters: {"per_page"=>"-1", "sort"=>"'OR 1=1;", "resource"=>"used_model"}
413
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "1e7e1f1ab2944db1a8755e00e049ca24"], ["LIMIT", 1]]
414
+ Completed 400 Bad Request in 2ms (ActiveRecord: 0.4ms)
415
+  (0.1ms) ROLLBACK
416
+  (0.1ms) BEGIN
417
+ Started GET "/api/v1/used_model?include=%27OR+1%3D1%3B" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
418
+ Processing by Apicasso::CrudController#index as HTML
419
+ Parameters: {"include"=>"'OR 1=1;", "resource"=>"used_model"}
420
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "1e7e1f1ab2944db1a8755e00e049ca24"], ["LIMIT", 1]]
421
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.3ms)
422
+  (0.2ms) ROLLBACK
423
+  (0.1ms) BEGIN
424
+ Started GET "/api/v1/admins" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
425
+ Processing by Apicasso::CrudController#index as HTML
426
+ Parameters: {"resource"=>"admins"}
427
+ Completed 400 Bad Request in 9ms (ActiveRecord: 0.0ms)
428
+  (0.8ms) ROLLBACK
429
+  (0.1ms) BEGIN
430
+ Started GET "/api/v1/used_model/1/admins" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
431
+ Processing by Apicasso::CrudController#nested_index as HTML
432
+ Parameters: {"resource"=>"used_model", "id"=>"1", "nested"=>"admins"}
433
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
434
+  (0.1ms) ROLLBACK
435
+  (0.1ms) BEGIN
436
+ Started GET "/api/v1/used_model?include=admins" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
437
+ Processing by Apicasso::CrudController#index as HTML
438
+ Parameters: {"include"=>"admins", "resource"=>"used_model"}
439
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "1e7e1f1ab2944db1a8755e00e049ca24"], ["LIMIT", 1]]
440
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.3ms)
441
+  (0.1ms) ROLLBACK
442
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
443
+ Processing by Apicasso::CrudController#index as HTML
444
+ Parameters: {"resource"=>"used_model"}
445
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "890620d282af4f94af31c7ea675cc097"], ["LIMIT", 1]]
446
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
447
+  (0.7ms) SELECT COUNT(*) FROM "used_models"
448
+  (0.2ms) BEGIN
449
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["LIMIT", 1]]
450
+ Apicasso::Request Create (0.4ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["object", "{\"request\":{\"uuid\":\"a016cec8-e69d-4a50-b22f-069981002d06\",\"url\":\"http://www.example.com/api/v1/used_model\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=890620d282af4f94af31c7ea675cc097\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":1,\"active\":false,\"account_id\":8,\"unit_id\":3,\"brand\":\"Buick\",\"name\":\"M5\",\"slug\":\"m5\",\"model\":\"Odyssey\",\"version\":\"3.8\",\"model_year\":2017,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"4719.56\",\"price_value\":8533,\"price\":\"3805.29\",\"category\":\"Regular Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":43961194,\"km\":\"59551357\",\"plate\":\"2033\",\"color\":\"Beige\",\"doors\":6,\"fuel\":3,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.029Z\",\"updated_at\":\"2018-11-08T17:38:23.029Z\"},{\"id\":2,\"active\":false,\"account_id\":1,\"unit_id\":5,\"brand\":\"Audi\",\"name\":\"Civic\",\"slug\":\"civic\",\"model\":\"A5\",\"version\":\"2.2\",\"model_year\":2016,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1294.34\",\"price_value\":8525,\"price\":\"5665.78\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":51090415,\"km\":\"96433648\",\"plate\":\"9510\",\"color\":\"Black\",\"doors\":8,\"fuel\":0,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.036Z\",\"updated_at\":\"2018-11-08T17:38:23.036Z\"},{\"id\":4,\"active\":false,\"account_id\":7,\"unit_id\":1,\"brand\":\"Chevy\",\"name\":\"Durango\",\"slug\":\"durango\",\"model\":\"Camero\",\"version\":\"8.5\",\"model_year\":2018,\"production_year\":\"2012\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2300.77\",\"price_value\":1516,\"price\":\"2245.59\",\"category\":\"Wagon\",\"transmission\":\"Automatic\",\"km_value\":78271823,\"km\":\"95493414\",\"plate\":\"2689\",\"color\":\"Red\",\"doors\":7,\"fuel\":1,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.047Z\",\"updated_at\":\"2018-11-08T17:38:23.047Z\"},{\"id\":5,\"active\":true,\"account_id\":8,\"unit_id\":0,\"brand\":\"Toyota\",\"name\":\"X3\",\"slug\":\"x3\",\"model\":\"Juke\",\"version\":\"3.2\",\"model_year\":2005,\"production_year\":\"2008\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"8812.52\",\"price_value\":9231,\"price\":\"1876.52\",\"category\":\"Hatchback\",\"transmission\":\"Automanual\",\"km_value\":40936712,\"km\":\"19445608\",\"plate\":\"5888\",\"color\":\"Black\",\"doors\":6,\"fuel\":9,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.053Z\",\"updated_at\":\"2018-11-08T17:38:23.053Z\"},{\"id\":7,\"active\":true,\"account_id\":5,\"unit_id\":8,\"brand\":\"Chevy\",\"name\":\"A7\",\"slug\":\"a7\",\"model\":\"Camero\",\"version\":\"5.3\",\"model_year\":2011,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1580.64\",\"price_value\":1165,\"price\":\"8709.63\",\"category\":\"Convertible\",\"transmission\":\"CVT\",\"km_value\":52169327,\"km\":\"15231393\",\"plate\":\"2997\",\"color\":\"Green\",\"doors\":1,\"fuel\":3,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.064Z\",\"updated_at\":\"2018-11-08T17:38:23.064Z\"},{\"id\":8,\"active\":true,\"account_id\":2,\"unit_id\":4,\"brand\":\"Nissan\",\"name\":\"Prius\",\"slug\":\"prius\",\"model\":\"Accord\",\"version\":\"7.8\",\"model_year\":2009,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"7129.91\",\"price_value\":2488,\"price\":\"4001.48\",\"category\":\"SUV\",\"transmission\":\"Manual\",\"km_value\":80244772,\"km\":\"48716911\",\"plate\":\"9573\",\"color\":\"Grey\",\"doors\":4,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.069Z\",\"updated_at\":\"2018-11-08T17:38:23.069Z\"},{\"id\":9,\"active\":false,\"account_id\":7,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Focus\",\"slug\":\"focus\",\"model\":\"LaCrosse\",\"version\":\"1.7\",\"model_year\":2012,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5197.01\",\"price_value\":2028,\"price\":\"8301.38\",\"category\":\"Minivan\",\"transmission\":\"Automatic\",\"km_value\":34215256,\"km\":\"11433071\",\"plate\":\"5603\",\"color\":\"Violet\",\"doors\":1,\"fuel\":5,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.075Z\",\"updated_at\":\"2018-11-08T17:38:23.075Z\"},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Ram\",\"slug\":\"cr-v\",\"model\":\"Prius\",\"version\":\"9.5\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1648.31\",\"price_value\":8432,\"price\":\"2056.82\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":47546237,\"km\":\"39672408\",\"plate\":\"4005\",\"color\":\"Yellow\",\"doors\":9,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.080Z\",\"updated_at\":\"2018-11-08T17:38:23.080Z\"},{\"id\":51,\"active\":true,\"account_id\":4,\"unit_id\":0,\"brand\":\"Toyota\",\"name\":\"Honda Civic\",\"slug\":\"beatae\",\"model\":\"X5\",\"version\":\"8.2\",\"model_year\":2010,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"7362.91\",\"price_value\":7257,\"price\":\"2830.84\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":47684914,\"km\":\"56294807\",\"plate\":\"5798\",\"color\":\"Red\",\"doors\":8,\"fuel\":1,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:21:24.573Z\",\"updated_at\":\"2018-11-26T15:21:24.573Z\"},{\"id\":6,\"active\":true,\"account_id\":0,\"unit_id\":2,\"brand\":\"Honda\",\"name\":\"eum\",\"slug\":\"durango-9d02071a-77c0-403b-bc46-c7161408f812\",\"model\":\"MKZ\",\"version\":\"4.9\",\"model_year\":2008,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7058.43\",\"price_value\":5808,\"price\":\"8617.65\",\"category\":\"Coupe\",\"transmission\":\"Automanual\",\"km_value\":43250550,\"km\":\"34167150\",\"plate\":\"6998\",\"color\":\"Green\",\"doors\":1,\"fuel\":9,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.058Z\",\"updated_at\":\"2018-11-26T15:21:24.628Z\"}],\"total\":10,\"total_pages\":1,\"last_page\":true,\"previous_page\":\"http://www.example.com/api/v1/used_model?page\",\"next_page\":\"http://www.example.com/api/v1/used_model?page\",\"out_of_bounds\":false,\"offset\":0}}}"], ["created_at", "2018-11-26 15:21:24.759341"], ["updated_at", "2018-11-26 15:21:24.759341"]]
451
+  (3.1ms) COMMIT
452
+ Completed 200 OK in 26ms (Views: 4.6ms | ActiveRecord: 5.4ms)
453
+  (0.1ms) BEGIN
454
+  (0.2ms) ROLLBACK
455
+  (0.1ms) BEGIN
456
+  (0.5ms) SELECT COUNT(*) FROM "used_models"
457
+  (0.2ms) ROLLBACK
458
+ Started GET "/api/v1/used_model?per_page=-1" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
459
+ Processing by Apicasso::CrudController#index as HTML
460
+ Parameters: {"per_page"=>"-1", "resource"=>"used_model"}
461
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "890620d282af4f94af31c7ea675cc097"], ["LIMIT", 1]]
462
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
463
+  (0.2ms) BEGIN
464
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["LIMIT", 1]]
465
+ Apicasso::Request Create (1.3ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["object", "{\"request\":{\"uuid\":\"a122d6e2-f3d5-4899-92f1-f08b5c4f3413\",\"url\":\"http://www.example.com/api/v1/used_model?per_page=-1\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=890620d282af4f94af31c7ea675cc097\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":1,\"active\":false,\"account_id\":8,\"unit_id\":3,\"brand\":\"Buick\",\"name\":\"M5\",\"slug\":\"m5\",\"model\":\"Odyssey\",\"version\":\"3.8\",\"model_year\":2017,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"4719.56\",\"price_value\":8533,\"price\":\"3805.29\",\"category\":\"Regular Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":43961194,\"km\":\"59551357\",\"plate\":\"2033\",\"color\":\"Beige\",\"doors\":6,\"fuel\":3,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.029Z\",\"updated_at\":\"2018-11-08T17:38:23.029Z\"},{\"id\":2,\"active\":false,\"account_id\":1,\"unit_id\":5,\"brand\":\"Audi\",\"name\":\"Civic\",\"slug\":\"civic\",\"model\":\"A5\",\"version\":\"2.2\",\"model_year\":2016,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1294.34\",\"price_value\":8525,\"price\":\"5665.78\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":51090415,\"km\":\"96433648\",\"plate\":\"9510\",\"color\":\"Black\",\"doors\":8,\"fuel\":0,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.036Z\",\"updated_at\":\"2018-11-08T17:38:23.036Z\"},{\"id\":4,\"active\":false,\"account_id\":7,\"unit_id\":1,\"brand\":\"Chevy\",\"name\":\"Durango\",\"slug\":\"durango\",\"model\":\"Camero\",\"version\":\"8.5\",\"model_year\":2018,\"production_year\":\"2012\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2300.77\",\"price_value\":1516,\"price\":\"2245.59\",\"category\":\"Wagon\",\"transmission\":\"Automatic\",\"km_value\":78271823,\"km\":\"95493414\",\"plate\":\"2689\",\"color\":\"Red\",\"doors\":7,\"fuel\":1,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.047Z\",\"updated_at\":\"2018-11-08T17:38:23.047Z\"},{\"id\":5,\"active\":true,\"account_id\":8,\"unit_id\":0,\"brand\":\"Toyota\",\"name\":\"X3\",\"slug\":\"x3\",\"model\":\"Juke\",\"version\":\"3.2\",\"model_year\":2005,\"production_year\":\"2008\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"8812.52\",\"price_value\":9231,\"price\":\"1876.52\",\"category\":\"Hatchback\",\"transmission\":\"Automanual\",\"km_value\":40936712,\"km\":\"19445608\",\"plate\":\"5888\",\"color\":\"Black\",\"doors\":6,\"fuel\":9,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.053Z\",\"updated_at\":\"2018-11-08T17:38:23.053Z\"},{\"id\":7,\"active\":true,\"account_id\":5,\"unit_id\":8,\"brand\":\"Chevy\",\"name\":\"A7\",\"slug\":\"a7\",\"model\":\"Camero\",\"version\":\"5.3\",\"model_year\":2011,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1580.64\",\"price_value\":1165,\"price\":\"8709.63\",\"category\":\"Convertible\",\"transmission\":\"CVT\",\"km_value\":52169327,\"km\":\"15231393\",\"plate\":\"2997\",\"color\":\"Green\",\"doors\":1,\"fuel\":3,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.064Z\",\"updated_at\":\"2018-11-08T17:38:23.064Z\"},{\"id\":8,\"active\":true,\"account_id\":2,\"unit_id\":4,\"brand\":\"Nissan\",\"name\":\"Prius\",\"slug\":\"prius\",\"model\":\"Accord\",\"version\":\"7.8\",\"model_year\":2009,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"7129.91\",\"price_value\":2488,\"price\":\"4001.48\",\"category\":\"SUV\",\"transmission\":\"Manual\",\"km_value\":80244772,\"km\":\"48716911\",\"plate\":\"9573\",\"color\":\"Grey\",\"doors\":4,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.069Z\",\"updated_at\":\"2018-11-08T17:38:23.069Z\"},{\"id\":9,\"active\":false,\"account_id\":7,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Focus\",\"slug\":\"focus\",\"model\":\"LaCrosse\",\"version\":\"1.7\",\"model_year\":2012,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5197.01\",\"price_value\":2028,\"price\":\"8301.38\",\"category\":\"Minivan\",\"transmission\":\"Automatic\",\"km_value\":34215256,\"km\":\"11433071\",\"plate\":\"5603\",\"color\":\"Violet\",\"doors\":1,\"fuel\":5,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.075Z\",\"updated_at\":\"2018-11-08T17:38:23.075Z\"},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Ram\",\"slug\":\"cr-v\",\"model\":\"Prius\",\"version\":\"9.5\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1648.31\",\"price_value\":8432,\"price\":\"2056.82\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":47546237,\"km\":\"39672408\",\"plate\":\"4005\",\"color\":\"Yellow\",\"doors\":9,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.080Z\",\"updated_at\":\"2018-11-08T17:38:23.080Z\"},{\"id\":51,\"active\":true,\"account_id\":4,\"unit_id\":0,\"brand\":\"Toyota\",\"name\":\"Honda Civic\",\"slug\":\"beatae\",\"model\":\"X5\",\"version\":\"8.2\",\"model_year\":2010,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"7362.91\",\"price_value\":7257,\"price\":\"2830.84\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":47684914,\"km\":\"56294807\",\"plate\":\"5798\",\"color\":\"Red\",\"doors\":8,\"fuel\":1,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:21:24.573Z\",\"updated_at\":\"2018-11-26T15:21:24.573Z\"},{\"id\":6,\"active\":true,\"account_id\":0,\"unit_id\":2,\"brand\":\"Honda\",\"name\":\"eum\",\"slug\":\"durango-9d02071a-77c0-403b-bc46-c7161408f812\",\"model\":\"MKZ\",\"version\":\"4.9\",\"model_year\":2008,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7058.43\",\"price_value\":5808,\"price\":\"8617.65\",\"category\":\"Coupe\",\"transmission\":\"Automanual\",\"km_value\":43250550,\"km\":\"34167150\",\"plate\":\"6998\",\"color\":\"Green\",\"doors\":1,\"fuel\":9,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.058Z\",\"updated_at\":\"2018-11-26T15:21:24.628Z\"}],\"total\":10}}}"], ["created_at", "2018-11-26 15:21:24.792679"], ["updated_at", "2018-11-26 15:21:24.792679"]]
466
+  (1.9ms) COMMIT
467
+ Completed 200 OK in 27ms (Views: 4.6ms | ActiveRecord: 4.3ms)
468
+  (0.1ms) BEGIN
469
+  (0.1ms) ROLLBACK
470
+  (0.1ms) BEGIN
471
+  (0.5ms) SELECT COUNT(*) FROM "used_models"
472
+  (0.2ms) ROLLBACK
473
+ Started GET "/api/v1/used_model?per_page=3&page=2" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
474
+ Processing by Apicasso::CrudController#index as HTML
475
+ Parameters: {"per_page"=>"3", "page"=>"2", "resource"=>"used_model"}
476
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "890620d282af4f94af31c7ea675cc097"], ["LIMIT", 1]]
477
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 3], ["OFFSET", 3]]
478
+  (0.4ms) SELECT COUNT(*) FROM "used_models"
479
+  (0.2ms) BEGIN
480
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["LIMIT", 1]]
481
+ Apicasso::Request Create (0.9ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["object", "{\"request\":{\"uuid\":\"ce733d60-4132-4079-8391-0a2dbcae0bf7\",\"url\":\"http://www.example.com/api/v1/used_model?per_page=3\\u0026page=2\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=890620d282af4f94af31c7ea675cc097\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":5,\"active\":true,\"account_id\":8,\"unit_id\":0,\"brand\":\"Toyota\",\"name\":\"X3\",\"slug\":\"x3\",\"model\":\"Juke\",\"version\":\"3.2\",\"model_year\":2005,\"production_year\":\"2008\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"8812.52\",\"price_value\":9231,\"price\":\"1876.52\",\"category\":\"Hatchback\",\"transmission\":\"Automanual\",\"km_value\":40936712,\"km\":\"19445608\",\"plate\":\"5888\",\"color\":\"Black\",\"doors\":6,\"fuel\":9,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.053Z\",\"updated_at\":\"2018-11-08T17:38:23.053Z\"},{\"id\":7,\"active\":true,\"account_id\":5,\"unit_id\":8,\"brand\":\"Chevy\",\"name\":\"A7\",\"slug\":\"a7\",\"model\":\"Camero\",\"version\":\"5.3\",\"model_year\":2011,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1580.64\",\"price_value\":1165,\"price\":\"8709.63\",\"category\":\"Convertible\",\"transmission\":\"CVT\",\"km_value\":52169327,\"km\":\"15231393\",\"plate\":\"2997\",\"color\":\"Green\",\"doors\":1,\"fuel\":3,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.064Z\",\"updated_at\":\"2018-11-08T17:38:23.064Z\"},{\"id\":8,\"active\":true,\"account_id\":2,\"unit_id\":4,\"brand\":\"Nissan\",\"name\":\"Prius\",\"slug\":\"prius\",\"model\":\"Accord\",\"version\":\"7.8\",\"model_year\":2009,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"7129.91\",\"price_value\":2488,\"price\":\"4001.48\",\"category\":\"SUV\",\"transmission\":\"Manual\",\"km_value\":80244772,\"km\":\"48716911\",\"plate\":\"9573\",\"color\":\"Grey\",\"doors\":4,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.069Z\",\"updated_at\":\"2018-11-08T17:38:23.069Z\"}],\"total\":10,\"total_pages\":4,\"last_page\":false,\"previous_page\":\"http://www.example.com/api/v1/used_model?per_page=3\\u0026page=1\",\"next_page\":\"http://www.example.com/api/v1/used_model?per_page=3\\u0026page=3\",\"out_of_bounds\":false,\"offset\":3}}}"], ["created_at", "2018-11-26 15:21:24.824331"], ["updated_at", "2018-11-26 15:21:24.824331"]]
482
+  (1.9ms) COMMIT
483
+ Completed 200 OK in 18ms (Views: 1.7ms | ActiveRecord: 4.5ms)
484
+  (0.1ms) BEGIN
485
+  (0.1ms) ROLLBACK
486
+  (0.1ms) BEGIN
487
+  (0.3ms) ROLLBACK
488
+ Started GET "/api/v1/used_model?q%5Bbrand_matches%5D=Honda" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
489
+ Processing by Apicasso::CrudController#index as HTML
490
+ Parameters: {"q"=>{"brand_matches"=>"Honda"}, "resource"=>"used_model"}
491
+ Apicasso::Key Load (0.1ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "890620d282af4f94af31c7ea675cc097"], ["LIMIT", 1]]
492
+ UsedModel Load (0.7ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."brand" ILIKE 'Honda' LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
493
+  (0.3ms) SELECT COUNT(*) FROM "used_models" WHERE "used_models"."brand" ILIKE 'Honda'
494
+  (0.2ms) BEGIN
495
+ Apicasso::Key Load (0.6ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["LIMIT", 1]]
496
+ Apicasso::Request Create (0.5ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["object", "{\"request\":{\"uuid\":\"fdda85af-782b-4f74-b745-3daf9a807130\",\"url\":\"http://www.example.com/api/v1/used_model?q%5Bbrand_matches%5D=Honda\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=890620d282af4f94af31c7ea675cc097\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":6,\"active\":true,\"account_id\":0,\"unit_id\":2,\"brand\":\"Honda\",\"name\":\"eum\",\"slug\":\"durango-9d02071a-77c0-403b-bc46-c7161408f812\",\"model\":\"MKZ\",\"version\":\"4.9\",\"model_year\":2008,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7058.43\",\"price_value\":5808,\"price\":\"8617.65\",\"category\":\"Coupe\",\"transmission\":\"Automanual\",\"km_value\":43250550,\"km\":\"34167150\",\"plate\":\"6998\",\"color\":\"Green\",\"doors\":1,\"fuel\":9,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.058Z\",\"updated_at\":\"2018-11-26T15:21:24.628Z\"}],\"total\":1,\"total_pages\":1,\"last_page\":true,\"previous_page\":\"http://www.example.com/api/v1/used_model?q%5Bbrand_matches%5D=Honda\\u0026page\",\"next_page\":\"http://www.example.com/api/v1/used_model?q%5Bbrand_matches%5D=Honda\\u0026page\",\"out_of_bounds\":false,\"offset\":0}}}"], ["created_at", "2018-11-26 15:21:24.847245"], ["updated_at", "2018-11-26 15:21:24.847245"]]
497
+  (1.9ms) COMMIT
498
+ Completed 200 OK in 19ms (Views: 0.7ms | ActiveRecord: 4.4ms)
499
+  (0.1ms) BEGIN
500
+  (0.1ms) ROLLBACK
501
+  (0.1ms) BEGIN
502
+  (0.1ms) ROLLBACK
503
+ Started GET "/api/v1/used_model?group%5Bby%5D=km_value&group%5Bcalculate%5D=count&group%5Bfields%5D=km" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
504
+ Processing by Apicasso::CrudController#index as HTML
505
+ Parameters: {"group"=>{"by"=>"km_value", "calculate"=>"count", "fields"=>"km"}, "resource"=>"used_model"}
506
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "890620d282af4f94af31c7ea675cc097"], ["LIMIT", 1]]
507
+  (0.3ms) SELECT COUNT(*) AS count_all, "used_models"."km_value" AS used_models_km_value FROM "used_models" GROUP BY "used_models"."km_value"
508
+  (0.2ms) BEGIN
509
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["LIMIT", 1]]
510
+ Apicasso::Request Create (0.7ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["object", "{\"request\":{\"uuid\":\"f195c9fc-0444-44af-ac9b-80a9d0056772\",\"url\":\"http://www.example.com/api/v1/used_model?group%5Bby%5D=km_value\\u0026group%5Bcalculate%5D=count\\u0026group%5Bfields%5D=km\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=890620d282af4f94af31c7ea675cc097\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"47546237\":1,\"51090415\":1,\"43961194\":1,\"52169327\":1,\"43250550\":1,\"80244772\":1,\"34215256\":1,\"78271823\":1,\"47684914\":1,\"40936712\":1}}}"], ["created_at", "2018-11-26 15:21:24.864308"], ["updated_at", "2018-11-26 15:21:24.864308"]]
511
+  (3.2ms) COMMIT
512
+ Completed 200 OK in 12ms (Views: 0.4ms | ActiveRecord: 4.9ms)
513
+  (0.1ms) BEGIN
514
+  (0.1ms) ROLLBACK
515
+  (0.1ms) BEGIN
516
+  (0.3ms) SELECT COUNT(*) AS count_all, "used_models"."km_value" AS used_models_km_value FROM "used_models" WHERE (km is NOT NULL) GROUP BY "used_models"."km_value"
517
+  (0.1ms) ROLLBACK
518
+ Started GET "/api/v1/used_model?per_page=-1&sort=%2Bbrand%2C%2Bmodel" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
519
+ Processing by Apicasso::CrudController#index as HTML
520
+ Parameters: {"per_page"=>"-1", "sort"=>"+brand,+model", "resource"=>"used_model"}
521
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "890620d282af4f94af31c7ea675cc097"], ["LIMIT", 1]]
522
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" ORDER BY "used_models"."brand" ASC, "used_models"."model" ASC
523
+  (0.2ms) BEGIN
524
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["LIMIT", 1]]
525
+ Apicasso::Request Create (0.4ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["object", "{\"request\":{\"uuid\":\"4b37ffd9-7746-4c9c-8dcc-a70044c0e76c\",\"url\":\"http://www.example.com/api/v1/used_model?per_page=-1\\u0026sort=%2Bbrand%2C%2Bmodel\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=890620d282af4f94af31c7ea675cc097\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":2,\"active\":false,\"account_id\":1,\"unit_id\":5,\"brand\":\"Audi\",\"name\":\"Civic\",\"slug\":\"civic\",\"model\":\"A5\",\"version\":\"2.2\",\"model_year\":2016,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1294.34\",\"price_value\":8525,\"price\":\"5665.78\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":51090415,\"km\":\"96433648\",\"plate\":\"9510\",\"color\":\"Black\",\"doors\":8,\"fuel\":0,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.036Z\",\"updated_at\":\"2018-11-08T17:38:23.036Z\"},{\"id\":1,\"active\":false,\"account_id\":8,\"unit_id\":3,\"brand\":\"Buick\",\"name\":\"M5\",\"slug\":\"m5\",\"model\":\"Odyssey\",\"version\":\"3.8\",\"model_year\":2017,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"4719.56\",\"price_value\":8533,\"price\":\"3805.29\",\"category\":\"Regular Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":43961194,\"km\":\"59551357\",\"plate\":\"2033\",\"color\":\"Beige\",\"doors\":6,\"fuel\":3,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.029Z\",\"updated_at\":\"2018-11-08T17:38:23.029Z\"},{\"id\":4,\"active\":false,\"account_id\":7,\"unit_id\":1,\"brand\":\"Chevy\",\"name\":\"Durango\",\"slug\":\"durango\",\"model\":\"Camero\",\"version\":\"8.5\",\"model_year\":2018,\"production_year\":\"2012\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2300.77\",\"price_value\":1516,\"price\":\"2245.59\",\"category\":\"Wagon\",\"transmission\":\"Automatic\",\"km_value\":78271823,\"km\":\"95493414\",\"plate\":\"2689\",\"color\":\"Red\",\"doors\":7,\"fuel\":1,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.047Z\",\"updated_at\":\"2018-11-08T17:38:23.047Z\"},{\"id\":7,\"active\":true,\"account_id\":5,\"unit_id\":8,\"brand\":\"Chevy\",\"name\":\"A7\",\"slug\":\"a7\",\"model\":\"Camero\",\"version\":\"5.3\",\"model_year\":2011,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1580.64\",\"price_value\":1165,\"price\":\"8709.63\",\"category\":\"Convertible\",\"transmission\":\"CVT\",\"km_value\":52169327,\"km\":\"15231393\",\"plate\":\"2997\",\"color\":\"Green\",\"doors\":1,\"fuel\":3,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.064Z\",\"updated_at\":\"2018-11-08T17:38:23.064Z\"},{\"id\":9,\"active\":false,\"account_id\":7,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Focus\",\"slug\":\"focus\",\"model\":\"LaCrosse\",\"version\":\"1.7\",\"model_year\":2012,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5197.01\",\"price_value\":2028,\"price\":\"8301.38\",\"category\":\"Minivan\",\"transmission\":\"Automatic\",\"km_value\":34215256,\"km\":\"11433071\",\"plate\":\"5603\",\"color\":\"Violet\",\"doors\":1,\"fuel\":5,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.075Z\",\"updated_at\":\"2018-11-08T17:38:23.075Z\"},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Ram\",\"slug\":\"cr-v\",\"model\":\"Prius\",\"version\":\"9.5\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1648.31\",\"price_value\":8432,\"price\":\"2056.82\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":47546237,\"km\":\"39672408\",\"plate\":\"4005\",\"color\":\"Yellow\",\"doors\":9,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.080Z\",\"updated_at\":\"2018-11-08T17:38:23.080Z\"},{\"id\":6,\"active\":true,\"account_id\":0,\"unit_id\":2,\"brand\":\"Honda\",\"name\":\"eum\",\"slug\":\"durango-9d02071a-77c0-403b-bc46-c7161408f812\",\"model\":\"MKZ\",\"version\":\"4.9\",\"model_year\":2008,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7058.43\",\"price_value\":5808,\"price\":\"8617.65\",\"category\":\"Coupe\",\"transmission\":\"Automanual\",\"km_value\":43250550,\"km\":\"34167150\",\"plate\":\"6998\",\"color\":\"Green\",\"doors\":1,\"fuel\":9,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.058Z\",\"updated_at\":\"2018-11-26T15:21:24.628Z\"},{\"id\":8,\"active\":true,\"account_id\":2,\"unit_id\":4,\"brand\":\"Nissan\",\"name\":\"Prius\",\"slug\":\"prius\",\"model\":\"Accord\",\"version\":\"7.8\",\"model_year\":2009,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"7129.91\",\"price_value\":2488,\"price\":\"4001.48\",\"category\":\"SUV\",\"transmission\":\"Manual\",\"km_value\":80244772,\"km\":\"48716911\",\"plate\":\"9573\",\"color\":\"Grey\",\"doors\":4,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.069Z\",\"updated_at\":\"2018-11-08T17:38:23.069Z\"},{\"id\":5,\"active\":true,\"account_id\":8,\"unit_id\":0,\"brand\":\"Toyota\",\"name\":\"X3\",\"slug\":\"x3\",\"model\":\"Juke\",\"version\":\"3.2\",\"model_year\":2005,\"production_year\":\"2008\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"8812.52\",\"price_value\":9231,\"price\":\"1876.52\",\"category\":\"Hatchback\",\"transmission\":\"Automanual\",\"km_value\":40936712,\"km\":\"19445608\",\"plate\":\"5888\",\"color\":\"Black\",\"doors\":6,\"fuel\":9,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.053Z\",\"updated_at\":\"2018-11-08T17:38:23.053Z\"},{\"id\":51,\"active\":true,\"account_id\":4,\"unit_id\":0,\"brand\":\"Toyota\",\"name\":\"Honda Civic\",\"slug\":\"beatae\",\"model\":\"X5\",\"version\":\"8.2\",\"model_year\":2010,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"7362.91\",\"price_value\":7257,\"price\":\"2830.84\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":47684914,\"km\":\"56294807\",\"plate\":\"5798\",\"color\":\"Red\",\"doors\":8,\"fuel\":1,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:21:24.573Z\",\"updated_at\":\"2018-11-26T15:21:24.573Z\"}],\"total\":10}}}"], ["created_at", "2018-11-26 15:21:24.888358"], ["updated_at", "2018-11-26 15:21:24.888358"]]
526
+  (1.8ms) COMMIT
527
+ Completed 200 OK in 23ms (Views: 4.8ms | ActiveRecord: 3.3ms)
528
+  (0.1ms) BEGIN
529
+  (0.2ms) ROLLBACK
530
+  (0.1ms) BEGIN
531
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" ORDER BY "used_models"."brand" ASC, "used_models"."model" ASC
532
+  (0.2ms) ROLLBACK
533
+ Started GET "/api/v1/used_model?select=deleted_at" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
534
+ Processing by Apicasso::CrudController#index as HTML
535
+ Parameters: {"select"=>"deleted_at", "resource"=>"used_model"}
536
+ Apicasso::Key Load (0.1ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "890620d282af4f94af31c7ea675cc097"], ["LIMIT", 1]]
537
+ UsedModel Load (0.4ms) SELECT "used_models"."deleted_at" FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
538
+  (0.3ms) SELECT COUNT("used_models"."deleted_at") FROM "used_models"
539
+  (0.1ms) BEGIN
540
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["LIMIT", 1]]
541
+ Apicasso::Request Create (0.3ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["object", "{\"request\":{\"uuid\":\"471f4a7d-f385-418f-9ba7-36c2b86ec8c6\",\"url\":\"http://www.example.com/api/v1/used_model?select=deleted_at\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=890620d282af4f94af31c7ea675cc097\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":null,\"deleted_at\":null},{\"id\":null,\"deleted_at\":null},{\"id\":null,\"deleted_at\":null},{\"id\":null,\"deleted_at\":null},{\"id\":null,\"deleted_at\":null},{\"id\":null,\"deleted_at\":null},{\"id\":null,\"deleted_at\":null},{\"id\":null,\"deleted_at\":null},{\"id\":null,\"deleted_at\":null},{\"id\":null,\"deleted_at\":null}],\"total\":0,\"total_pages\":1,\"last_page\":true,\"previous_page\":\"http://www.example.com/api/v1/used_model?select=deleted_at\\u0026page\",\"next_page\":\"http://www.example.com/api/v1/used_model?select=deleted_at\\u0026page\",\"out_of_bounds\":false,\"offset\":0}}}"], ["created_at", "2018-11-26 15:21:24.911018"], ["updated_at", "2018-11-26 15:21:24.911018"]]
542
+  (1.9ms) COMMIT
543
+ Completed 200 OK in 10ms (Views: 0.3ms | ActiveRecord: 3.3ms)
544
+  (0.1ms) BEGIN
545
+  (0.6ms) ROLLBACK
546
+  (0.1ms) BEGIN
547
+  (0.2ms) ROLLBACK
548
+ Started GET "/api/v1/used_model?include=files_blobs%2Cfiles_url" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
549
+ Processing by Apicasso::CrudController#index as HTML
550
+ Parameters: {"include"=>"files_blobs,files_url", "resource"=>"used_model"}
551
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "890620d282af4f94af31c7ea675cc097"], ["LIMIT", 1]]
552
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
553
+ ActiveStorage::Attachment Load (0.4ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_type" = $1 AND "active_storage_attachments"."name" = $2 AND "active_storage_attachments"."record_id" IN ($3, $4, $5, $6, $7, $8, $9, $10, $11, $12) [["record_type", "UsedModel"], ["name", "files"], ["record_id", 1], ["record_id", 2], ["record_id", 4], ["record_id", 5], ["record_id", 7], ["record_id", 8], ["record_id", 9], ["record_id", 10], ["record_id", 51], ["record_id", 6]]
554
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
555
+  (0.1ms) BEGIN
556
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["LIMIT", 1]]
557
+ Apicasso::Request Create (0.7ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["object", "{\"request\":{\"uuid\":\"1e50f88a-e9f2-4f3e-90af-4ff351cff353\",\"url\":\"http://www.example.com/api/v1/used_model?include=files_blobs%2Cfiles_url\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=890620d282af4f94af31c7ea675cc097\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":1,\"active\":false,\"account_id\":8,\"unit_id\":3,\"brand\":\"Buick\",\"name\":\"M5\",\"slug\":\"m5\",\"model\":\"Odyssey\",\"version\":\"3.8\",\"model_year\":2017,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"4719.56\",\"price_value\":8533,\"price\":\"3805.29\",\"category\":\"Regular Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":43961194,\"km\":\"59551357\",\"plate\":\"2033\",\"color\":\"Beige\",\"doors\":6,\"fuel\":3,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.029Z\",\"updated_at\":\"2018-11-08T17:38:23.029Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":2,\"active\":false,\"account_id\":1,\"unit_id\":5,\"brand\":\"Audi\",\"name\":\"Civic\",\"slug\":\"civic\",\"model\":\"A5\",\"version\":\"2.2\",\"model_year\":2016,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1294.34\",\"price_value\":8525,\"price\":\"5665.78\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":51090415,\"km\":\"96433648\",\"plate\":\"9510\",\"color\":\"Black\",\"doors\":8,\"fuel\":0,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.036Z\",\"updated_at\":\"2018-11-08T17:38:23.036Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":4,\"active\":false,\"account_id\":7,\"unit_id\":1,\"brand\":\"Chevy\",\"name\":\"Durango\",\"slug\":\"durango\",\"model\":\"Camero\",\"version\":\"8.5\",\"model_year\":2018,\"production_year\":\"2012\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2300.77\",\"price_value\":1516,\"price\":\"2245.59\",\"category\":\"Wagon\",\"transmission\":\"Automatic\",\"km_value\":78271823,\"km\":\"95493414\",\"plate\":\"2689\",\"color\":\"Red\",\"doors\":7,\"fuel\":1,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.047Z\",\"updated_at\":\"2018-11-08T17:38:23.047Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":5,\"active\":true,\"account_id\":8,\"unit_id\":0,\"brand\":\"Toyota\",\"name\":\"X3\",\"slug\":\"x3\",\"model\":\"Juke\",\"version\":\"3.2\",\"model_year\":2005,\"production_year\":\"2008\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"8812.52\",\"price_value\":9231,\"price\":\"1876.52\",\"category\":\"Hatchback\",\"transmission\":\"Automanual\",\"km_value\":40936712,\"km\":\"19445608\",\"plate\":\"5888\",\"color\":\"Black\",\"doors\":6,\"fuel\":9,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.053Z\",\"updated_at\":\"2018-11-08T17:38:23.053Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":7,\"active\":true,\"account_id\":5,\"unit_id\":8,\"brand\":\"Chevy\",\"name\":\"A7\",\"slug\":\"a7\",\"model\":\"Camero\",\"version\":\"5.3\",\"model_year\":2011,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1580.64\",\"price_value\":1165,\"price\":\"8709.63\",\"category\":\"Convertible\",\"transmission\":\"CVT\",\"km_value\":52169327,\"km\":\"15231393\",\"plate\":\"2997\",\"color\":\"Green\",\"doors\":1,\"fuel\":3,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.064Z\",\"updated_at\":\"2018-11-08T17:38:23.064Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":8,\"active\":true,\"account_id\":2,\"unit_id\":4,\"brand\":\"Nissan\",\"name\":\"Prius\",\"slug\":\"prius\",\"model\":\"Accord\",\"version\":\"7.8\",\"model_year\":2009,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"7129.91\",\"price_value\":2488,\"price\":\"4001.48\",\"category\":\"SUV\",\"transmission\":\"Manual\",\"km_value\":80244772,\"km\":\"48716911\",\"plate\":\"9573\",\"color\":\"Grey\",\"doors\":4,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.069Z\",\"updated_at\":\"2018-11-08T17:38:23.069Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":9,\"active\":false,\"account_id\":7,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Focus\",\"slug\":\"focus\",\"model\":\"LaCrosse\",\"version\":\"1.7\",\"model_year\":2012,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5197.01\",\"price_value\":2028,\"price\":\"8301.38\",\"category\":\"Minivan\",\"transmission\":\"Automatic\",\"km_value\":34215256,\"km\":\"11433071\",\"plate\":\"5603\",\"color\":\"Violet\",\"doors\":1,\"fuel\":5,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.075Z\",\"updated_at\":\"2018-11-08T17:38:23.075Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Ram\",\"slug\":\"cr-v\",\"model\":\"Prius\",\"version\":\"9.5\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1648.31\",\"price_value\":8432,\"price\":\"2056.82\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":47546237,\"km\":\"39672408\",\"plate\":\"4005\",\"color\":\"Yellow\",\"doors\":9,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.080Z\",\"updated_at\":\"2018-11-08T17:38:23.080Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":51,\"active\":true,\"account_id\":4,\"unit_id\":0,\"brand\":\"Toyota\",\"name\":\"Honda Civic\",\"slug\":\"beatae\",\"model\":\"X5\",\"version\":\"8.2\",\"model_year\":2010,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"7362.91\",\"price_value\":7257,\"price\":\"2830.84\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":47684914,\"km\":\"56294807\",\"plate\":\"5798\",\"color\":\"Red\",\"doors\":8,\"fuel\":1,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:21:24.573Z\",\"updated_at\":\"2018-11-26T15:21:24.573Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":6,\"active\":true,\"account_id\":0,\"unit_id\":2,\"brand\":\"Honda\",\"name\":\"eum\",\"slug\":\"durango-9d02071a-77c0-403b-bc46-c7161408f812\",\"model\":\"MKZ\",\"version\":\"4.9\",\"model_year\":2008,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7058.43\",\"price_value\":5808,\"price\":\"8617.65\",\"category\":\"Coupe\",\"transmission\":\"Automanual\",\"km_value\":43250550,\"km\":\"34167150\",\"plate\":\"6998\",\"color\":\"Green\",\"doors\":1,\"fuel\":9,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.058Z\",\"updated_at\":\"2018-11-26T15:21:24.628Z\",\"files_url\":[],\"files_blobs\":[]}],\"total\":10,\"total_pages\":1,\"last_page\":true,\"previous_page\":\"http://www.example.com/api/v1/used_model?include=files_blobs%2Cfiles_url\\u0026page\",\"next_page\":\"http://www.example.com/api/v1/used_model?include=files_blobs%2Cfiles_url\\u0026page\",\"out_of_bounds\":false,\"offset\":0}}}"], ["created_at", "2018-11-26 15:21:24.939105"], ["updated_at", "2018-11-26 15:21:24.939105"]]
558
+  (1.8ms) COMMIT
559
+ Completed 200 OK in 34ms (Views: 4.4ms | ActiveRecord: 4.2ms)
560
+  (0.1ms) BEGIN
561
+  (0.1ms) ROLLBACK
562
+  (0.1ms) BEGIN
563
+  (0.1ms) ROLLBACK
564
+  (0.1ms) BEGIN
565
+ Started GET "/api/v1/used_model?include=filess%2Cfilee" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
566
+ Processing by Apicasso::CrudController#index as HTML
567
+ Parameters: {"include"=>"filess,filee", "resource"=>"used_model"}
568
+ Apicasso::Key Load (0.5ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "890620d282af4f94af31c7ea675cc097"], ["LIMIT", 1]]
569
+ Completed 400 Bad Request in 2ms (ActiveRecord: 0.5ms)
570
+  (0.7ms) ROLLBACK
571
+ UsedModel Load (0.6ms) SELECT "used_models".* FROM "used_models"
572
+ Started GET "/api/v1/used_model/2" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
573
+ Processing by Apicasso::CrudController#show as HTML
574
+ Parameters: {"resource"=>"used_model", "id"=>"2"}
575
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "890620d282af4f94af31c7ea675cc097"], ["LIMIT", 1]]
576
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "2"], ["LIMIT", 1]]
577
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]]
578
+  (0.1ms) BEGIN
579
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["LIMIT", 1]]
580
+ Apicasso::Request Create (0.5ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["object", "{\"request\":{\"uuid\":\"6ec87b95-b0bb-4dc2-ac09-44539e98ca92\",\"url\":\"http://www.example.com/api/v1/used_model/2\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=890620d282af4f94af31c7ea675cc097\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":2,\"active\":false,\"account_id\":1,\"unit_id\":5,\"brand\":\"Audi\",\"name\":\"Civic\",\"slug\":\"civic\",\"model\":\"A5\",\"version\":\"2.2\",\"model_year\":2016,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1294.34\",\"price_value\":8525,\"price\":\"5665.78\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":51090415,\"km\":\"96433648\",\"plate\":\"9510\",\"color\":\"Black\",\"doors\":8,\"fuel\":0,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.036Z\",\"updated_at\":\"2018-11-08T17:38:23.036Z\"}}}"], ["created_at", "2018-11-26 15:21:24.981719"], ["updated_at", "2018-11-26 15:21:24.981719"]]
581
+  (1.9ms) COMMIT
582
+ Completed 200 OK in 12ms (Views: 0.3ms | ActiveRecord: 4.0ms)
583
+  (0.1ms) BEGIN
584
+  (0.2ms) ROLLBACK
585
+  (0.1ms) BEGIN
586
+  (0.1ms) ROLLBACK
587
+  (0.1ms) BEGIN
588
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]]
589
+  (0.3ms) ROLLBACK
590
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models"
591
+ Started GET "/api/v1/used_model/2?select=note" for 127.0.0.1 at 2018-11-26 12:21:24 -0300
592
+ Processing by Apicasso::CrudController#show as HTML
593
+ Parameters: {"select"=>"note", "resource"=>"used_model", "id"=>"2"}
594
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "890620d282af4f94af31c7ea675cc097"], ["LIMIT", 1]]
595
+ UsedModel Load (1.2ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "2"], ["LIMIT", 1]]
596
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]]
597
+  (0.1ms) BEGIN
598
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["LIMIT", 1]]
599
+ Apicasso::Request Create (0.5ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["object", "{\"request\":{\"uuid\":\"1de5caca-f68f-4aa6-8e1f-4b499c48cea8\",\"url\":\"http://www.example.com/api/v1/used_model/2?select=note\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=890620d282af4f94af31c7ea675cc097\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"note\":null}}}"], ["created_at", "2018-11-26 15:21:25.004962"], ["updated_at", "2018-11-26 15:21:25.004962"]]
600
+  (2.2ms) COMMIT
601
+ Completed 200 OK in 13ms (Views: 0.1ms | ActiveRecord: 4.7ms)
602
+  (0.1ms) BEGIN
603
+  (0.2ms) ROLLBACK
604
+  (0.2ms) BEGIN
605
+  (0.2ms) ROLLBACK
606
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models"
607
+ Started GET "/api/v1/used_model/1?include=files_blobs%2Cfiles_url" for 127.0.0.1 at 2018-11-26 12:21:25 -0300
608
+ Processing by Apicasso::CrudController#show as HTML
609
+ Parameters: {"include"=>"files_blobs,files_url", "resource"=>"used_model", "id"=>"1"}
610
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "890620d282af4f94af31c7ea675cc097"], ["LIMIT", 1]]
611
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "1"], ["LIMIT", 1]]
612
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
613
+ ActiveStorage::Attachment Load (0.5ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 [["record_id", 1], ["record_type", "UsedModel"], ["name", "files"]]
614
+ ActiveStorage::Blob Load (0.6ms) SELECT "active_storage_blobs".* FROM "active_storage_blobs" INNER JOIN "active_storage_attachments" ON "active_storage_blobs"."id" = "active_storage_attachments"."blob_id" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 [["record_id", 1], ["record_type", "UsedModel"], ["name", "files"]]
615
+  (0.1ms) BEGIN
616
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["LIMIT", 1]]
617
+ Apicasso::Request Create (0.8ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["object", "{\"request\":{\"uuid\":\"ee45cc64-1235-4885-8deb-49374eacc834\",\"url\":\"http://www.example.com/api/v1/used_model/1?include=files_blobs%2Cfiles_url\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=890620d282af4f94af31c7ea675cc097\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":1,\"active\":false,\"account_id\":8,\"unit_id\":3,\"brand\":\"Buick\",\"name\":\"M5\",\"slug\":\"m5\",\"model\":\"Odyssey\",\"version\":\"3.8\",\"model_year\":2017,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"4719.56\",\"price_value\":8533,\"price\":\"3805.29\",\"category\":\"Regular Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":43961194,\"km\":\"59551357\",\"plate\":\"2033\",\"color\":\"Beige\",\"doors\":6,\"fuel\":3,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.029Z\",\"updated_at\":\"2018-11-08T17:38:23.029Z\",\"files_url\":[],\"files_blobs\":[]}}}"], ["created_at", "2018-11-26 15:21:25.029914"], ["updated_at", "2018-11-26 15:21:25.029914"]]
618
+  (2.1ms) COMMIT
619
+ Completed 200 OK in 15ms (Views: 0.5ms | ActiveRecord: 5.4ms)
620
+  (0.2ms) BEGIN
621
+  (0.3ms) ROLLBACK
622
+  (0.1ms) BEGIN
623
+  (0.1ms) ROLLBACK
624
+  (0.1ms) BEGIN
625
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
626
+ Started GET "/api/v1/used_model/9?include=filess%2Cfilee" for 127.0.0.1 at 2018-11-26 12:21:25 -0300
627
+ Processing by Apicasso::CrudController#show as HTML
628
+ Parameters: {"include"=>"filess,filee", "resource"=>"used_model", "id"=>"9"}
629
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "890620d282af4f94af31c7ea675cc097"], ["LIMIT", 1]]
630
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.2ms)
631
+  (0.1ms) ROLLBACK
632
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
633
+ Started GET "/api/v1/used_model/cr-v" for 127.0.0.1 at 2018-11-26 12:21:25 -0300
634
+ Processing by Apicasso::CrudController#show as HTML
635
+ Parameters: {"resource"=>"used_model", "id"=>"cr-v"}
636
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "890620d282af4f94af31c7ea675cc097"], ["LIMIT", 1]]
637
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "cr-v"], ["LIMIT", 1]]
638
+  (0.3ms) BEGIN
639
+ Apicasso::Key Load (0.8ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["LIMIT", 1]]
640
+ Apicasso::Request Create (0.5ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["object", "{\"request\":{\"uuid\":\"77c85c27-18ab-45eb-8913-5029ea316beb\",\"url\":\"http://www.example.com/api/v1/used_model/cr-v\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=890620d282af4f94af31c7ea675cc097\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Ram\",\"slug\":\"cr-v\",\"model\":\"Prius\",\"version\":\"9.5\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1648.31\",\"price_value\":8432,\"price\":\"2056.82\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":47546237,\"km\":\"39672408\",\"plate\":\"4005\",\"color\":\"Yellow\",\"doors\":9,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.080Z\",\"updated_at\":\"2018-11-08T17:38:23.080Z\"}}}"], ["created_at", "2018-11-26 15:21:25.052855"], ["updated_at", "2018-11-26 15:21:25.052855"]]
641
+  (2.0ms) COMMIT
642
+ Completed 200 OK in 13ms (Views: 0.3ms | ActiveRecord: 4.2ms)
643
+  (0.1ms) BEGIN
644
+  (0.1ms) ROLLBACK
645
+  (0.1ms) BEGIN
646
+  (0.1ms) ROLLBACK
647
+  (0.1ms) BEGIN
648
+ UsedModel Load (0.2ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "cr-v"], ["LIMIT", 1]]
649
+  (0.1ms) ROLLBACK
650
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
651
+ Started POST "/api/v1/used_model/" for 127.0.0.1 at 2018-11-26 12:21:25 -0300
652
+ Processing by Apicasso::CrudController#create as HTML
653
+ Parameters: {"used_model"=>{"active"=>"true", "account_id"=>"9", "unit_id"=>"7", "brand"=>"Lincoln", "name"=>"Dodge Charger", "model"=>"Navigator", "slug"=>"voluptatum", "version"=>"8.0", "model_year"=>"2008", "production_year"=>"2018", "kind"=>"car", "new_vehicle"=>"true", "old_price"=>"9964.29", "price_value"=>"1748.65", "price"=>"9110.94", "category"=>"Minivan", "transmission"=>"Manual", "km_value"=>"65916645", "km"=>"94890803", "plate"=>"5229", "color"=>"Orange", "doors"=>"5", "fuel"=>"4", "fuel_text"=>"Compressed Natural Gas", "shielded"=>"false"}, "resource"=>"used_model"}
654
+ Apicasso::Key Load (0.5ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "890620d282af4f94af31c7ea675cc097"], ["LIMIT", 1]]
655
+  (0.1ms) BEGIN
656
+ UsedModel Create (0.3ms) INSERT INTO "used_models" ("account_id", "unit_id", "brand", "name", "slug", "model", "version", "model_year", "production_year", "kind", "new_vehicle", "old_price", "price_value", "price", "category", "transmission", "km_value", "km", "plate", "color", "doors", "fuel", "fuel_text", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25) RETURNING "id" [["account_id", 9], ["unit_id", 7], ["brand", "Lincoln"], ["name", "Dodge Charger"], ["slug", "voluptatum"], ["model", "Navigator"], ["version", "8.0"], ["model_year", 2008], ["production_year", "2018"], ["kind", "car"], ["new_vehicle", true], ["old_price", "9964.29"], ["price_value", 1748], ["price", "9110.94"], ["category", "Minivan"], ["transmission", "Manual"], ["km_value", 65916645], ["km", "94890803"], ["plate", "5229"], ["color", "Orange"], ["doors", 5], ["fuel", 4], ["fuel_text", "Compressed Natural Gas"], ["created_at", "2018-11-26 15:21:25.070555"], ["updated_at", "2018-11-26 15:21:25.070555"]]
657
+  (2.1ms) COMMIT
658
+  (0.1ms) BEGIN
659
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["LIMIT", 1]]
660
+ Apicasso::Request Create (0.3ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["object", "{\"request\":{\"uuid\":\"62239f3e-43f2-4bf4-a082-33080385c71a\",\"url\":\"http://www.example.com/api/v1/used_model/\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=890620d282af4f94af31c7ea675cc097\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":201,\"body\":{\"id\":52,\"active\":true,\"account_id\":9,\"unit_id\":7,\"brand\":\"Lincoln\",\"name\":\"Dodge Charger\",\"slug\":\"voluptatum\",\"model\":\"Navigator\",\"version\":\"8.0\",\"model_year\":2008,\"production_year\":\"2018\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"9964.29\",\"price_value\":1748,\"price\":\"9110.94\",\"category\":\"Minivan\",\"transmission\":\"Manual\",\"km_value\":65916645,\"km\":\"94890803\",\"plate\":\"5229\",\"color\":\"Orange\",\"doors\":5,\"fuel\":4,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:21:25.070Z\",\"updated_at\":\"2018-11-26T15:21:25.070Z\"}}}"], ["created_at", "2018-11-26 15:21:25.076457"], ["updated_at", "2018-11-26 15:21:25.076457"]]
661
+  (1.9ms) COMMIT
662
+ Completed 201 Created in 13ms (Views: 0.1ms | ActiveRecord: 5.4ms)
663
+  (0.1ms) BEGIN
664
+  (0.1ms) ROLLBACK
665
+  (0.1ms) BEGIN
666
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
667
+  (0.1ms) ROLLBACK
668
+  (0.3ms) BEGIN
669
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "voluptatum"], ["LIMIT", 1]]
670
+  (0.1ms) ROLLBACK
671
+  (0.3ms) BEGIN
672
+ Started POST "/api/v1/used_model/" for 127.0.0.1 at 2018-11-26 12:21:25 -0300
673
+ Processing by Apicasso::CrudController#create as HTML
674
+ Parameters: {"used_model"=>{"slug"=>"cr-v"}, "resource"=>"used_model"}
675
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "890620d282af4f94af31c7ea675cc097"], ["LIMIT", 1]]
676
+  (0.2ms) SAVEPOINT active_record_1
677
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
678
+  (0.1ms) SAVEPOINT active_record_1
679
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["LIMIT", 1]]
680
+ Apicasso::Request Create (0.6ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["object", "{\"request\":{\"uuid\":\"764b6ad1-bda8-4f0e-bd39-677c6399fee6\",\"url\":\"http://www.example.com/api/v1/used_model/\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=890620d282af4f94af31c7ea675cc097\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":422,\"body\":{\"account_id\":[\"can't be blank\"],\"unit_id\":[\"can't be blank\"]}}}"], ["created_at", "2018-11-26 15:21:25.095831"], ["updated_at", "2018-11-26 15:21:25.095831"]]
681
+  (0.2ms) RELEASE SAVEPOINT active_record_1
682
+ Completed 422 Unprocessable Entity in 10ms (Views: 0.1ms | ActiveRecord: 1.8ms)
683
+  (0.5ms) ROLLBACK
684
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models"
685
+ Started PATCH "/api/v1/used_model/6" for 127.0.0.1 at 2018-11-26 12:21:25 -0300
686
+ Processing by Apicasso::CrudController#update as HTML
687
+ Parameters: {"used_model"=>{"name"=>"in"}, "resource"=>"used_model", "id"=>"6"}
688
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "890620d282af4f94af31c7ea675cc097"], ["LIMIT", 1]]
689
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "6"], ["LIMIT", 1]]
690
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
691
+  (0.2ms) BEGIN
692
+ UsedModel Update (0.4ms) UPDATE "used_models" SET "name" = $1, "updated_at" = $2 WHERE "used_models"."id" = $3 [["name", "in"], ["updated_at", "2018-11-26 15:21:25.108807"], ["id", 6]]
693
+  (1.9ms) COMMIT
694
+  (0.1ms) BEGIN
695
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["LIMIT", 1]]
696
+ Apicasso::Request Create (0.4ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["object", "{\"request\":{\"uuid\":\"99db0ae5-7db0-4532-abc1-9d12970783d0\",\"url\":\"http://www.example.com/api/v1/used_model/6\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=890620d282af4f94af31c7ea675cc097\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":6,\"name\":\"in\",\"slug\":\"durango-9d02071a-77c0-403b-bc46-c7161408f812\",\"account_id\":0,\"unit_id\":2,\"active\":true,\"brand\":\"Honda\",\"model\":\"MKZ\",\"version\":\"4.9\",\"model_year\":2008,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7058.43\",\"price_value\":5808,\"price\":\"8617.65\",\"category\":\"Coupe\",\"transmission\":\"Automanual\",\"km_value\":43250550,\"km\":\"34167150\",\"plate\":\"6998\",\"color\":\"Green\",\"doors\":1,\"fuel\":9,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.058Z\",\"updated_at\":\"2018-11-26T15:21:25.108Z\"}}}"], ["created_at", "2018-11-26 15:21:25.114607"], ["updated_at", "2018-11-26 15:21:25.114607"]]
697
+  (2.0ms) COMMIT
698
+ Completed 200 OK in 15ms (Views: 0.1ms | ActiveRecord: 6.1ms)
699
+  (0.2ms) BEGIN
700
+  (0.3ms) ROLLBACK
701
+  (0.1ms) BEGIN
702
+ UsedModel Load (0.2ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
703
+  (0.1ms) ROLLBACK
704
+  (0.1ms) BEGIN
705
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
706
+ Started PATCH "/api/v1/used_model/10" for 127.0.0.1 at 2018-11-26 12:21:25 -0300
707
+ Processing by Apicasso::CrudController#update as HTML
708
+ Parameters: {"used_model"=>{"unit_id"=>nil}, "resource"=>"used_model", "id"=>"10"}
709
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "890620d282af4f94af31c7ea675cc097"], ["LIMIT", 1]]
710
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "10"], ["LIMIT", 1]]
711
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]]
712
+  (0.1ms) SAVEPOINT active_record_1
713
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
714
+  (0.1ms) SAVEPOINT active_record_1
715
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["LIMIT", 1]]
716
+ Apicasso::Request Create (0.5ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["object", "{\"request\":{\"uuid\":\"d3384825-8c55-4f78-a557-6cd9e0b10b2b\",\"url\":\"http://www.example.com/api/v1/used_model/10\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=890620d282af4f94af31c7ea675cc097\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":422,\"body\":{\"unit_id\":[\"can't be blank\"]}}}"], ["created_at", "2018-11-26 15:21:25.133134"], ["updated_at", "2018-11-26 15:21:25.133134"]]
717
+  (0.1ms) RELEASE SAVEPOINT active_record_1
718
+ Completed 422 Unprocessable Entity in 9ms (Views: 0.1ms | ActiveRecord: 2.0ms)
719
+  (0.3ms) ROLLBACK
720
+  (0.4ms) SELECT COUNT(*) FROM "used_models"
721
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models"
722
+ Started DELETE "/api/v1/used_model/51" for 127.0.0.1 at 2018-11-26 12:21:25 -0300
723
+ Processing by Apicasso::CrudController#destroy as HTML
724
+ Parameters: {"resource"=>"used_model", "id"=>"51"}
725
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "890620d282af4f94af31c7ea675cc097"], ["LIMIT", 1]]
726
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "51"], ["LIMIT", 1]]
727
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 51], ["LIMIT", 1]]
728
+  (0.1ms) BEGIN
729
+ UsedModel Destroy (0.2ms) DELETE FROM "used_models" WHERE "used_models"."id" = $1 [["id", 51]]
730
+  (2.0ms) COMMIT
731
+ ActiveStorage::Attachment Load (0.3ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 [["record_id", 51], ["record_type", "UsedModel"], ["name", "files"]]
732
+ ActiveStorage::Attachment Load (0.3ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 51], ["record_type", "UsedModel"], ["name", "file_highlighted"], ["LIMIT", 1]]
733
+  (0.1ms) BEGIN
734
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["LIMIT", 1]]
735
+ Apicasso::Request Create (0.3ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "66f3e7e8-399c-437b-9e79-aac1cc50a39c"], ["object", "{\"request\":{\"uuid\":\"2fb8069d-3325-4444-893b-11564bf58721\",\"url\":\"http://www.example.com/api/v1/used_model/51\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=890620d282af4f94af31c7ea675cc097\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":204,\"body\":\"\"}}"], ["created_at", "2018-11-26 15:21:25.154876"], ["updated_at", "2018-11-26 15:21:25.154876"]]
736
+  (1.9ms) COMMIT
737
+ Completed 204 No Content in 15ms (ActiveRecord: 6.4ms)
738
+  (0.1ms) BEGIN
739
+  (0.2ms) ROLLBACK
740
+  (0.1ms) BEGIN
741
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
742
+  (0.1ms) ROLLBACK
743
+  (0.1ms) BEGIN
744
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 51], ["LIMIT", 1]]
745
+  (0.2ms) ROLLBACK
746
+  (0.1ms) BEGIN
747
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-26 12:21:25 -0300
748
+ Processing by Apicasso::CrudController#index as HTML
749
+ Parameters: {"resource"=>"used_model"}
750
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "219ac3e6bd254e76a568cf75cbfe10b0"], ["LIMIT", 1]]
751
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
752
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
753
+  (0.1ms) SAVEPOINT active_record_1
754
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "8aae3513-bb4e-4abb-b235-8f0a62e2d7c2"], ["LIMIT", 1]]
755
+ Apicasso::Request Create (0.5ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "8aae3513-bb4e-4abb-b235-8f0a62e2d7c2"], ["object", "{\"request\":{\"uuid\":\"d3bdc954-665e-4c18-97c8-267ce256a334\",\"url\":\"http://www.example.com/api/v1/used_model\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=219ac3e6bd254e76a568cf75cbfe10b0\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":1,\"active\":false,\"account_id\":8,\"unit_id\":3,\"brand\":\"Buick\",\"name\":\"M5\",\"slug\":\"m5\",\"model\":\"Odyssey\",\"version\":\"3.8\",\"model_year\":2017,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"4719.56\",\"price_value\":8533,\"price\":\"3805.29\",\"category\":\"Regular Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":43961194,\"km\":\"59551357\",\"plate\":\"2033\",\"color\":\"Beige\",\"doors\":6,\"fuel\":3,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.029Z\",\"updated_at\":\"2018-11-08T17:38:23.029Z\"},{\"id\":2,\"active\":false,\"account_id\":1,\"unit_id\":5,\"brand\":\"Audi\",\"name\":\"Civic\",\"slug\":\"civic\",\"model\":\"A5\",\"version\":\"2.2\",\"model_year\":2016,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1294.34\",\"price_value\":8525,\"price\":\"5665.78\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":51090415,\"km\":\"96433648\",\"plate\":\"9510\",\"color\":\"Black\",\"doors\":8,\"fuel\":0,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.036Z\",\"updated_at\":\"2018-11-08T17:38:23.036Z\"},{\"id\":4,\"active\":false,\"account_id\":7,\"unit_id\":1,\"brand\":\"Chevy\",\"name\":\"Durango\",\"slug\":\"durango\",\"model\":\"Camero\",\"version\":\"8.5\",\"model_year\":2018,\"production_year\":\"2012\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2300.77\",\"price_value\":1516,\"price\":\"2245.59\",\"category\":\"Wagon\",\"transmission\":\"Automatic\",\"km_value\":78271823,\"km\":\"95493414\",\"plate\":\"2689\",\"color\":\"Red\",\"doors\":7,\"fuel\":1,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.047Z\",\"updated_at\":\"2018-11-08T17:38:23.047Z\"},{\"id\":5,\"active\":true,\"account_id\":8,\"unit_id\":0,\"brand\":\"Toyota\",\"name\":\"X3\",\"slug\":\"x3\",\"model\":\"Juke\",\"version\":\"3.2\",\"model_year\":2005,\"production_year\":\"2008\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"8812.52\",\"price_value\":9231,\"price\":\"1876.52\",\"category\":\"Hatchback\",\"transmission\":\"Automanual\",\"km_value\":40936712,\"km\":\"19445608\",\"plate\":\"5888\",\"color\":\"Black\",\"doors\":6,\"fuel\":9,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.053Z\",\"updated_at\":\"2018-11-08T17:38:23.053Z\"},{\"id\":7,\"active\":true,\"account_id\":5,\"unit_id\":8,\"brand\":\"Chevy\",\"name\":\"A7\",\"slug\":\"a7\",\"model\":\"Camero\",\"version\":\"5.3\",\"model_year\":2011,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1580.64\",\"price_value\":1165,\"price\":\"8709.63\",\"category\":\"Convertible\",\"transmission\":\"CVT\",\"km_value\":52169327,\"km\":\"15231393\",\"plate\":\"2997\",\"color\":\"Green\",\"doors\":1,\"fuel\":3,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.064Z\",\"updated_at\":\"2018-11-08T17:38:23.064Z\"},{\"id\":8,\"active\":true,\"account_id\":2,\"unit_id\":4,\"brand\":\"Nissan\",\"name\":\"Prius\",\"slug\":\"prius\",\"model\":\"Accord\",\"version\":\"7.8\",\"model_year\":2009,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"7129.91\",\"price_value\":2488,\"price\":\"4001.48\",\"category\":\"SUV\",\"transmission\":\"Manual\",\"km_value\":80244772,\"km\":\"48716911\",\"plate\":\"9573\",\"color\":\"Grey\",\"doors\":4,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.069Z\",\"updated_at\":\"2018-11-08T17:38:23.069Z\"},{\"id\":9,\"active\":false,\"account_id\":7,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Focus\",\"slug\":\"focus\",\"model\":\"LaCrosse\",\"version\":\"1.7\",\"model_year\":2012,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5197.01\",\"price_value\":2028,\"price\":\"8301.38\",\"category\":\"Minivan\",\"transmission\":\"Automatic\",\"km_value\":34215256,\"km\":\"11433071\",\"plate\":\"5603\",\"color\":\"Violet\",\"doors\":1,\"fuel\":5,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.075Z\",\"updated_at\":\"2018-11-08T17:38:23.075Z\"},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Ram\",\"slug\":\"cr-v\",\"model\":\"Prius\",\"version\":\"9.5\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1648.31\",\"price_value\":8432,\"price\":\"2056.82\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":47546237,\"km\":\"39672408\",\"plate\":\"4005\",\"color\":\"Yellow\",\"doors\":9,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.080Z\",\"updated_at\":\"2018-11-08T17:38:23.080Z\"},{\"id\":52,\"active\":true,\"account_id\":9,\"unit_id\":7,\"brand\":\"Lincoln\",\"name\":\"Dodge Charger\",\"slug\":\"voluptatum\",\"model\":\"Navigator\",\"version\":\"8.0\",\"model_year\":2008,\"production_year\":\"2018\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"9964.29\",\"price_value\":1748,\"price\":\"9110.94\",\"category\":\"Minivan\",\"transmission\":\"Manual\",\"km_value\":65916645,\"km\":\"94890803\",\"plate\":\"5229\",\"color\":\"Orange\",\"doors\":5,\"fuel\":4,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:21:25.070Z\",\"updated_at\":\"2018-11-26T15:21:25.070Z\"},{\"id\":6,\"active\":true,\"account_id\":0,\"unit_id\":2,\"brand\":\"Honda\",\"name\":\"in\",\"slug\":\"durango-9d02071a-77c0-403b-bc46-c7161408f812\",\"model\":\"MKZ\",\"version\":\"4.9\",\"model_year\":2008,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7058.43\",\"price_value\":5808,\"price\":\"8617.65\",\"category\":\"Coupe\",\"transmission\":\"Automanual\",\"km_value\":43250550,\"km\":\"34167150\",\"plate\":\"6998\",\"color\":\"Green\",\"doors\":1,\"fuel\":9,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.058Z\",\"updated_at\":\"2018-11-26T15:21:25.108Z\"}],\"total\":10,\"total_pages\":1,\"last_page\":true,\"previous_page\":\"http://www.example.com/api/v1/used_model?page\",\"next_page\":\"http://www.example.com/api/v1/used_model?page\",\"out_of_bounds\":false,\"offset\":0}}}"], ["created_at", "2018-11-26 15:21:25.180152"], ["updated_at", "2018-11-26 15:21:25.180152"]]
756
+  (0.1ms) RELEASE SAVEPOINT active_record_1
757
+ Completed 200 OK in 20ms (Views: 3.2ms | ActiveRecord: 2.1ms)
758
+  (0.1ms) ROLLBACK
759
+  (0.1ms) BEGIN
760
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
761
+ Started POST "/api/v1/used_model/" for 127.0.0.1 at 2018-11-26 12:21:25 -0300
762
+ Processing by Apicasso::CrudController#create as HTML
763
+ Parameters: {"used_model"=>{"active"=>"true", "account_id"=>"5", "unit_id"=>"3", "brand"=>"Ford", "name"=>"Buick Regal", "model"=>"A7", "version"=>"0.9", "model_year"=>"2005", "production_year"=>"2018", "kind"=>"car", "new_vehicle"=>"false", "old_price"=>"1192.25", "price_value"=>"5205.91", "price"=>"5424.86", "category"=>"Coupe", "transmission"=>"CVT", "km_value"=>"63577989", "km"=>"57630001", "plate"=>"1245", "color"=>"Black", "doors"=>"4", "fuel"=>"4", "fuel_text"=>"Gasoline Hybrid", "shielded"=>"false"}, "resource"=>"used_model"}
764
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "219ac3e6bd254e76a568cf75cbfe10b0"], ["LIMIT", 1]]
765
+  (0.1ms) SAVEPOINT active_record_1
766
+ UsedModel Exists (0.3ms) SELECT 1 AS one FROM "used_models" WHERE "used_models"."id" IS NOT NULL AND "used_models"."slug" = $1 LIMIT $2 [["slug", "buick-regal"], ["LIMIT", 1]]
767
+ UsedModel Create (0.6ms) INSERT INTO "used_models" ("account_id", "unit_id", "brand", "name", "slug", "model", "version", "model_year", "production_year", "kind", "old_price", "price_value", "price", "category", "transmission", "km_value", "km", "plate", "color", "doors", "fuel", "fuel_text", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24) RETURNING "id" [["account_id", 5], ["unit_id", 3], ["brand", "Ford"], ["name", "Buick Regal"], ["slug", "buick-regal"], ["model", "A7"], ["version", "0.9"], ["model_year", 2005], ["production_year", "2018"], ["kind", "car"], ["old_price", "1192.25"], ["price_value", 5205], ["price", "5424.86"], ["category", "Coupe"], ["transmission", "CVT"], ["km_value", 63577989], ["km", "57630001"], ["plate", "1245"], ["color", "Black"], ["doors", 4], ["fuel", 4], ["fuel_text", "Gasoline Hybrid"], ["created_at", "2018-11-26 15:21:25.196856"], ["updated_at", "2018-11-26 15:21:25.196856"]]
768
+  (0.2ms) RELEASE SAVEPOINT active_record_1
769
+  (0.3ms) SAVEPOINT active_record_1
770
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "8aae3513-bb4e-4abb-b235-8f0a62e2d7c2"], ["LIMIT", 1]]
771
+ Apicasso::Request Create (0.4ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "8aae3513-bb4e-4abb-b235-8f0a62e2d7c2"], ["object", "{\"request\":{\"uuid\":\"97a93796-1d41-4901-a68d-9a8b52332761\",\"url\":\"http://www.example.com/api/v1/used_model/\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=219ac3e6bd254e76a568cf75cbfe10b0\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":201,\"body\":{\"id\":53,\"active\":true,\"account_id\":5,\"unit_id\":3,\"brand\":\"Ford\",\"name\":\"Buick Regal\",\"slug\":\"buick-regal\",\"model\":\"A7\",\"version\":\"0.9\",\"model_year\":2005,\"production_year\":\"2018\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1192.25\",\"price_value\":5205,\"price\":\"5424.86\",\"category\":\"Coupe\",\"transmission\":\"CVT\",\"km_value\":63577989,\"km\":\"57630001\",\"plate\":\"1245\",\"color\":\"Black\",\"doors\":4,\"fuel\":4,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:21:25.196Z\",\"updated_at\":\"2018-11-26T15:21:25.196Z\"}}}"], ["created_at", "2018-11-26 15:21:25.205244"], ["updated_at", "2018-11-26 15:21:25.205244"]]
772
+  (0.3ms) RELEASE SAVEPOINT active_record_1
773
+ Completed 201 Created in 17ms (Views: 0.3ms | ActiveRecord: 2.8ms)
774
+  (0.5ms) SELECT COUNT(*) FROM "used_models"
775
+  (0.4ms) ROLLBACK
776
+  (0.2ms) BEGIN
777
+ UsedModel Load (0.8ms) SELECT "used_models".* FROM "used_models"
778
+ Started PATCH "/api/v1/used_model/10" for 127.0.0.1 at 2018-11-26 12:21:25 -0300
779
+ Processing by Apicasso::CrudController#update as HTML
780
+ Parameters: {"used_model"=>{"name"=>"Audi S5"}, "resource"=>"used_model", "id"=>"10"}
781
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "219ac3e6bd254e76a568cf75cbfe10b0"], ["LIMIT", 1]]
782
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "10"], ["LIMIT", 1]]
783
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]]
784
+  (0.1ms) SAVEPOINT active_record_1
785
+ UsedModel Update (0.3ms) UPDATE "used_models" SET "name" = $1, "updated_at" = $2 WHERE "used_models"."id" = $3 [["name", "Audi S5"], ["updated_at", "2018-11-26 15:21:25.223529"], ["id", 10]]
786
+  (0.1ms) RELEASE SAVEPOINT active_record_1
787
+  (0.1ms) SAVEPOINT active_record_1
788
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "8aae3513-bb4e-4abb-b235-8f0a62e2d7c2"], ["LIMIT", 1]]
789
+ Apicasso::Request Create (0.4ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "8aae3513-bb4e-4abb-b235-8f0a62e2d7c2"], ["object", "{\"request\":{\"uuid\":\"f7cf6f59-81fc-4d6c-897c-bb57f6d0b546\",\"url\":\"http://www.example.com/api/v1/used_model/10\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=219ac3e6bd254e76a568cf75cbfe10b0\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":10,\"name\":\"Audi S5\",\"slug\":\"cr-v\",\"account_id\":8,\"unit_id\":4,\"active\":true,\"brand\":\"Chevy\",\"model\":\"Prius\",\"version\":\"9.5\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1648.31\",\"price_value\":8432,\"price\":\"2056.82\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":47546237,\"km\":\"39672408\",\"plate\":\"4005\",\"color\":\"Yellow\",\"doors\":9,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.080Z\",\"updated_at\":\"2018-11-26T15:21:25.223Z\"}}}"], ["created_at", "2018-11-26 15:21:25.227112"], ["updated_at", "2018-11-26 15:21:25.227112"]]
790
+  (0.2ms) RELEASE SAVEPOINT active_record_1
791
+ Completed 200 OK in 11ms (Views: 0.1ms | ActiveRecord: 2.3ms)
792
+  (0.2ms) ROLLBACK
793
+  (0.1ms) BEGIN
794
+ UsedModel Load (0.8ms) SELECT "used_models".* FROM "used_models"
795
+  (0.4ms) SELECT COUNT(*) FROM "used_models"
796
+ Started DELETE "/api/v1/used_model/7" for 127.0.0.1 at 2018-11-26 12:21:25 -0300
797
+ Processing by Apicasso::CrudController#destroy as HTML
798
+ Parameters: {"resource"=>"used_model", "id"=>"7"}
799
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "219ac3e6bd254e76a568cf75cbfe10b0"], ["LIMIT", 1]]
800
+ UsedModel Load (0.6ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "7"], ["LIMIT", 1]]
801
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]]
802
+  (0.3ms) SAVEPOINT active_record_1
803
+ UsedModel Destroy (0.5ms) DELETE FROM "used_models" WHERE "used_models"."id" = $1 [["id", 7]]
804
+  (0.2ms) RELEASE SAVEPOINT active_record_1
805
+ ActiveStorage::Attachment Load (0.3ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 [["record_id", 7], ["record_type", "UsedModel"], ["name", "files"]]
806
+ ActiveStorage::Attachment Load (0.4ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 7], ["record_type", "UsedModel"], ["name", "file_highlighted"], ["LIMIT", 1]]
807
+  (0.3ms) SAVEPOINT active_record_1
808
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "8aae3513-bb4e-4abb-b235-8f0a62e2d7c2"], ["LIMIT", 1]]
809
+ Apicasso::Request Create (0.6ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "8aae3513-bb4e-4abb-b235-8f0a62e2d7c2"], ["object", "{\"request\":{\"uuid\":\"2263f014-57eb-4c21-aa8f-95bf59058e44\",\"url\":\"http://www.example.com/api/v1/used_model/7\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=219ac3e6bd254e76a568cf75cbfe10b0\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":204,\"body\":\"\"}}"], ["created_at", "2018-11-26 15:21:25.252518"], ["updated_at", "2018-11-26 15:21:25.252518"]]
810
+  (0.1ms) RELEASE SAVEPOINT active_record_1
811
+ Completed 204 No Content in 16ms (ActiveRecord: 4.4ms)
812
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
813
+  (0.2ms) ROLLBACK
814
+  (0.1ms) BEGIN
815
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-26 12:21:25 -0300
816
+ Processing by Apicasso::CrudController#index as HTML
817
+ Parameters: {"resource"=>"used_model"}
818
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "0053444a87ef49eea46a61cf8cd5e02d"], ["LIMIT", 1]]
819
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
820
+  (0.4ms) SELECT COUNT(*) FROM "used_models"
821
+  (0.2ms) SAVEPOINT active_record_1
822
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "66eba800-2758-4e2b-9f5b-3df19ade088c"], ["LIMIT", 1]]
823
+ Apicasso::Request Create (2.1ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "66eba800-2758-4e2b-9f5b-3df19ade088c"], ["object", "{\"request\":{\"uuid\":\"bfb367a4-54f9-46ca-8cbf-222e77819ff9\",\"url\":\"http://www.example.com/api/v1/used_model\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=0053444a87ef49eea46a61cf8cd5e02d\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":1,\"active\":false,\"account_id\":8,\"unit_id\":3,\"brand\":\"Buick\",\"name\":\"M5\",\"slug\":\"m5\",\"model\":\"Odyssey\",\"version\":\"3.8\",\"model_year\":2017,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"4719.56\",\"price_value\":8533,\"price\":\"3805.29\",\"category\":\"Regular Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":43961194,\"km\":\"59551357\",\"plate\":\"2033\",\"color\":\"Beige\",\"doors\":6,\"fuel\":3,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.029Z\",\"updated_at\":\"2018-11-08T17:38:23.029Z\"},{\"id\":2,\"active\":false,\"account_id\":1,\"unit_id\":5,\"brand\":\"Audi\",\"name\":\"Civic\",\"slug\":\"civic\",\"model\":\"A5\",\"version\":\"2.2\",\"model_year\":2016,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1294.34\",\"price_value\":8525,\"price\":\"5665.78\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":51090415,\"km\":\"96433648\",\"plate\":\"9510\",\"color\":\"Black\",\"doors\":8,\"fuel\":0,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.036Z\",\"updated_at\":\"2018-11-08T17:38:23.036Z\"},{\"id\":4,\"active\":false,\"account_id\":7,\"unit_id\":1,\"brand\":\"Chevy\",\"name\":\"Durango\",\"slug\":\"durango\",\"model\":\"Camero\",\"version\":\"8.5\",\"model_year\":2018,\"production_year\":\"2012\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2300.77\",\"price_value\":1516,\"price\":\"2245.59\",\"category\":\"Wagon\",\"transmission\":\"Automatic\",\"km_value\":78271823,\"km\":\"95493414\",\"plate\":\"2689\",\"color\":\"Red\",\"doors\":7,\"fuel\":1,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.047Z\",\"updated_at\":\"2018-11-08T17:38:23.047Z\"},{\"id\":5,\"active\":true,\"account_id\":8,\"unit_id\":0,\"brand\":\"Toyota\",\"name\":\"X3\",\"slug\":\"x3\",\"model\":\"Juke\",\"version\":\"3.2\",\"model_year\":2005,\"production_year\":\"2008\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"8812.52\",\"price_value\":9231,\"price\":\"1876.52\",\"category\":\"Hatchback\",\"transmission\":\"Automanual\",\"km_value\":40936712,\"km\":\"19445608\",\"plate\":\"5888\",\"color\":\"Black\",\"doors\":6,\"fuel\":9,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.053Z\",\"updated_at\":\"2018-11-08T17:38:23.053Z\"},{\"id\":7,\"active\":true,\"account_id\":5,\"unit_id\":8,\"brand\":\"Chevy\",\"name\":\"A7\",\"slug\":\"a7\",\"model\":\"Camero\",\"version\":\"5.3\",\"model_year\":2011,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1580.64\",\"price_value\":1165,\"price\":\"8709.63\",\"category\":\"Convertible\",\"transmission\":\"CVT\",\"km_value\":52169327,\"km\":\"15231393\",\"plate\":\"2997\",\"color\":\"Green\",\"doors\":1,\"fuel\":3,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.064Z\",\"updated_at\":\"2018-11-08T17:38:23.064Z\"},{\"id\":8,\"active\":true,\"account_id\":2,\"unit_id\":4,\"brand\":\"Nissan\",\"name\":\"Prius\",\"slug\":\"prius\",\"model\":\"Accord\",\"version\":\"7.8\",\"model_year\":2009,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"7129.91\",\"price_value\":2488,\"price\":\"4001.48\",\"category\":\"SUV\",\"transmission\":\"Manual\",\"km_value\":80244772,\"km\":\"48716911\",\"plate\":\"9573\",\"color\":\"Grey\",\"doors\":4,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.069Z\",\"updated_at\":\"2018-11-08T17:38:23.069Z\"},{\"id\":9,\"active\":false,\"account_id\":7,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Focus\",\"slug\":\"focus\",\"model\":\"LaCrosse\",\"version\":\"1.7\",\"model_year\":2012,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5197.01\",\"price_value\":2028,\"price\":\"8301.38\",\"category\":\"Minivan\",\"transmission\":\"Automatic\",\"km_value\":34215256,\"km\":\"11433071\",\"plate\":\"5603\",\"color\":\"Violet\",\"doors\":1,\"fuel\":5,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.075Z\",\"updated_at\":\"2018-11-08T17:38:23.075Z\"},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Ram\",\"slug\":\"cr-v\",\"model\":\"Prius\",\"version\":\"9.5\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1648.31\",\"price_value\":8432,\"price\":\"2056.82\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":47546237,\"km\":\"39672408\",\"plate\":\"4005\",\"color\":\"Yellow\",\"doors\":9,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.080Z\",\"updated_at\":\"2018-11-08T17:38:23.080Z\"},{\"id\":52,\"active\":true,\"account_id\":9,\"unit_id\":7,\"brand\":\"Lincoln\",\"name\":\"Dodge Charger\",\"slug\":\"voluptatum\",\"model\":\"Navigator\",\"version\":\"8.0\",\"model_year\":2008,\"production_year\":\"2018\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"9964.29\",\"price_value\":1748,\"price\":\"9110.94\",\"category\":\"Minivan\",\"transmission\":\"Manual\",\"km_value\":65916645,\"km\":\"94890803\",\"plate\":\"5229\",\"color\":\"Orange\",\"doors\":5,\"fuel\":4,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:21:25.070Z\",\"updated_at\":\"2018-11-26T15:21:25.070Z\"},{\"id\":6,\"active\":true,\"account_id\":0,\"unit_id\":2,\"brand\":\"Honda\",\"name\":\"in\",\"slug\":\"durango-9d02071a-77c0-403b-bc46-c7161408f812\",\"model\":\"MKZ\",\"version\":\"4.9\",\"model_year\":2008,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7058.43\",\"price_value\":5808,\"price\":\"8617.65\",\"category\":\"Coupe\",\"transmission\":\"Automanual\",\"km_value\":43250550,\"km\":\"34167150\",\"plate\":\"6998\",\"color\":\"Green\",\"doors\":1,\"fuel\":9,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.058Z\",\"updated_at\":\"2018-11-26T15:21:25.108Z\"}],\"total\":10,\"total_pages\":1,\"last_page\":true,\"previous_page\":\"http://www.example.com/api/v1/used_model?page\",\"next_page\":\"http://www.example.com/api/v1/used_model?page\",\"out_of_bounds\":false,\"offset\":0}}}"], ["created_at", "2018-11-26 15:21:25.271125"], ["updated_at", "2018-11-26 15:21:25.271125"]]
824
+  (0.3ms) RELEASE SAVEPOINT active_record_1
825
+ Completed 200 OK in 26ms (Views: 2.9ms | ActiveRecord: 3.9ms)
826
+  (0.2ms) ROLLBACK
827
+  (0.1ms) BEGIN
828
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
829
+ Started POST "/api/v1/used_model/" for 127.0.0.1 at 2018-11-26 12:21:25 -0300
830
+ Processing by Apicasso::CrudController#create as HTML
831
+ Parameters: {"used_model"=>{"active"=>"true", "account_id"=>"9", "unit_id"=>"2", "brand"=>"BMW", "name"=>"BMW M3", "model"=>"CR-V", "version"=>"5.2", "model_year"=>"2011", "production_year"=>"2008", "kind"=>"car", "new_vehicle"=>"false", "old_price"=>"1398.28", "price_value"=>"3673.65", "price"=>"3280.58", "category"=>"Convertible", "transmission"=>"CVT", "km_value"=>"18867811", "km"=>"29076132", "plate"=>"1673", "color"=>"Blue", "doors"=>"9", "fuel"=>"8", "fuel_text"=>"Electric", "shielded"=>"false"}, "resource"=>"used_model"}
832
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "0053444a87ef49eea46a61cf8cd5e02d"], ["LIMIT", 1]]
833
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.2ms)
834
+  (0.4ms) SELECT COUNT(*) FROM "used_models"
835
+  (0.2ms) ROLLBACK
836
+  (0.1ms) BEGIN
837
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models"
838
+ Started PATCH "/api/v1/used_model/10" for 127.0.0.1 at 2018-11-26 12:21:25 -0300
839
+ Processing by Apicasso::CrudController#update as HTML
840
+ Parameters: {"used_model"=>{"name"=>"Buick LaCrosse"}, "resource"=>"used_model", "id"=>"10"}
841
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "0053444a87ef49eea46a61cf8cd5e02d"], ["LIMIT", 1]]
842
+ UsedModel Load (0.6ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "10"], ["LIMIT", 1]]
843
+ UsedModel Load (0.7ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]]
844
+ Completed 500 Internal Server Error in 8ms (ActiveRecord: 1.7ms)
845
+  (0.2ms) ROLLBACK
846
+  (0.2ms) BEGIN
847
+ UsedModel Load (0.6ms) SELECT "used_models".* FROM "used_models"
848
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
849
+ Started DELETE "/api/v1/used_model/4" for 127.0.0.1 at 2018-11-26 12:21:25 -0300
850
+ Processing by Apicasso::CrudController#destroy as HTML
851
+ Parameters: {"resource"=>"used_model", "id"=>"4"}
852
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "0053444a87ef49eea46a61cf8cd5e02d"], ["LIMIT", 1]]
853
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "4"], ["LIMIT", 1]]
854
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]]
855
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.9ms)
856
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
857
+  (0.1ms) ROLLBACK
858
+  (0.2ms) BEGIN
859
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-26 12:21:25 -0300
860
+ Processing by Apicasso::CrudController#index as HTML
861
+ Parameters: {"resource"=>"used_model"}
862
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "22695aa7892544f08fc8ef205dd1c06b"], ["LIMIT", 1]]
863
+ Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.3ms)
864
+  (0.1ms) ROLLBACK
865
+  (0.1ms) BEGIN
866
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
867
+ Started POST "/api/v1/used_model/" for 127.0.0.1 at 2018-11-26 12:21:25 -0300
868
+ Processing by Apicasso::CrudController#create as HTML
869
+ Parameters: {"used_model"=>{"active"=>"true", "account_id"=>"8", "unit_id"=>"8", "brand"=>"Chevy", "name"=>"Honda Odyssey", "model"=>"MKZ", "version"=>"8.9", "model_year"=>"2010", "production_year"=>"2007", "kind"=>"car", "new_vehicle"=>"true", "old_price"=>"3026.59", "price_value"=>"7878.04", "price"=>"4932.69", "category"=>"Minivan", "transmission"=>"Automanual", "km_value"=>"27031760", "km"=>"36420207", "plate"=>"8615", "color"=>"Black", "doors"=>"2", "fuel"=>"9", "fuel_text"=>"Electric", "shielded"=>"false"}, "resource"=>"used_model"}
870
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "22695aa7892544f08fc8ef205dd1c06b"], ["LIMIT", 1]]
871
+  (0.3ms) SAVEPOINT active_record_1
872
+ UsedModel Exists (0.5ms) SELECT 1 AS one FROM "used_models" WHERE "used_models"."id" IS NOT NULL AND "used_models"."slug" = $1 LIMIT $2 [["slug", "honda-odyssey"], ["LIMIT", 1]]
873
+ UsedModel Create (0.6ms) INSERT INTO "used_models" ("account_id", "unit_id", "brand", "name", "slug", "model", "version", "model_year", "production_year", "kind", "new_vehicle", "old_price", "price_value", "price", "category", "transmission", "km_value", "km", "plate", "color", "doors", "fuel", "fuel_text", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25) RETURNING "id" [["account_id", 8], ["unit_id", 8], ["brand", "Chevy"], ["name", "Honda Odyssey"], ["slug", "honda-odyssey"], ["model", "MKZ"], ["version", "8.9"], ["model_year", 2010], ["production_year", "2007"], ["kind", "car"], ["new_vehicle", true], ["old_price", "3026.59"], ["price_value", 7878], ["price", "4932.69"], ["category", "Minivan"], ["transmission", "Automanual"], ["km_value", 27031760], ["km", "36420207"], ["plate", "8615"], ["color", "Black"], ["doors", 2], ["fuel", 9], ["fuel_text", "Electric"], ["created_at", "2018-11-26 15:21:25.331588"], ["updated_at", "2018-11-26 15:21:25.331588"]]
874
+  (0.2ms) RELEASE SAVEPOINT active_record_1
875
+  (0.1ms) SAVEPOINT active_record_1
876
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "0ce4906b-fd0f-404d-aea7-4646790e3f33"], ["LIMIT", 1]]
877
+ Apicasso::Request Create (0.6ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "0ce4906b-fd0f-404d-aea7-4646790e3f33"], ["object", "{\"request\":{\"uuid\":\"3cde7c59-7e25-4988-90d6-96f3c0bff752\",\"url\":\"http://www.example.com/api/v1/used_model/\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=22695aa7892544f08fc8ef205dd1c06b\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":201,\"body\":{\"id\":54,\"active\":true,\"account_id\":8,\"unit_id\":8,\"brand\":\"Chevy\",\"name\":\"Honda Odyssey\",\"slug\":\"honda-odyssey\",\"model\":\"MKZ\",\"version\":\"8.9\",\"model_year\":2010,\"production_year\":\"2007\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"3026.59\",\"price_value\":7878,\"price\":\"4932.69\",\"category\":\"Minivan\",\"transmission\":\"Automanual\",\"km_value\":27031760,\"km\":\"36420207\",\"plate\":\"8615\",\"color\":\"Black\",\"doors\":2,\"fuel\":9,\"fuel_text\":\"Electric\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:21:25.331Z\",\"updated_at\":\"2018-11-26T15:21:25.331Z\"}}}"], ["created_at", "2018-11-26 15:21:25.338573"], ["updated_at", "2018-11-26 15:21:25.338573"]]
878
+  (0.2ms) RELEASE SAVEPOINT active_record_1
879
+ Completed 201 Created in 18ms (Views: 0.1ms | ActiveRecord: 3.0ms)
880
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
881
+  (0.2ms) ROLLBACK
882
+  (0.1ms) BEGIN
883
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
884
+ Started PATCH "/api/v1/used_model/4" for 127.0.0.1 at 2018-11-26 12:21:25 -0300
885
+ Processing by Apicasso::CrudController#update as HTML
886
+ Parameters: {"used_model"=>{"name"=>"Honda Civic"}, "resource"=>"used_model", "id"=>"4"}
887
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "22695aa7892544f08fc8ef205dd1c06b"], ["LIMIT", 1]]
888
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "4"], ["LIMIT", 1]]
889
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]]
890
+ Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.8ms)
891
+  (0.2ms) ROLLBACK
892
+  (0.1ms) BEGIN
893
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
894
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
895
+ Started DELETE "/api/v1/used_model/9" for 127.0.0.1 at 2018-11-26 12:21:25 -0300
896
+ Processing by Apicasso::CrudController#destroy as HTML
897
+ Parameters: {"resource"=>"used_model", "id"=>"9"}
898
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "22695aa7892544f08fc8ef205dd1c06b"], ["LIMIT", 1]]
899
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "9"], ["LIMIT", 1]]
900
+ UsedModel Load (0.8ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]]
901
+ Completed 500 Internal Server Error in 6ms (ActiveRecord: 1.4ms)
902
+  (0.4ms) SELECT COUNT(*) FROM "used_models"
903
+  (0.2ms) ROLLBACK
904
+  (0.2ms) BEGIN
905
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-26 12:21:25 -0300
906
+ Processing by Apicasso::CrudController#index as HTML
907
+ Parameters: {"resource"=>"used_model"}
908
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "d607abcabd5b4f009ed558df4888cee6"], ["LIMIT", 1]]
909
+ Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.4ms)
910
+  (0.1ms) ROLLBACK
911
+  (0.1ms) BEGIN
912
+  (0.5ms) SELECT COUNT(*) FROM "used_models"
913
+ Started POST "/api/v1/used_model/" for 127.0.0.1 at 2018-11-26 12:21:25 -0300
914
+ Processing by Apicasso::CrudController#create as HTML
915
+ Parameters: {"used_model"=>{"active"=>"false", "account_id"=>"7", "unit_id"=>"7", "brand"=>"BMW", "name"=>"Nissan Altima", "model"=>"Silverado", "version"=>"0.3", "model_year"=>"2006", "production_year"=>"2017", "kind"=>"car", "new_vehicle"=>"true", "old_price"=>"2882.88", "price_value"=>"4241.52", "price"=>"3820.54", "category"=>"Convertible", "transmission"=>"CVT", "km_value"=>"63474565", "km"=>"48456401", "plate"=>"8202", "color"=>"White", "doors"=>"1", "fuel"=>"5", "fuel_text"=>"Gasoline", "shielded"=>"false"}, "resource"=>"used_model"}
916
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "d607abcabd5b4f009ed558df4888cee6"], ["LIMIT", 1]]
917
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.3ms)
918
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
919
+  (0.1ms) ROLLBACK
920
+  (0.1ms) BEGIN
921
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
922
+ Started PATCH "/api/v1/used_model/7" for 127.0.0.1 at 2018-11-26 12:21:25 -0300
923
+ Processing by Apicasso::CrudController#update as HTML
924
+ Parameters: {"used_model"=>{"name"=>"BMW X3"}, "resource"=>"used_model", "id"=>"7"}
925
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "d607abcabd5b4f009ed558df4888cee6"], ["LIMIT", 1]]
926
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "7"], ["LIMIT", 1]]
927
+ UsedModel Load (0.6ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]]
928
+  (0.3ms) SAVEPOINT active_record_1
929
+ UsedModel Update (0.7ms) UPDATE "used_models" SET "name" = $1, "updated_at" = $2 WHERE "used_models"."id" = $3 [["name", "BMW X3"], ["updated_at", "2018-11-26 15:21:25.394620"], ["id", 7]]
930
+  (0.2ms) RELEASE SAVEPOINT active_record_1
931
+  (0.2ms) SAVEPOINT active_record_1
932
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "c27b51c9-6aef-4ad3-8219-a34f9258eeea"], ["LIMIT", 1]]
933
+ Apicasso::Request Create (0.4ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "c27b51c9-6aef-4ad3-8219-a34f9258eeea"], ["object", "{\"request\":{\"uuid\":\"96fcce42-359a-46f5-aa22-e09996ec8ea8\",\"url\":\"http://www.example.com/api/v1/used_model/7\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=d607abcabd5b4f009ed558df4888cee6\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":7,\"name\":\"BMW X3\",\"slug\":\"a7\",\"account_id\":5,\"unit_id\":8,\"active\":true,\"brand\":\"Chevy\",\"model\":\"Camero\",\"version\":\"5.3\",\"model_year\":2011,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1580.64\",\"price_value\":1165,\"price\":\"8709.63\",\"category\":\"Convertible\",\"transmission\":\"CVT\",\"km_value\":52169327,\"km\":\"15231393\",\"plate\":\"2997\",\"color\":\"Green\",\"doors\":1,\"fuel\":3,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.064Z\",\"updated_at\":\"2018-11-26T15:21:25.394Z\"}}}"], ["created_at", "2018-11-26 15:21:25.401848"], ["updated_at", "2018-11-26 15:21:25.401848"]]
934
+  (0.1ms) RELEASE SAVEPOINT active_record_1
935
+ Completed 200 OK in 20ms (Views: 0.1ms | ActiveRecord: 3.5ms)
936
+  (0.1ms) ROLLBACK
937
+  (0.1ms) BEGIN
938
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models"
939
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
940
+ Started DELETE "/api/v1/used_model/9" for 127.0.0.1 at 2018-11-26 12:21:25 -0300
941
+ Processing by Apicasso::CrudController#destroy as HTML
942
+ Parameters: {"resource"=>"used_model", "id"=>"9"}
943
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "d607abcabd5b4f009ed558df4888cee6"], ["LIMIT", 1]]
944
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "9"], ["LIMIT", 1]]
945
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]]
946
+ Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.9ms)
947
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
948
+  (0.1ms) ROLLBACK
949
+  (0.1ms) BEGIN
950
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-26 12:21:25 -0300
951
+ Processing by Apicasso::CrudController#index as HTML
952
+ Parameters: {"resource"=>"used_model"}
953
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "3648c8cb82ea426293450a4b19654ead"], ["LIMIT", 1]]
954
+ Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.3ms)
955
+  (0.1ms) ROLLBACK
956
+  (0.1ms) BEGIN
957
+  (0.6ms) SELECT COUNT(*) FROM "used_models"
958
+ Started POST "/api/v1/used_model/" for 127.0.0.1 at 2018-11-26 12:21:25 -0300
959
+ Processing by Apicasso::CrudController#create as HTML
960
+ Parameters: {"used_model"=>{"active"=>"false", "account_id"=>"7", "unit_id"=>"1", "brand"=>"Dodge", "name"=>"Nissan Pathfiner", "model"=>"Civic", "version"=>"9.8", "model_year"=>"2007", "production_year"=>"2012", "kind"=>"car", "new_vehicle"=>"true", "old_price"=>"5213.11", "price_value"=>"7764.17", "price"=>"5098.78", "category"=>"SUV", "transmission"=>"CVT", "km_value"=>"88976727", "km"=>"29438684", "plate"=>"6627", "color"=>"Red", "doors"=>"9", "fuel"=>"4", "fuel_text"=>"Electric", "shielded"=>"false"}, "resource"=>"used_model"}
961
+ Apicasso::Key Load (0.6ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "3648c8cb82ea426293450a4b19654ead"], ["LIMIT", 1]]
962
+ Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.6ms)
963
+  (1.2ms) SELECT COUNT(*) FROM "used_models"
964
+  (0.2ms) ROLLBACK
965
+  (0.1ms) BEGIN
966
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models"
967
+ Started PATCH "/api/v1/used_model/9" for 127.0.0.1 at 2018-11-26 12:21:25 -0300
968
+ Processing by Apicasso::CrudController#update as HTML
969
+ Parameters: {"used_model"=>{"name"=>"Buick LaCrosse"}, "resource"=>"used_model", "id"=>"9"}
970
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "3648c8cb82ea426293450a4b19654ead"], ["LIMIT", 1]]
971
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "9"], ["LIMIT", 1]]
972
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]]
973
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.8ms)
974
+  (0.2ms) ROLLBACK
975
+  (0.1ms) BEGIN
976
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
977
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
978
+ Started DELETE "/api/v1/used_model/7" for 127.0.0.1 at 2018-11-26 12:21:25 -0300
979
+ Processing by Apicasso::CrudController#destroy as HTML
980
+ Parameters: {"resource"=>"used_model", "id"=>"7"}
981
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "3648c8cb82ea426293450a4b19654ead"], ["LIMIT", 1]]
982
+ UsedModel Load (0.7ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "7"], ["LIMIT", 1]]
983
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]]
984
+  (0.3ms) SAVEPOINT active_record_1
985
+ UsedModel Destroy (0.5ms) DELETE FROM "used_models" WHERE "used_models"."id" = $1 [["id", 7]]
986
+  (0.3ms) RELEASE SAVEPOINT active_record_1
987
+ ActiveStorage::Attachment Load (0.4ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 [["record_id", 7], ["record_type", "UsedModel"], ["name", "files"]]
988
+ ActiveStorage::Attachment Load (0.5ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 7], ["record_type", "UsedModel"], ["name", "file_highlighted"], ["LIMIT", 1]]
989
+  (0.2ms) SAVEPOINT active_record_1
990
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "e4f4d2fc-4e13-4988-a3d8-4d083ac355f1"], ["LIMIT", 1]]
991
+ Apicasso::Request Create (0.5ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "e4f4d2fc-4e13-4988-a3d8-4d083ac355f1"], ["object", "{\"request\":{\"uuid\":\"871fea3c-5a5a-4535-8fcf-4e26b40df9a7\",\"url\":\"http://www.example.com/api/v1/used_model/7\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=3648c8cb82ea426293450a4b19654ead\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":204,\"body\":\"\"}}"], ["created_at", "2018-11-26 15:21:25.463183"], ["updated_at", "2018-11-26 15:21:25.463183"]]
992
+  (0.2ms) RELEASE SAVEPOINT active_record_1
993
+ Completed 204 No Content in 18ms (ActiveRecord: 4.7ms)
994
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
995
+  (0.7ms) ROLLBACK
996
+  (0.1ms) BEGIN
997
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-26 12:21:25 -0300
998
+ Processing by Apicasso::CrudController#index as HTML
999
+ Parameters: {"resource"=>"used_model"}
1000
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "notavalidtoken"], ["LIMIT", 1]]
1001
+ Filter chain halted as :restrict_access rendered or redirected
1002
+ Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1003
+  (0.1ms) ROLLBACK
1004
+  (0.1ms) BEGIN
1005
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-26 12:21:25 -0300
1006
+ Processing by Apicasso::CrudController#index as HTML
1007
+ Parameters: {"resource"=>"used_model"}
1008
+ Filter chain halted as :restrict_access rendered or redirected
1009
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1010
+  (0.1ms) ROLLBACK
1011
+  (0.1ms) BEGIN
1012
+  (2.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "apicasso_keys" DISABLE TRIGGER ALL;ALTER TABLE "apicasso_requests" DISABLE TRIGGER ALL;ALTER TABLE "used_models" DISABLE TRIGGER ALL;ALTER TABLE "active_storage_blobs" DISABLE TRIGGER ALL;ALTER TABLE "active_storage_attachments" DISABLE TRIGGER ALL
1013
+  (0.2ms) COMMIT
1014
+  (5.1ms)  SELECT schemaname || '.' || tablename
1015
+ FROM pg_tables
1016
+ WHERE
1017
+ tablename !~ '_prt_' AND
1018
+ tablename <> 'schema_migrations' AND tablename <> 'ar_internal_metadata' AND
1019
+ schemaname = ANY (current_schemas(false))
1020
+ 
1021
+  (3.3ms) select table_name from information_schema.views where table_schema = 'used_models_test'
1022
+  (12.4ms) TRUNCATE TABLE "apicasso_keys" RESTART IDENTITY CASCADE;
1023
+  (0.2ms) BEGIN
1024
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "apicasso_requests" ENABLE TRIGGER ALL;ALTER TABLE "used_models" ENABLE TRIGGER ALL;ALTER TABLE "active_storage_blobs" ENABLE TRIGGER ALL;ALTER TABLE "active_storage_attachments" ENABLE TRIGGER ALL;ALTER TABLE "apicasso_keys" ENABLE TRIGGER ALL
1025
+  (0.2ms) COMMIT
1026
+  (0.1ms) BEGIN
1027
+ Apicasso::Key Exists (0.6ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "765aea0e005345b7a07665e5334a2a5b"], ["LIMIT", 1]]
1028
+ Apicasso::Key Create (1.6ms) INSERT INTO "apicasso_keys" ("scope", "token", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["scope", "{\"manage\":{\"used_model\":true}}"], ["token", "765aea0e005345b7a07665e5334a2a5b"], ["created_at", "2018-11-26 15:24:20.752966"], ["updated_at", "2018-11-26 15:24:20.752966"]]
1029
+  (10.7ms) COMMIT
1030
+  (0.1ms) BEGIN
1031
+ Apicasso::Key Exists (0.2ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "520e05556f5942d5bd434b7e2bf3f168"], ["LIMIT", 1]]
1032
+ Apicasso::Key Create (0.3ms) INSERT INTO "apicasso_keys" ("scope", "token", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["scope", "{\"manage\":{\"used_model\":true}}"], ["token", "520e05556f5942d5bd434b7e2bf3f168"], ["created_at", "2018-11-26 15:24:20.807047"], ["updated_at", "2018-11-26 15:24:20.807047"]]
1033
+  (1.8ms) COMMIT
1034
+  (0.5ms) SELECT COUNT(*) FROM "used_models"
1035
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models"
1036
+  (0.1ms) BEGIN
1037
+ Apicasso::Key Exists (0.3ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "eaa34a3fb54049dd8b49a3e477b72ad8"], ["LIMIT", 1]]
1038
+ Apicasso::Key Create (0.4ms) INSERT INTO "apicasso_keys" ("scope", "token", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["scope", "{\"manage\":{\"used_model\":true}}"], ["token", "eaa34a3fb54049dd8b49a3e477b72ad8"], ["created_at", "2018-11-26 15:24:21.414265"], ["updated_at", "2018-11-26 15:24:21.414265"]]
1039
+  (6.9ms) COMMIT
1040
+  (0.1ms) BEGIN
1041
+ Apicasso::Key Exists (0.3ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "888ed9c182844b56aa7724aae7e091fe"], ["LIMIT", 1]]
1042
+ Apicasso::Key Create (0.3ms) INSERT INTO "apicasso_keys" ("scope", "token", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["scope", "{\"manage\":{\"used_model\":true}}"], ["token", "888ed9c182844b56aa7724aae7e091fe"], ["created_at", "2018-11-26 15:24:21.426888"], ["updated_at", "2018-11-26 15:24:21.426888"]]
1043
+  (1.6ms) COMMIT
1044
+  (0.4ms) SELECT COUNT(*) FROM "used_models"
1045
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models"
1046
+  (0.1ms) BEGIN
1047
+ Apicasso::Key Exists (0.3ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "0c958d4fb9134f988934c33f9af45509"], ["LIMIT", 1]]
1048
+ Apicasso::Key Create (0.4ms) INSERT INTO "apicasso_keys" ("scope", "token", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["scope", "{\"manage\":{\"used_model\":true}}"], ["token", "0c958d4fb9134f988934c33f9af45509"], ["created_at", "2018-11-26 15:24:21.441791"], ["updated_at", "2018-11-26 15:24:21.441791"]]
1049
+  (3.0ms) COMMIT
1050
+  (0.2ms) BEGIN
1051
+ Apicasso::Key Exists (0.3ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "8c576f97dc1e48f1bdfc8389c31802f9"], ["LIMIT", 1]]
1052
+ Apicasso::Key Create (0.4ms) INSERT INTO "apicasso_keys" ("scope", "token", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["scope", "{\"read\":{\"used_model\":true}}"], ["token", "8c576f97dc1e48f1bdfc8389c31802f9"], ["created_at", "2018-11-26 15:24:21.450385"], ["updated_at", "2018-11-26 15:24:21.450385"]]
1053
+  (1.9ms) COMMIT
1054
+  (0.1ms) BEGIN
1055
+ Apicasso::Key Exists (0.3ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "8612ee7c36b04fe0a3c8fa2b0aaf66f5"], ["LIMIT", 1]]
1056
+ Apicasso::Key Create (0.3ms) INSERT INTO "apicasso_keys" ("scope", "token", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["scope", "{\"create\":{\"used_model\":true}}"], ["token", "8612ee7c36b04fe0a3c8fa2b0aaf66f5"], ["created_at", "2018-11-26 15:24:21.455969"], ["updated_at", "2018-11-26 15:24:21.455969"]]
1057
+  (1.9ms) COMMIT
1058
+  (0.1ms) BEGIN
1059
+ Apicasso::Key Exists (0.3ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "52599059014f487ebb4961ee0fcb2c87"], ["LIMIT", 1]]
1060
+ Apicasso::Key Create (0.3ms) INSERT INTO "apicasso_keys" ("scope", "token", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["scope", "{\"update\":{\"used_model\":true}}"], ["token", "52599059014f487ebb4961ee0fcb2c87"], ["created_at", "2018-11-26 15:24:21.460702"], ["updated_at", "2018-11-26 15:24:21.460702"]]
1061
+  (1.8ms) COMMIT
1062
+  (0.1ms) BEGIN
1063
+ Apicasso::Key Exists (0.3ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "9447d38fd31c4126af7801d160bb8b8c"], ["LIMIT", 1]]
1064
+ Apicasso::Key Create (0.2ms) INSERT INTO "apicasso_keys" ("scope", "token", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["scope", "{\"destroy\":{\"used_model\":true}}"], ["token", "9447d38fd31c4126af7801d160bb8b8c"], ["created_at", "2018-11-26 15:24:21.465954"], ["updated_at", "2018-11-26 15:24:21.465954"]]
1065
+  (1.9ms) COMMIT
1066
+  (0.1ms) BEGIN
1067
+ UsedModel Exists (0.4ms) SELECT 1 AS one FROM "used_models" WHERE "used_models"."id" IS NOT NULL AND "used_models"."slug" = $1 LIMIT $2 [["slug", "bmw-328i"], ["LIMIT", 1]]
1068
+  (0.2ms) ROLLBACK
1069
+  (0.1ms) BEGIN
1070
+  (0.1ms) SAVEPOINT active_record_1
1071
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
1072
+  (0.1ms) ROLLBACK
1073
+  (0.1ms) BEGIN
1074
+  (0.1ms) SAVEPOINT active_record_1
1075
+ UsedModel Exists (0.6ms) SELECT 1 AS one FROM "used_models" WHERE "used_models"."id" IS NOT NULL AND "used_models"."slug" = $1 LIMIT $2 [["slug", "dodge-challenger"], ["LIMIT", 1]]
1076
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
1077
+  (0.1ms) ROLLBACK
1078
+  (0.1ms) BEGIN
1079
+  (0.1ms) SAVEPOINT active_record_1
1080
+ UsedModel Exists (0.4ms) SELECT 1 AS one FROM "used_models" WHERE "used_models"."id" IS NOT NULL AND "used_models"."slug" = $1 LIMIT $2 [["slug", "nissan-pathfiner"], ["LIMIT", 1]]
1081
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
1082
+  (0.1ms) ROLLBACK
1083
+  (0.1ms) BEGIN
1084
+ Started GET "/api/v1/used_models?group%5Bby%5D=brand&group%5Bcalculate%5D=count&group%5Bfields%5D=%27OR+1%3D1%3B" for 127.0.0.1 at 2018-11-26 12:24:21 -0300
1085
+ Processing by Apicasso::CrudController#index as HTML
1086
+ Parameters: {"group"=>{"by"=>"brand", "calculate"=>"count", "fields"=>"'OR 1=1;"}, "resource"=>"used_models"}
1087
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "765aea0e005345b7a07665e5334a2a5b"], ["LIMIT", 1]]
1088
+ Completed 400 Bad Request in 2ms (ActiveRecord: 0.3ms)
1089
+  (0.2ms) ROLLBACK
1090
+  (0.1ms) BEGIN
1091
+ Started GET "/api/v1/used_models?per_page=-1&sort=%27OR+1%3D1%3B" for 127.0.0.1 at 2018-11-26 12:24:21 -0300
1092
+ Processing by Apicasso::CrudController#index as HTML
1093
+ Parameters: {"per_page"=>"-1", "sort"=>"'OR 1=1;", "resource"=>"used_models"}
1094
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "765aea0e005345b7a07665e5334a2a5b"], ["LIMIT", 1]]
1095
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.2ms)
1096
+  (0.1ms) ROLLBACK
1097
+  (0.1ms) BEGIN
1098
+ Started GET "/api/v1/used_models?include=%27OR+1%3D1%3B" for 127.0.0.1 at 2018-11-26 12:24:21 -0300
1099
+ Processing by Apicasso::CrudController#index as HTML
1100
+ Parameters: {"include"=>"'OR 1=1;", "resource"=>"used_models"}
1101
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "765aea0e005345b7a07665e5334a2a5b"], ["LIMIT", 1]]
1102
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.2ms)
1103
+  (0.1ms) ROLLBACK
1104
+  (0.1ms) BEGIN
1105
+ Started GET "/api/v1/admins" for 127.0.0.1 at 2018-11-26 12:24:21 -0300
1106
+ Processing by Apicasso::CrudController#index as HTML
1107
+ Parameters: {"resource"=>"admins"}
1108
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
1109
+  (0.1ms) ROLLBACK
1110
+  (0.1ms) BEGIN
1111
+ Started GET "/api/v1/used_models/1/admins" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1112
+ Processing by Apicasso::CrudController#nested_index as HTML
1113
+ Parameters: {"resource"=>"used_models", "id"=>"1", "nested"=>"admins"}
1114
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
1115
+  (0.2ms) ROLLBACK
1116
+  (0.2ms) BEGIN
1117
+ Started GET "/api/v1/used_models?include=admins" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1118
+ Processing by Apicasso::CrudController#index as HTML
1119
+ Parameters: {"include"=>"admins", "resource"=>"used_models"}
1120
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "765aea0e005345b7a07665e5334a2a5b"], ["LIMIT", 1]]
1121
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.2ms)
1122
+  (0.2ms) ROLLBACK
1123
+ Started GET "/api/v1/used_models" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1124
+ Processing by Apicasso::CrudController#index as HTML
1125
+ Parameters: {"resource"=>"used_models"}
1126
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "520e05556f5942d5bd434b7e2bf3f168"], ["LIMIT", 1]]
1127
+ UsedModel Load (0.7ms) SELECT "used_models".* FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
1128
+  (0.4ms) SELECT COUNT(*) FROM "used_models"
1129
+  (0.1ms) BEGIN
1130
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["LIMIT", 1]]
1131
+ Apicasso::Request Create (0.9ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["object", "{\"request\":{\"uuid\":\"f8c136a8-94fb-4556-a640-eada0145368b\",\"url\":\"http://www.example.com/api/v1/used_models\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=520e05556f5942d5bd434b7e2bf3f168\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":1,\"active\":false,\"account_id\":8,\"unit_id\":3,\"brand\":\"Buick\",\"name\":\"M5\",\"slug\":\"m5\",\"model\":\"Odyssey\",\"version\":\"3.8\",\"model_year\":2017,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"4719.56\",\"price_value\":8533,\"price\":\"3805.29\",\"category\":\"Regular Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":43961194,\"km\":\"59551357\",\"plate\":\"2033\",\"color\":\"Beige\",\"doors\":6,\"fuel\":3,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.029Z\",\"updated_at\":\"2018-11-08T17:38:23.029Z\"},{\"id\":2,\"active\":false,\"account_id\":1,\"unit_id\":5,\"brand\":\"Audi\",\"name\":\"Civic\",\"slug\":\"civic\",\"model\":\"A5\",\"version\":\"2.2\",\"model_year\":2016,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1294.34\",\"price_value\":8525,\"price\":\"5665.78\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":51090415,\"km\":\"96433648\",\"plate\":\"9510\",\"color\":\"Black\",\"doors\":8,\"fuel\":0,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.036Z\",\"updated_at\":\"2018-11-08T17:38:23.036Z\"},{\"id\":4,\"active\":false,\"account_id\":7,\"unit_id\":1,\"brand\":\"Chevy\",\"name\":\"Durango\",\"slug\":\"durango\",\"model\":\"Camero\",\"version\":\"8.5\",\"model_year\":2018,\"production_year\":\"2012\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2300.77\",\"price_value\":1516,\"price\":\"2245.59\",\"category\":\"Wagon\",\"transmission\":\"Automatic\",\"km_value\":78271823,\"km\":\"95493414\",\"plate\":\"2689\",\"color\":\"Red\",\"doors\":7,\"fuel\":1,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.047Z\",\"updated_at\":\"2018-11-08T17:38:23.047Z\"},{\"id\":5,\"active\":true,\"account_id\":8,\"unit_id\":0,\"brand\":\"Toyota\",\"name\":\"X3\",\"slug\":\"x3\",\"model\":\"Juke\",\"version\":\"3.2\",\"model_year\":2005,\"production_year\":\"2008\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"8812.52\",\"price_value\":9231,\"price\":\"1876.52\",\"category\":\"Hatchback\",\"transmission\":\"Automanual\",\"km_value\":40936712,\"km\":\"19445608\",\"plate\":\"5888\",\"color\":\"Black\",\"doors\":6,\"fuel\":9,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.053Z\",\"updated_at\":\"2018-11-08T17:38:23.053Z\"},{\"id\":7,\"active\":true,\"account_id\":5,\"unit_id\":8,\"brand\":\"Chevy\",\"name\":\"A7\",\"slug\":\"a7\",\"model\":\"Camero\",\"version\":\"5.3\",\"model_year\":2011,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1580.64\",\"price_value\":1165,\"price\":\"8709.63\",\"category\":\"Convertible\",\"transmission\":\"CVT\",\"km_value\":52169327,\"km\":\"15231393\",\"plate\":\"2997\",\"color\":\"Green\",\"doors\":1,\"fuel\":3,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.064Z\",\"updated_at\":\"2018-11-08T17:38:23.064Z\"},{\"id\":8,\"active\":true,\"account_id\":2,\"unit_id\":4,\"brand\":\"Nissan\",\"name\":\"Prius\",\"slug\":\"prius\",\"model\":\"Accord\",\"version\":\"7.8\",\"model_year\":2009,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"7129.91\",\"price_value\":2488,\"price\":\"4001.48\",\"category\":\"SUV\",\"transmission\":\"Manual\",\"km_value\":80244772,\"km\":\"48716911\",\"plate\":\"9573\",\"color\":\"Grey\",\"doors\":4,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.069Z\",\"updated_at\":\"2018-11-08T17:38:23.069Z\"},{\"id\":9,\"active\":false,\"account_id\":7,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Focus\",\"slug\":\"focus\",\"model\":\"LaCrosse\",\"version\":\"1.7\",\"model_year\":2012,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5197.01\",\"price_value\":2028,\"price\":\"8301.38\",\"category\":\"Minivan\",\"transmission\":\"Automatic\",\"km_value\":34215256,\"km\":\"11433071\",\"plate\":\"5603\",\"color\":\"Violet\",\"doors\":1,\"fuel\":5,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.075Z\",\"updated_at\":\"2018-11-08T17:38:23.075Z\"},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Ram\",\"slug\":\"cr-v\",\"model\":\"Prius\",\"version\":\"9.5\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1648.31\",\"price_value\":8432,\"price\":\"2056.82\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":47546237,\"km\":\"39672408\",\"plate\":\"4005\",\"color\":\"Yellow\",\"doors\":9,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.080Z\",\"updated_at\":\"2018-11-08T17:38:23.080Z\"},{\"id\":52,\"active\":true,\"account_id\":9,\"unit_id\":7,\"brand\":\"Lincoln\",\"name\":\"Dodge Charger\",\"slug\":\"voluptatum\",\"model\":\"Navigator\",\"version\":\"8.0\",\"model_year\":2008,\"production_year\":\"2018\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"9964.29\",\"price_value\":1748,\"price\":\"9110.94\",\"category\":\"Minivan\",\"transmission\":\"Manual\",\"km_value\":65916645,\"km\":\"94890803\",\"plate\":\"5229\",\"color\":\"Orange\",\"doors\":5,\"fuel\":4,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:21:25.070Z\",\"updated_at\":\"2018-11-26T15:21:25.070Z\"},{\"id\":6,\"active\":true,\"account_id\":0,\"unit_id\":2,\"brand\":\"Honda\",\"name\":\"in\",\"slug\":\"durango-9d02071a-77c0-403b-bc46-c7161408f812\",\"model\":\"MKZ\",\"version\":\"4.9\",\"model_year\":2008,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7058.43\",\"price_value\":5808,\"price\":\"8617.65\",\"category\":\"Coupe\",\"transmission\":\"Automanual\",\"km_value\":43250550,\"km\":\"34167150\",\"plate\":\"6998\",\"color\":\"Green\",\"doors\":1,\"fuel\":9,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.058Z\",\"updated_at\":\"2018-11-26T15:21:25.108Z\"}],\"total\":10,\"total_pages\":1,\"last_page\":true,\"previous_page\":\"http://www.example.com/api/v1/used_models?page\",\"next_page\":\"http://www.example.com/api/v1/used_models?page\",\"out_of_bounds\":false,\"offset\":0}}}"], ["created_at", "2018-11-26 15:24:22.072994"], ["updated_at", "2018-11-26 15:24:22.072994"]]
1132
+  (11.1ms) COMMIT
1133
+ Completed 200 OK in 81ms (Views: 1.7ms | ActiveRecord: 18.3ms)
1134
+  (0.2ms) BEGIN
1135
+  (0.1ms) ROLLBACK
1136
+  (0.1ms) BEGIN
1137
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
1138
+  (0.1ms) ROLLBACK
1139
+ Started GET "/api/v1/used_models?per_page=-1" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1140
+ Processing by Apicasso::CrudController#index as HTML
1141
+ Parameters: {"per_page"=>"-1", "resource"=>"used_models"}
1142
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "520e05556f5942d5bd434b7e2bf3f168"], ["LIMIT", 1]]
1143
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
1144
+  (0.1ms) BEGIN
1145
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["LIMIT", 1]]
1146
+ Apicasso::Request Create (1.1ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["object", "{\"request\":{\"uuid\":\"88a24e5d-f108-4ecf-b915-c67d93646421\",\"url\":\"http://www.example.com/api/v1/used_models?per_page=-1\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=520e05556f5942d5bd434b7e2bf3f168\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":1,\"active\":false,\"account_id\":8,\"unit_id\":3,\"brand\":\"Buick\",\"name\":\"M5\",\"slug\":\"m5\",\"model\":\"Odyssey\",\"version\":\"3.8\",\"model_year\":2017,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"4719.56\",\"price_value\":8533,\"price\":\"3805.29\",\"category\":\"Regular Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":43961194,\"km\":\"59551357\",\"plate\":\"2033\",\"color\":\"Beige\",\"doors\":6,\"fuel\":3,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.029Z\",\"updated_at\":\"2018-11-08T17:38:23.029Z\"},{\"id\":2,\"active\":false,\"account_id\":1,\"unit_id\":5,\"brand\":\"Audi\",\"name\":\"Civic\",\"slug\":\"civic\",\"model\":\"A5\",\"version\":\"2.2\",\"model_year\":2016,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1294.34\",\"price_value\":8525,\"price\":\"5665.78\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":51090415,\"km\":\"96433648\",\"plate\":\"9510\",\"color\":\"Black\",\"doors\":8,\"fuel\":0,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.036Z\",\"updated_at\":\"2018-11-08T17:38:23.036Z\"},{\"id\":4,\"active\":false,\"account_id\":7,\"unit_id\":1,\"brand\":\"Chevy\",\"name\":\"Durango\",\"slug\":\"durango\",\"model\":\"Camero\",\"version\":\"8.5\",\"model_year\":2018,\"production_year\":\"2012\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2300.77\",\"price_value\":1516,\"price\":\"2245.59\",\"category\":\"Wagon\",\"transmission\":\"Automatic\",\"km_value\":78271823,\"km\":\"95493414\",\"plate\":\"2689\",\"color\":\"Red\",\"doors\":7,\"fuel\":1,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.047Z\",\"updated_at\":\"2018-11-08T17:38:23.047Z\"},{\"id\":5,\"active\":true,\"account_id\":8,\"unit_id\":0,\"brand\":\"Toyota\",\"name\":\"X3\",\"slug\":\"x3\",\"model\":\"Juke\",\"version\":\"3.2\",\"model_year\":2005,\"production_year\":\"2008\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"8812.52\",\"price_value\":9231,\"price\":\"1876.52\",\"category\":\"Hatchback\",\"transmission\":\"Automanual\",\"km_value\":40936712,\"km\":\"19445608\",\"plate\":\"5888\",\"color\":\"Black\",\"doors\":6,\"fuel\":9,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.053Z\",\"updated_at\":\"2018-11-08T17:38:23.053Z\"},{\"id\":7,\"active\":true,\"account_id\":5,\"unit_id\":8,\"brand\":\"Chevy\",\"name\":\"A7\",\"slug\":\"a7\",\"model\":\"Camero\",\"version\":\"5.3\",\"model_year\":2011,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1580.64\",\"price_value\":1165,\"price\":\"8709.63\",\"category\":\"Convertible\",\"transmission\":\"CVT\",\"km_value\":52169327,\"km\":\"15231393\",\"plate\":\"2997\",\"color\":\"Green\",\"doors\":1,\"fuel\":3,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.064Z\",\"updated_at\":\"2018-11-08T17:38:23.064Z\"},{\"id\":8,\"active\":true,\"account_id\":2,\"unit_id\":4,\"brand\":\"Nissan\",\"name\":\"Prius\",\"slug\":\"prius\",\"model\":\"Accord\",\"version\":\"7.8\",\"model_year\":2009,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"7129.91\",\"price_value\":2488,\"price\":\"4001.48\",\"category\":\"SUV\",\"transmission\":\"Manual\",\"km_value\":80244772,\"km\":\"48716911\",\"plate\":\"9573\",\"color\":\"Grey\",\"doors\":4,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.069Z\",\"updated_at\":\"2018-11-08T17:38:23.069Z\"},{\"id\":9,\"active\":false,\"account_id\":7,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Focus\",\"slug\":\"focus\",\"model\":\"LaCrosse\",\"version\":\"1.7\",\"model_year\":2012,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5197.01\",\"price_value\":2028,\"price\":\"8301.38\",\"category\":\"Minivan\",\"transmission\":\"Automatic\",\"km_value\":34215256,\"km\":\"11433071\",\"plate\":\"5603\",\"color\":\"Violet\",\"doors\":1,\"fuel\":5,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.075Z\",\"updated_at\":\"2018-11-08T17:38:23.075Z\"},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Ram\",\"slug\":\"cr-v\",\"model\":\"Prius\",\"version\":\"9.5\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1648.31\",\"price_value\":8432,\"price\":\"2056.82\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":47546237,\"km\":\"39672408\",\"plate\":\"4005\",\"color\":\"Yellow\",\"doors\":9,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.080Z\",\"updated_at\":\"2018-11-08T17:38:23.080Z\"},{\"id\":52,\"active\":true,\"account_id\":9,\"unit_id\":7,\"brand\":\"Lincoln\",\"name\":\"Dodge Charger\",\"slug\":\"voluptatum\",\"model\":\"Navigator\",\"version\":\"8.0\",\"model_year\":2008,\"production_year\":\"2018\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"9964.29\",\"price_value\":1748,\"price\":\"9110.94\",\"category\":\"Minivan\",\"transmission\":\"Manual\",\"km_value\":65916645,\"km\":\"94890803\",\"plate\":\"5229\",\"color\":\"Orange\",\"doors\":5,\"fuel\":4,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:21:25.070Z\",\"updated_at\":\"2018-11-26T15:21:25.070Z\"},{\"id\":6,\"active\":true,\"account_id\":0,\"unit_id\":2,\"brand\":\"Honda\",\"name\":\"in\",\"slug\":\"durango-9d02071a-77c0-403b-bc46-c7161408f812\",\"model\":\"MKZ\",\"version\":\"4.9\",\"model_year\":2008,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7058.43\",\"price_value\":5808,\"price\":\"8617.65\",\"category\":\"Coupe\",\"transmission\":\"Automanual\",\"km_value\":43250550,\"km\":\"34167150\",\"plate\":\"6998\",\"color\":\"Green\",\"doors\":1,\"fuel\":9,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.058Z\",\"updated_at\":\"2018-11-26T15:21:25.108Z\"}],\"total\":10}}}"], ["created_at", "2018-11-26 15:24:22.111804"], ["updated_at", "2018-11-26 15:24:22.111804"]]
1147
+  (1.9ms) COMMIT
1148
+ Completed 200 OK in 23ms (Views: 1.6ms | ActiveRecord: 4.1ms)
1149
+  (0.1ms) BEGIN
1150
+  (0.3ms) ROLLBACK
1151
+  (0.1ms) BEGIN
1152
+  (0.6ms) SELECT COUNT(*) FROM "used_models"
1153
+  (0.2ms) ROLLBACK
1154
+ Started GET "/api/v1/used_models?per_page=5&page=5" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1155
+ Processing by Apicasso::CrudController#index as HTML
1156
+ Parameters: {"per_page"=>"5", "page"=>"5", "resource"=>"used_models"}
1157
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "520e05556f5942d5bd434b7e2bf3f168"], ["LIMIT", 1]]
1158
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 5], ["OFFSET", 20]]
1159
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
1160
+  (0.1ms) BEGIN
1161
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["LIMIT", 1]]
1162
+ Apicasso::Request Create (0.6ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["object", "{\"request\":{\"uuid\":\"a26ea816-f90c-4684-af5b-66235c1a32eb\",\"url\":\"http://www.example.com/api/v1/used_models?per_page=5\\u0026page=5\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=520e05556f5942d5bd434b7e2bf3f168\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[],\"total\":10,\"total_pages\":2,\"last_page\":true,\"previous_page\":\"http://www.example.com/api/v1/used_models?per_page=5\\u0026page=4\",\"next_page\":\"http://www.example.com/api/v1/used_models?per_page=5\\u0026page\",\"out_of_bounds\":true,\"offset\":20}}}"], ["created_at", "2018-11-26 15:24:22.141596"], ["updated_at", "2018-11-26 15:24:22.141596"]]
1163
+  (2.3ms) COMMIT
1164
+ Completed 200 OK in 12ms (Views: 0.1ms | ActiveRecord: 4.3ms)
1165
+  (0.1ms) BEGIN
1166
+  (0.1ms) ROLLBACK
1167
+  (0.1ms) BEGIN
1168
+  (0.1ms) ROLLBACK
1169
+ Started GET "/api/v1/used_models?q%5Bbrand_matches%5D=Chevy" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1170
+ Processing by Apicasso::CrudController#index as HTML
1171
+ Parameters: {"q"=>{"brand_matches"=>"Chevy"}, "resource"=>"used_models"}
1172
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "520e05556f5942d5bd434b7e2bf3f168"], ["LIMIT", 1]]
1173
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."brand" ILIKE 'Chevy' LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
1174
+  (0.4ms) SELECT COUNT(*) FROM "used_models" WHERE "used_models"."brand" ILIKE 'Chevy'
1175
+  (0.2ms) BEGIN
1176
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["LIMIT", 1]]
1177
+ Apicasso::Request Create (0.8ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["object", "{\"request\":{\"uuid\":\"1483fb89-45bf-4b63-9481-516e9ceaf06e\",\"url\":\"http://www.example.com/api/v1/used_models?q%5Bbrand_matches%5D=Chevy\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=520e05556f5942d5bd434b7e2bf3f168\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":4,\"active\":false,\"account_id\":7,\"unit_id\":1,\"brand\":\"Chevy\",\"name\":\"Durango\",\"slug\":\"durango\",\"model\":\"Camero\",\"version\":\"8.5\",\"model_year\":2018,\"production_year\":\"2012\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2300.77\",\"price_value\":1516,\"price\":\"2245.59\",\"category\":\"Wagon\",\"transmission\":\"Automatic\",\"km_value\":78271823,\"km\":\"95493414\",\"plate\":\"2689\",\"color\":\"Red\",\"doors\":7,\"fuel\":1,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.047Z\",\"updated_at\":\"2018-11-08T17:38:23.047Z\"},{\"id\":7,\"active\":true,\"account_id\":5,\"unit_id\":8,\"brand\":\"Chevy\",\"name\":\"A7\",\"slug\":\"a7\",\"model\":\"Camero\",\"version\":\"5.3\",\"model_year\":2011,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1580.64\",\"price_value\":1165,\"price\":\"8709.63\",\"category\":\"Convertible\",\"transmission\":\"CVT\",\"km_value\":52169327,\"km\":\"15231393\",\"plate\":\"2997\",\"color\":\"Green\",\"doors\":1,\"fuel\":3,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.064Z\",\"updated_at\":\"2018-11-08T17:38:23.064Z\"},{\"id\":9,\"active\":false,\"account_id\":7,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Focus\",\"slug\":\"focus\",\"model\":\"LaCrosse\",\"version\":\"1.7\",\"model_year\":2012,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5197.01\",\"price_value\":2028,\"price\":\"8301.38\",\"category\":\"Minivan\",\"transmission\":\"Automatic\",\"km_value\":34215256,\"km\":\"11433071\",\"plate\":\"5603\",\"color\":\"Violet\",\"doors\":1,\"fuel\":5,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.075Z\",\"updated_at\":\"2018-11-08T17:38:23.075Z\"},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Ram\",\"slug\":\"cr-v\",\"model\":\"Prius\",\"version\":\"9.5\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1648.31\",\"price_value\":8432,\"price\":\"2056.82\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":47546237,\"km\":\"39672408\",\"plate\":\"4005\",\"color\":\"Yellow\",\"doors\":9,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.080Z\",\"updated_at\":\"2018-11-08T17:38:23.080Z\"}],\"total\":4,\"total_pages\":1,\"last_page\":true,\"previous_page\":\"http://www.example.com/api/v1/used_models?q%5Bbrand_matches%5D=Chevy\\u0026page\",\"next_page\":\"http://www.example.com/api/v1/used_models?q%5Bbrand_matches%5D=Chevy\\u0026page\",\"out_of_bounds\":false,\"offset\":0}}}"], ["created_at", "2018-11-26 15:24:22.158836"], ["updated_at", "2018-11-26 15:24:22.158836"]]
1178
+  (1.9ms) COMMIT
1179
+ Completed 200 OK in 19ms (Views: 0.7ms | ActiveRecord: 4.2ms)
1180
+  (0.1ms) BEGIN
1181
+  (0.1ms) ROLLBACK
1182
+  (0.1ms) BEGIN
1183
+  (0.1ms) ROLLBACK
1184
+ Started GET "/api/v1/used_models?group%5Bby%5D=shielded&group%5Bcalculate%5D=count&group%5Bfields%5D=km_value" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1185
+ Processing by Apicasso::CrudController#index as HTML
1186
+ Parameters: {"group"=>{"by"=>"shielded", "calculate"=>"count", "fields"=>"km_value"}, "resource"=>"used_models"}
1187
+ Apicasso::Key Load (0.1ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "520e05556f5942d5bd434b7e2bf3f168"], ["LIMIT", 1]]
1188
+  (0.4ms) SELECT COUNT(*) AS count_all, "used_models"."shielded" AS used_models_shielded FROM "used_models" GROUP BY "used_models"."shielded"
1189
+  (0.1ms) BEGIN
1190
+ Apicasso::Key Load (0.6ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["LIMIT", 1]]
1191
+ Apicasso::Request Create (0.3ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["object", "{\"request\":{\"uuid\":\"626b67a7-58f6-445a-b55d-78ca04aeb17c\",\"url\":\"http://www.example.com/api/v1/used_models?group%5Bby%5D=shielded\\u0026group%5Bcalculate%5D=count\\u0026group%5Bfields%5D=km_value\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=520e05556f5942d5bd434b7e2bf3f168\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"false\":5,\"true\":5}}}"], ["created_at", "2018-11-26 15:24:22.179556"], ["updated_at", "2018-11-26 15:24:22.179556"]]
1192
+  (2.1ms) COMMIT
1193
+ Completed 200 OK in 10ms (Views: 0.1ms | ActiveRecord: 3.6ms)
1194
+  (0.2ms) BEGIN
1195
+  (0.2ms) ROLLBACK
1196
+  (0.1ms) BEGIN
1197
+  (0.3ms) SELECT COUNT(*) AS count_all, "used_models"."shielded" AS used_models_shielded FROM "used_models" WHERE (km_value is NOT NULL) GROUP BY "used_models"."shielded"
1198
+  (0.1ms) ROLLBACK
1199
+ Started GET "/api/v1/used_models?per_page=-1&sort=%2Bbrand%2C%2Bmodel" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1200
+ Processing by Apicasso::CrudController#index as HTML
1201
+ Parameters: {"per_page"=>"-1", "sort"=>"+brand,+model", "resource"=>"used_models"}
1202
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "520e05556f5942d5bd434b7e2bf3f168"], ["LIMIT", 1]]
1203
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" ORDER BY "used_models"."brand" ASC, "used_models"."model" ASC
1204
+  (0.2ms) BEGIN
1205
+ Apicasso::Key Load (0.5ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["LIMIT", 1]]
1206
+ Apicasso::Request Create (0.6ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["object", "{\"request\":{\"uuid\":\"fbce695a-49ab-4842-b89d-f07313bb37b2\",\"url\":\"http://www.example.com/api/v1/used_models?per_page=-1\\u0026sort=%2Bbrand%2C%2Bmodel\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=520e05556f5942d5bd434b7e2bf3f168\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":2,\"active\":false,\"account_id\":1,\"unit_id\":5,\"brand\":\"Audi\",\"name\":\"Civic\",\"slug\":\"civic\",\"model\":\"A5\",\"version\":\"2.2\",\"model_year\":2016,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1294.34\",\"price_value\":8525,\"price\":\"5665.78\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":51090415,\"km\":\"96433648\",\"plate\":\"9510\",\"color\":\"Black\",\"doors\":8,\"fuel\":0,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.036Z\",\"updated_at\":\"2018-11-08T17:38:23.036Z\"},{\"id\":1,\"active\":false,\"account_id\":8,\"unit_id\":3,\"brand\":\"Buick\",\"name\":\"M5\",\"slug\":\"m5\",\"model\":\"Odyssey\",\"version\":\"3.8\",\"model_year\":2017,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"4719.56\",\"price_value\":8533,\"price\":\"3805.29\",\"category\":\"Regular Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":43961194,\"km\":\"59551357\",\"plate\":\"2033\",\"color\":\"Beige\",\"doors\":6,\"fuel\":3,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.029Z\",\"updated_at\":\"2018-11-08T17:38:23.029Z\"},{\"id\":4,\"active\":false,\"account_id\":7,\"unit_id\":1,\"brand\":\"Chevy\",\"name\":\"Durango\",\"slug\":\"durango\",\"model\":\"Camero\",\"version\":\"8.5\",\"model_year\":2018,\"production_year\":\"2012\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2300.77\",\"price_value\":1516,\"price\":\"2245.59\",\"category\":\"Wagon\",\"transmission\":\"Automatic\",\"km_value\":78271823,\"km\":\"95493414\",\"plate\":\"2689\",\"color\":\"Red\",\"doors\":7,\"fuel\":1,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.047Z\",\"updated_at\":\"2018-11-08T17:38:23.047Z\"},{\"id\":7,\"active\":true,\"account_id\":5,\"unit_id\":8,\"brand\":\"Chevy\",\"name\":\"A7\",\"slug\":\"a7\",\"model\":\"Camero\",\"version\":\"5.3\",\"model_year\":2011,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1580.64\",\"price_value\":1165,\"price\":\"8709.63\",\"category\":\"Convertible\",\"transmission\":\"CVT\",\"km_value\":52169327,\"km\":\"15231393\",\"plate\":\"2997\",\"color\":\"Green\",\"doors\":1,\"fuel\":3,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.064Z\",\"updated_at\":\"2018-11-08T17:38:23.064Z\"},{\"id\":9,\"active\":false,\"account_id\":7,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Focus\",\"slug\":\"focus\",\"model\":\"LaCrosse\",\"version\":\"1.7\",\"model_year\":2012,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5197.01\",\"price_value\":2028,\"price\":\"8301.38\",\"category\":\"Minivan\",\"transmission\":\"Automatic\",\"km_value\":34215256,\"km\":\"11433071\",\"plate\":\"5603\",\"color\":\"Violet\",\"doors\":1,\"fuel\":5,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.075Z\",\"updated_at\":\"2018-11-08T17:38:23.075Z\"},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Ram\",\"slug\":\"cr-v\",\"model\":\"Prius\",\"version\":\"9.5\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1648.31\",\"price_value\":8432,\"price\":\"2056.82\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":47546237,\"km\":\"39672408\",\"plate\":\"4005\",\"color\":\"Yellow\",\"doors\":9,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.080Z\",\"updated_at\":\"2018-11-08T17:38:23.080Z\"},{\"id\":6,\"active\":true,\"account_id\":0,\"unit_id\":2,\"brand\":\"Honda\",\"name\":\"in\",\"slug\":\"durango-9d02071a-77c0-403b-bc46-c7161408f812\",\"model\":\"MKZ\",\"version\":\"4.9\",\"model_year\":2008,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7058.43\",\"price_value\":5808,\"price\":\"8617.65\",\"category\":\"Coupe\",\"transmission\":\"Automanual\",\"km_value\":43250550,\"km\":\"34167150\",\"plate\":\"6998\",\"color\":\"Green\",\"doors\":1,\"fuel\":9,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.058Z\",\"updated_at\":\"2018-11-26T15:21:25.108Z\"},{\"id\":52,\"active\":true,\"account_id\":9,\"unit_id\":7,\"brand\":\"Lincoln\",\"name\":\"Dodge Charger\",\"slug\":\"voluptatum\",\"model\":\"Navigator\",\"version\":\"8.0\",\"model_year\":2008,\"production_year\":\"2018\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"9964.29\",\"price_value\":1748,\"price\":\"9110.94\",\"category\":\"Minivan\",\"transmission\":\"Manual\",\"km_value\":65916645,\"km\":\"94890803\",\"plate\":\"5229\",\"color\":\"Orange\",\"doors\":5,\"fuel\":4,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:21:25.070Z\",\"updated_at\":\"2018-11-26T15:21:25.070Z\"},{\"id\":8,\"active\":true,\"account_id\":2,\"unit_id\":4,\"brand\":\"Nissan\",\"name\":\"Prius\",\"slug\":\"prius\",\"model\":\"Accord\",\"version\":\"7.8\",\"model_year\":2009,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"7129.91\",\"price_value\":2488,\"price\":\"4001.48\",\"category\":\"SUV\",\"transmission\":\"Manual\",\"km_value\":80244772,\"km\":\"48716911\",\"plate\":\"9573\",\"color\":\"Grey\",\"doors\":4,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.069Z\",\"updated_at\":\"2018-11-08T17:38:23.069Z\"},{\"id\":5,\"active\":true,\"account_id\":8,\"unit_id\":0,\"brand\":\"Toyota\",\"name\":\"X3\",\"slug\":\"x3\",\"model\":\"Juke\",\"version\":\"3.2\",\"model_year\":2005,\"production_year\":\"2008\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"8812.52\",\"price_value\":9231,\"price\":\"1876.52\",\"category\":\"Hatchback\",\"transmission\":\"Automanual\",\"km_value\":40936712,\"km\":\"19445608\",\"plate\":\"5888\",\"color\":\"Black\",\"doors\":6,\"fuel\":9,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.053Z\",\"updated_at\":\"2018-11-08T17:38:23.053Z\"}],\"total\":10}}}"], ["created_at", "2018-11-26 15:24:22.205670"], ["updated_at", "2018-11-26 15:24:22.205670"]]
1207
+  (1.9ms) COMMIT
1208
+ Completed 200 OK in 28ms (Views: 4.7ms | ActiveRecord: 3.9ms)
1209
+  (0.1ms) BEGIN
1210
+  (0.1ms) ROLLBACK
1211
+  (0.1ms) BEGIN
1212
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" ORDER BY "used_models"."brand" ASC, "used_models"."model" ASC
1213
+  (0.1ms) ROLLBACK
1214
+ Started GET "/api/v1/used_models?select=model" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1215
+ Processing by Apicasso::CrudController#index as HTML
1216
+ Parameters: {"select"=>"model", "resource"=>"used_models"}
1217
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "520e05556f5942d5bd434b7e2bf3f168"], ["LIMIT", 1]]
1218
+ UsedModel Load (0.2ms) SELECT "used_models"."model" FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
1219
+  (0.5ms) SELECT COUNT("used_models"."model") FROM "used_models"
1220
+  (0.3ms) BEGIN
1221
+ Apicasso::Key Load (0.5ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["LIMIT", 1]]
1222
+ Apicasso::Request Create (0.3ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["object", "{\"request\":{\"uuid\":\"f8a2e6c1-9366-4e2d-ae36-7c30eb4a1df2\",\"url\":\"http://www.example.com/api/v1/used_models?select=model\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=520e05556f5942d5bd434b7e2bf3f168\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":null,\"model\":\"Odyssey\"},{\"id\":null,\"model\":\"A5\"},{\"id\":null,\"model\":\"Camero\"},{\"id\":null,\"model\":\"Juke\"},{\"id\":null,\"model\":\"Camero\"},{\"id\":null,\"model\":\"Accord\"},{\"id\":null,\"model\":\"LaCrosse\"},{\"id\":null,\"model\":\"Prius\"},{\"id\":null,\"model\":\"Navigator\"},{\"id\":null,\"model\":\"MKZ\"}],\"total\":10,\"total_pages\":1,\"last_page\":true,\"previous_page\":\"http://www.example.com/api/v1/used_models?select=model\\u0026page\",\"next_page\":\"http://www.example.com/api/v1/used_models?select=model\\u0026page\",\"out_of_bounds\":false,\"offset\":0}}}"], ["created_at", "2018-11-26 15:24:22.232928"], ["updated_at", "2018-11-26 15:24:22.232928"]]
1223
+  (2.2ms) COMMIT
1224
+ Completed 200 OK in 15ms (Views: 0.6ms | ActiveRecord: 4.2ms)
1225
+  (0.1ms) BEGIN
1226
+  (0.1ms) ROLLBACK
1227
+  (0.1ms) BEGIN
1228
+  (0.1ms) ROLLBACK
1229
+ Started GET "/api/v1/used_models?include=files_blobs%2Cfiles_url" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1230
+ Processing by Apicasso::CrudController#index as HTML
1231
+ Parameters: {"include"=>"files_blobs,files_url", "resource"=>"used_models"}
1232
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "520e05556f5942d5bd434b7e2bf3f168"], ["LIMIT", 1]]
1233
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
1234
+ ActiveStorage::Attachment Load (0.7ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_type" = $1 AND "active_storage_attachments"."name" = $2 AND "active_storage_attachments"."record_id" IN ($3, $4, $5, $6, $7, $8, $9, $10, $11, $12) [["record_type", "UsedModel"], ["name", "files"], ["record_id", 1], ["record_id", 2], ["record_id", 4], ["record_id", 5], ["record_id", 7], ["record_id", 8], ["record_id", 9], ["record_id", 10], ["record_id", 52], ["record_id", 6]]
1235
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
1236
+  (0.1ms) BEGIN
1237
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["LIMIT", 1]]
1238
+ Apicasso::Request Create (0.4ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["object", "{\"request\":{\"uuid\":\"ee78c1d5-edba-475e-8eb7-725d5380debd\",\"url\":\"http://www.example.com/api/v1/used_models?include=files_blobs%2Cfiles_url\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=520e05556f5942d5bd434b7e2bf3f168\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":1,\"active\":false,\"account_id\":8,\"unit_id\":3,\"brand\":\"Buick\",\"name\":\"M5\",\"slug\":\"m5\",\"model\":\"Odyssey\",\"version\":\"3.8\",\"model_year\":2017,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"4719.56\",\"price_value\":8533,\"price\":\"3805.29\",\"category\":\"Regular Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":43961194,\"km\":\"59551357\",\"plate\":\"2033\",\"color\":\"Beige\",\"doors\":6,\"fuel\":3,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.029Z\",\"updated_at\":\"2018-11-08T17:38:23.029Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":2,\"active\":false,\"account_id\":1,\"unit_id\":5,\"brand\":\"Audi\",\"name\":\"Civic\",\"slug\":\"civic\",\"model\":\"A5\",\"version\":\"2.2\",\"model_year\":2016,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1294.34\",\"price_value\":8525,\"price\":\"5665.78\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":51090415,\"km\":\"96433648\",\"plate\":\"9510\",\"color\":\"Black\",\"doors\":8,\"fuel\":0,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.036Z\",\"updated_at\":\"2018-11-08T17:38:23.036Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":4,\"active\":false,\"account_id\":7,\"unit_id\":1,\"brand\":\"Chevy\",\"name\":\"Durango\",\"slug\":\"durango\",\"model\":\"Camero\",\"version\":\"8.5\",\"model_year\":2018,\"production_year\":\"2012\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2300.77\",\"price_value\":1516,\"price\":\"2245.59\",\"category\":\"Wagon\",\"transmission\":\"Automatic\",\"km_value\":78271823,\"km\":\"95493414\",\"plate\":\"2689\",\"color\":\"Red\",\"doors\":7,\"fuel\":1,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.047Z\",\"updated_at\":\"2018-11-08T17:38:23.047Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":5,\"active\":true,\"account_id\":8,\"unit_id\":0,\"brand\":\"Toyota\",\"name\":\"X3\",\"slug\":\"x3\",\"model\":\"Juke\",\"version\":\"3.2\",\"model_year\":2005,\"production_year\":\"2008\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"8812.52\",\"price_value\":9231,\"price\":\"1876.52\",\"category\":\"Hatchback\",\"transmission\":\"Automanual\",\"km_value\":40936712,\"km\":\"19445608\",\"plate\":\"5888\",\"color\":\"Black\",\"doors\":6,\"fuel\":9,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.053Z\",\"updated_at\":\"2018-11-08T17:38:23.053Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":7,\"active\":true,\"account_id\":5,\"unit_id\":8,\"brand\":\"Chevy\",\"name\":\"A7\",\"slug\":\"a7\",\"model\":\"Camero\",\"version\":\"5.3\",\"model_year\":2011,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1580.64\",\"price_value\":1165,\"price\":\"8709.63\",\"category\":\"Convertible\",\"transmission\":\"CVT\",\"km_value\":52169327,\"km\":\"15231393\",\"plate\":\"2997\",\"color\":\"Green\",\"doors\":1,\"fuel\":3,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.064Z\",\"updated_at\":\"2018-11-08T17:38:23.064Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":8,\"active\":true,\"account_id\":2,\"unit_id\":4,\"brand\":\"Nissan\",\"name\":\"Prius\",\"slug\":\"prius\",\"model\":\"Accord\",\"version\":\"7.8\",\"model_year\":2009,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"7129.91\",\"price_value\":2488,\"price\":\"4001.48\",\"category\":\"SUV\",\"transmission\":\"Manual\",\"km_value\":80244772,\"km\":\"48716911\",\"plate\":\"9573\",\"color\":\"Grey\",\"doors\":4,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.069Z\",\"updated_at\":\"2018-11-08T17:38:23.069Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":9,\"active\":false,\"account_id\":7,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Focus\",\"slug\":\"focus\",\"model\":\"LaCrosse\",\"version\":\"1.7\",\"model_year\":2012,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5197.01\",\"price_value\":2028,\"price\":\"8301.38\",\"category\":\"Minivan\",\"transmission\":\"Automatic\",\"km_value\":34215256,\"km\":\"11433071\",\"plate\":\"5603\",\"color\":\"Violet\",\"doors\":1,\"fuel\":5,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.075Z\",\"updated_at\":\"2018-11-08T17:38:23.075Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Ram\",\"slug\":\"cr-v\",\"model\":\"Prius\",\"version\":\"9.5\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1648.31\",\"price_value\":8432,\"price\":\"2056.82\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":47546237,\"km\":\"39672408\",\"plate\":\"4005\",\"color\":\"Yellow\",\"doors\":9,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.080Z\",\"updated_at\":\"2018-11-08T17:38:23.080Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":52,\"active\":true,\"account_id\":9,\"unit_id\":7,\"brand\":\"Lincoln\",\"name\":\"Dodge Charger\",\"slug\":\"voluptatum\",\"model\":\"Navigator\",\"version\":\"8.0\",\"model_year\":2008,\"production_year\":\"2018\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"9964.29\",\"price_value\":1748,\"price\":\"9110.94\",\"category\":\"Minivan\",\"transmission\":\"Manual\",\"km_value\":65916645,\"km\":\"94890803\",\"plate\":\"5229\",\"color\":\"Orange\",\"doors\":5,\"fuel\":4,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:21:25.070Z\",\"updated_at\":\"2018-11-26T15:21:25.070Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":6,\"active\":true,\"account_id\":0,\"unit_id\":2,\"brand\":\"Honda\",\"name\":\"in\",\"slug\":\"durango-9d02071a-77c0-403b-bc46-c7161408f812\",\"model\":\"MKZ\",\"version\":\"4.9\",\"model_year\":2008,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7058.43\",\"price_value\":5808,\"price\":\"8617.65\",\"category\":\"Coupe\",\"transmission\":\"Automanual\",\"km_value\":43250550,\"km\":\"34167150\",\"plate\":\"6998\",\"color\":\"Green\",\"doors\":1,\"fuel\":9,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.058Z\",\"updated_at\":\"2018-11-26T15:21:25.108Z\",\"files_url\":[],\"files_blobs\":[]}],\"total\":10,\"total_pages\":1,\"last_page\":true,\"previous_page\":\"http://www.example.com/api/v1/used_models?include=files_blobs%2Cfiles_url\\u0026page\",\"next_page\":\"http://www.example.com/api/v1/used_models?include=files_blobs%2Cfiles_url\\u0026page\",\"out_of_bounds\":false,\"offset\":0}}}"], ["created_at", "2018-11-26 15:24:22.328525"], ["updated_at", "2018-11-26 15:24:22.328525"]]
1239
+  (1.8ms) COMMIT
1240
+ Completed 200 OK in 93ms (Views: 2.1ms | ActiveRecord: 5.6ms)
1241
+  (0.1ms) BEGIN
1242
+  (0.1ms) ROLLBACK
1243
+  (0.1ms) BEGIN
1244
+  (0.1ms) ROLLBACK
1245
+  (0.1ms) BEGIN
1246
+ Started GET "/api/v1/used_models?include=filess%2Cfilee" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1247
+ Processing by Apicasso::CrudController#index as HTML
1248
+ Parameters: {"include"=>"filess,filee", "resource"=>"used_models"}
1249
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "520e05556f5942d5bd434b7e2bf3f168"], ["LIMIT", 1]]
1250
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.2ms)
1251
+  (0.1ms) ROLLBACK
1252
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
1253
+ Started GET "/api/v1/used_models/2" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1254
+ Processing by Apicasso::CrudController#show as HTML
1255
+ Parameters: {"resource"=>"used_models", "id"=>"2"}
1256
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "520e05556f5942d5bd434b7e2bf3f168"], ["LIMIT", 1]]
1257
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "2"], ["LIMIT", 1]]
1258
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]]
1259
+  (0.1ms) BEGIN
1260
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["LIMIT", 1]]
1261
+ Apicasso::Request Create (0.5ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["object", "{\"request\":{\"uuid\":\"4de128a1-214d-424f-929b-ea322737ae9c\",\"url\":\"http://www.example.com/api/v1/used_models/2\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=520e05556f5942d5bd434b7e2bf3f168\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":2,\"active\":false,\"account_id\":1,\"unit_id\":5,\"brand\":\"Audi\",\"name\":\"Civic\",\"slug\":\"civic\",\"model\":\"A5\",\"version\":\"2.2\",\"model_year\":2016,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1294.34\",\"price_value\":8525,\"price\":\"5665.78\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":51090415,\"km\":\"96433648\",\"plate\":\"9510\",\"color\":\"Black\",\"doors\":8,\"fuel\":0,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.036Z\",\"updated_at\":\"2018-11-08T17:38:23.036Z\"}}}"], ["created_at", "2018-11-26 15:24:22.354781"], ["updated_at", "2018-11-26 15:24:22.354781"]]
1262
+  (1.9ms) COMMIT
1263
+ Completed 200 OK in 12ms (Views: 0.3ms | ActiveRecord: 3.9ms)
1264
+  (0.1ms) BEGIN
1265
+  (0.1ms) ROLLBACK
1266
+  (0.1ms) BEGIN
1267
+  (0.1ms) ROLLBACK
1268
+  (0.1ms) BEGIN
1269
+ UsedModel Load (0.2ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]]
1270
+  (0.2ms) ROLLBACK
1271
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
1272
+ Started GET "/api/v1/used_models/52?select=doors" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1273
+ Processing by Apicasso::CrudController#show as HTML
1274
+ Parameters: {"select"=>"doors", "resource"=>"used_models", "id"=>"52"}
1275
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "520e05556f5942d5bd434b7e2bf3f168"], ["LIMIT", 1]]
1276
+ UsedModel Load (0.7ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "52"], ["LIMIT", 1]]
1277
+ UsedModel Load (0.6ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 52], ["LIMIT", 1]]
1278
+  (0.2ms) BEGIN
1279
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["LIMIT", 1]]
1280
+ Apicasso::Request Create (0.3ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["object", "{\"request\":{\"uuid\":\"c6bb6e77-f1b1-47f6-af4d-cb5ec1e8b315\",\"url\":\"http://www.example.com/api/v1/used_models/52?select=doors\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=520e05556f5942d5bd434b7e2bf3f168\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"doors\":5}}}"], ["created_at", "2018-11-26 15:24:22.380706"], ["updated_at", "2018-11-26 15:24:22.380706"]]
1281
+  (1.8ms) COMMIT
1282
+ Completed 200 OK in 15ms (Views: 0.3ms | ActiveRecord: 4.2ms)
1283
+  (0.1ms) BEGIN
1284
+  (0.1ms) ROLLBACK
1285
+  (0.1ms) BEGIN
1286
+  (0.1ms) ROLLBACK
1287
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
1288
+ Started GET "/api/v1/used_models/10?include=files_blobs%2Cfiles_url" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1289
+ Processing by Apicasso::CrudController#show as HTML
1290
+ Parameters: {"include"=>"files_blobs,files_url", "resource"=>"used_models", "id"=>"10"}
1291
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "520e05556f5942d5bd434b7e2bf3f168"], ["LIMIT", 1]]
1292
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "10"], ["LIMIT", 1]]
1293
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]]
1294
+ ActiveStorage::Attachment Load (0.6ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 [["record_id", 10], ["record_type", "UsedModel"], ["name", "files"]]
1295
+ ActiveStorage::Blob Load (1.2ms) SELECT "active_storage_blobs".* FROM "active_storage_blobs" INNER JOIN "active_storage_attachments" ON "active_storage_blobs"."id" = "active_storage_attachments"."blob_id" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 [["record_id", 10], ["record_type", "UsedModel"], ["name", "files"]]
1296
+  (0.1ms) BEGIN
1297
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["LIMIT", 1]]
1298
+ Apicasso::Request Create (0.4ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["object", "{\"request\":{\"uuid\":\"0ef64ba9-9c5a-438b-9435-1c9eb64a17b8\",\"url\":\"http://www.example.com/api/v1/used_models/10?include=files_blobs%2Cfiles_url\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=520e05556f5942d5bd434b7e2bf3f168\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Ram\",\"slug\":\"cr-v\",\"model\":\"Prius\",\"version\":\"9.5\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1648.31\",\"price_value\":8432,\"price\":\"2056.82\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":47546237,\"km\":\"39672408\",\"plate\":\"4005\",\"color\":\"Yellow\",\"doors\":9,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.080Z\",\"updated_at\":\"2018-11-08T17:38:23.080Z\",\"files_url\":[],\"files_blobs\":[]}}}"], ["created_at", "2018-11-26 15:24:22.421783"], ["updated_at", "2018-11-26 15:24:22.421783"]]
1299
+  (1.9ms) COMMIT
1300
+ Completed 200 OK in 38ms (Views: 0.9ms | ActiveRecord: 10.8ms)
1301
+  (0.3ms) BEGIN
1302
+  (0.4ms) ROLLBACK
1303
+  (0.2ms) BEGIN
1304
+  (0.3ms) ROLLBACK
1305
+  (0.2ms) BEGIN
1306
+ UsedModel Load (0.8ms) SELECT "used_models".* FROM "used_models"
1307
+ Started GET "/api/v1/used_models/7?include=filess%2Cfilee" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1308
+ Processing by Apicasso::CrudController#show as HTML
1309
+ Parameters: {"include"=>"filess,filee", "resource"=>"used_models", "id"=>"7"}
1310
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "520e05556f5942d5bd434b7e2bf3f168"], ["LIMIT", 1]]
1311
+ Completed 400 Bad Request in 2ms (ActiveRecord: 0.3ms)
1312
+  (0.2ms) ROLLBACK
1313
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models"
1314
+ Started GET "/api/v1/used_models/civic" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1315
+ Processing by Apicasso::CrudController#show as HTML
1316
+ Parameters: {"resource"=>"used_models", "id"=>"civic"}
1317
+ Apicasso::Key Load (1.0ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "520e05556f5942d5bd434b7e2bf3f168"], ["LIMIT", 1]]
1318
+ UsedModel Load (0.7ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "civic"], ["LIMIT", 1]]
1319
+  (0.3ms) BEGIN
1320
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["LIMIT", 1]]
1321
+ Apicasso::Request Create (0.4ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["object", "{\"request\":{\"uuid\":\"d8c6c3f4-8fbe-49e2-8d54-be5a723e54db\",\"url\":\"http://www.example.com/api/v1/used_models/civic\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=520e05556f5942d5bd434b7e2bf3f168\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":2,\"active\":false,\"account_id\":1,\"unit_id\":5,\"brand\":\"Audi\",\"name\":\"Civic\",\"slug\":\"civic\",\"model\":\"A5\",\"version\":\"2.2\",\"model_year\":2016,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1294.34\",\"price_value\":8525,\"price\":\"5665.78\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":51090415,\"km\":\"96433648\",\"plate\":\"9510\",\"color\":\"Black\",\"doors\":8,\"fuel\":0,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.036Z\",\"updated_at\":\"2018-11-08T17:38:23.036Z\"}}}"], ["created_at", "2018-11-26 15:24:22.458804"], ["updated_at", "2018-11-26 15:24:22.458804"]]
1322
+  (2.1ms) COMMIT
1323
+ Completed 200 OK in 18ms (Views: 1.0ms | ActiveRecord: 5.1ms)
1324
+  (0.1ms) BEGIN
1325
+  (0.2ms) ROLLBACK
1326
+  (0.1ms) BEGIN
1327
+  (0.1ms) ROLLBACK
1328
+  (0.1ms) BEGIN
1329
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "civic"], ["LIMIT", 1]]
1330
+  (0.2ms) ROLLBACK
1331
+  (0.5ms) SELECT COUNT(*) FROM "used_models"
1332
+ Started POST "/api/v1/used_models/" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1333
+ Processing by Apicasso::CrudController#create as HTML
1334
+ Parameters: {"used_model"=>{"active"=>"true", "account_id"=>"9", "unit_id"=>"8", "brand"=>"Lincoln", "name"=>"Audi A5", "model"=>"Navigator", "slug"=>"sequi", "version"=>"6.2", "model_year"=>"2006", "production_year"=>"2005", "kind"=>"car", "new_vehicle"=>"false", "old_price"=>"4815.93", "price_value"=>"5898.82", "price"=>"3045.47", "category"=>"Minivan", "transmission"=>"CVT", "km_value"=>"51961603", "km"=>"90405822", "plate"=>"2981", "color"=>"Blue", "doors"=>"0", "fuel"=>"2", "fuel_text"=>"E-85/Gasoline", "shielded"=>"true"}, "resource"=>"used_models"}
1335
+ Apicasso::Key Load (0.7ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "520e05556f5942d5bd434b7e2bf3f168"], ["LIMIT", 1]]
1336
+  (0.2ms) BEGIN
1337
+ UsedModel Create (0.6ms) INSERT INTO "used_models" ("account_id", "unit_id", "brand", "name", "slug", "model", "version", "model_year", "production_year", "kind", "old_price", "price_value", "price", "category", "transmission", "km_value", "km", "plate", "color", "doors", "fuel", "fuel_text", "shielded", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25) RETURNING "id" [["account_id", 9], ["unit_id", 8], ["brand", "Lincoln"], ["name", "Audi A5"], ["slug", "sequi"], ["model", "Navigator"], ["version", "6.2"], ["model_year", 2006], ["production_year", "2005"], ["kind", "car"], ["old_price", "4815.93"], ["price_value", 5898], ["price", "3045.47"], ["category", "Minivan"], ["transmission", "CVT"], ["km_value", 51961603], ["km", "90405822"], ["plate", "2981"], ["color", "Blue"], ["doors", 0], ["fuel", 2], ["fuel_text", "E-85/Gasoline"], ["shielded", true], ["created_at", "2018-11-26 15:24:22.498507"], ["updated_at", "2018-11-26 15:24:22.498507"]]
1338
+  (2.0ms) COMMIT
1339
+  (0.1ms) BEGIN
1340
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["LIMIT", 1]]
1341
+ Apicasso::Request Create (0.3ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["object", "{\"request\":{\"uuid\":\"c282849d-c716-4f51-a0b6-924a249ea67e\",\"url\":\"http://www.example.com/api/v1/used_models/\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=520e05556f5942d5bd434b7e2bf3f168\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":201,\"body\":{\"id\":55,\"active\":true,\"account_id\":9,\"unit_id\":8,\"brand\":\"Lincoln\",\"name\":\"Audi A5\",\"slug\":\"sequi\",\"model\":\"Navigator\",\"version\":\"6.2\",\"model_year\":2006,\"production_year\":\"2005\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"4815.93\",\"price_value\":5898,\"price\":\"3045.47\",\"category\":\"Minivan\",\"transmission\":\"CVT\",\"km_value\":51961603,\"km\":\"90405822\",\"plate\":\"2981\",\"color\":\"Blue\",\"doors\":0,\"fuel\":2,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:24:22.498Z\",\"updated_at\":\"2018-11-26T15:24:22.498Z\"}}}"], ["created_at", "2018-11-26 15:24:22.505321"], ["updated_at", "2018-11-26 15:24:22.505321"]]
1342
+  (1.8ms) COMMIT
1343
+ Completed 201 Created in 17ms (Views: 0.1ms | ActiveRecord: 5.9ms)
1344
+  (0.1ms) BEGIN
1345
+  (0.1ms) ROLLBACK
1346
+  (0.2ms) BEGIN
1347
+  (0.4ms) SELECT COUNT(*) FROM "used_models"
1348
+  (0.2ms) ROLLBACK
1349
+  (0.1ms) BEGIN
1350
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "sequi"], ["LIMIT", 1]]
1351
+  (0.3ms) ROLLBACK
1352
+  (0.1ms) BEGIN
1353
+ Started POST "/api/v1/used_models/" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1354
+ Processing by Apicasso::CrudController#create as HTML
1355
+ Parameters: {"used_model"=>{"slug"=>"cr-v"}, "resource"=>"used_models"}
1356
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "520e05556f5942d5bd434b7e2bf3f168"], ["LIMIT", 1]]
1357
+  (0.2ms) SAVEPOINT active_record_1
1358
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
1359
+  (0.1ms) SAVEPOINT active_record_1
1360
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["LIMIT", 1]]
1361
+ Apicasso::Request Create (0.3ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["object", "{\"request\":{\"uuid\":\"5e1d2052-0573-4dce-a796-a4361ee33d16\",\"url\":\"http://www.example.com/api/v1/used_models/\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=520e05556f5942d5bd434b7e2bf3f168\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":422,\"body\":{\"account_id\":[\"can't be blank\"],\"unit_id\":[\"can't be blank\"]}}}"], ["created_at", "2018-11-26 15:24:22.527004"], ["updated_at", "2018-11-26 15:24:22.527004"]]
1362
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1363
+ Completed 422 Unprocessable Entity in 7ms (Views: 0.2ms | ActiveRecord: 1.2ms)
1364
+  (0.3ms) ROLLBACK
1365
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models"
1366
+ Started PATCH "/api/v1/used_models/2" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1367
+ Processing by Apicasso::CrudController#update as HTML
1368
+ Parameters: {"used_model"=>{"name"=>"dolor"}, "resource"=>"used_models", "id"=>"2"}
1369
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "520e05556f5942d5bd434b7e2bf3f168"], ["LIMIT", 1]]
1370
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "2"], ["LIMIT", 1]]
1371
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]]
1372
+  (0.1ms) BEGIN
1373
+ UsedModel Update (0.3ms) UPDATE "used_models" SET "name" = $1, "updated_at" = $2 WHERE "used_models"."id" = $3 [["name", "dolor"], ["updated_at", "2018-11-26 15:24:22.542292"], ["id", 2]]
1374
+  (2.2ms) COMMIT
1375
+  (0.2ms) BEGIN
1376
+ Apicasso::Key Load (0.5ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["LIMIT", 1]]
1377
+ Apicasso::Request Create (0.5ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["object", "{\"request\":{\"uuid\":\"595b5f1f-f53f-46d7-9c80-742aad71a56d\",\"url\":\"http://www.example.com/api/v1/used_models/2\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=520e05556f5942d5bd434b7e2bf3f168\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":2,\"name\":\"dolor\",\"slug\":\"civic\",\"account_id\":1,\"unit_id\":5,\"active\":false,\"brand\":\"Audi\",\"model\":\"A5\",\"version\":\"2.2\",\"model_year\":2016,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1294.34\",\"price_value\":8525,\"price\":\"5665.78\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":51090415,\"km\":\"96433648\",\"plate\":\"9510\",\"color\":\"Black\",\"doors\":8,\"fuel\":0,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.036Z\",\"updated_at\":\"2018-11-26T15:24:22.542Z\"}}}"], ["created_at", "2018-11-26 15:24:22.552869"], ["updated_at", "2018-11-26 15:24:22.552869"]]
1378
+  (1.8ms) COMMIT
1379
+ Completed 200 OK in 23ms (Views: 0.1ms | ActiveRecord: 6.5ms)
1380
+  (0.1ms) BEGIN
1381
+  (0.1ms) ROLLBACK
1382
+  (0.2ms) BEGIN
1383
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]]
1384
+  (0.5ms) ROLLBACK
1385
+  (0.2ms) BEGIN
1386
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models"
1387
+ Started PATCH "/api/v1/used_models/55" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1388
+ Processing by Apicasso::CrudController#update as HTML
1389
+ Parameters: {"used_model"=>{"unit_id"=>nil}, "resource"=>"used_models", "id"=>"55"}
1390
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "520e05556f5942d5bd434b7e2bf3f168"], ["LIMIT", 1]]
1391
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "55"], ["LIMIT", 1]]
1392
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 55], ["LIMIT", 1]]
1393
+  (0.2ms) SAVEPOINT active_record_1
1394
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
1395
+  (0.1ms) SAVEPOINT active_record_1
1396
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["LIMIT", 1]]
1397
+ Apicasso::Request Create (0.5ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["object", "{\"request\":{\"uuid\":\"11ca5ec8-a7ec-4e97-acb6-8b0c8af0acad\",\"url\":\"http://www.example.com/api/v1/used_models/55\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=520e05556f5942d5bd434b7e2bf3f168\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":422,\"body\":{\"unit_id\":[\"can't be blank\"]}}}"], ["created_at", "2018-11-26 15:24:22.578504"], ["updated_at", "2018-11-26 15:24:22.578504"]]
1398
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1399
+ Completed 422 Unprocessable Entity in 13ms (Views: 0.2ms | ActiveRecord: 2.3ms)
1400
+  (0.2ms) ROLLBACK
1401
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
1402
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models"
1403
+ Started DELETE "/api/v1/used_models/1" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1404
+ Processing by Apicasso::CrudController#destroy as HTML
1405
+ Parameters: {"resource"=>"used_models", "id"=>"1"}
1406
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "520e05556f5942d5bd434b7e2bf3f168"], ["LIMIT", 1]]
1407
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "1"], ["LIMIT", 1]]
1408
+ UsedModel Load (0.6ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
1409
+  (0.1ms) BEGIN
1410
+ UsedModel Destroy (0.4ms) DELETE FROM "used_models" WHERE "used_models"."id" = $1 [["id", 1]]
1411
+  (2.6ms) COMMIT
1412
+ ActiveStorage::Attachment Load (0.3ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 [["record_id", 1], ["record_type", "UsedModel"], ["name", "files"]]
1413
+ ActiveStorage::Attachment Load (0.3ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 1], ["record_type", "UsedModel"], ["name", "file_highlighted"], ["LIMIT", 1]]
1414
+  (0.2ms) BEGIN
1415
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["LIMIT", 1]]
1416
+ Apicasso::Request Create (0.4ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "f162cc3b-4890-4aee-845c-d39255a4decd"], ["object", "{\"request\":{\"uuid\":\"b87a8060-a792-4562-aab2-ade10a868693\",\"url\":\"http://www.example.com/api/v1/used_models/1\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=520e05556f5942d5bd434b7e2bf3f168\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":204,\"body\":\"\"}}"], ["created_at", "2018-11-26 15:24:22.606975"], ["updated_at", "2018-11-26 15:24:22.606975"]]
1417
+  (2.2ms) COMMIT
1418
+ Completed 204 No Content in 25ms (ActiveRecord: 8.2ms)
1419
+  (0.1ms) BEGIN
1420
+  (0.2ms) ROLLBACK
1421
+  (0.2ms) BEGIN
1422
+  (0.4ms) SELECT COUNT(*) FROM "used_models"
1423
+  (0.1ms) ROLLBACK
1424
+  (0.1ms) BEGIN
1425
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
1426
+  (0.1ms) ROLLBACK
1427
+  (0.1ms) BEGIN
1428
+ Started GET "/api/v1/used_model?group%5Bby%5D=brand&group%5Bcalculate%5D=count&group%5Bfields%5D=%27OR+1%3D1%3B" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1429
+ Processing by Apicasso::CrudController#index as HTML
1430
+ Parameters: {"group"=>{"by"=>"brand", "calculate"=>"count", "fields"=>"'OR 1=1;"}, "resource"=>"used_model"}
1431
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "eaa34a3fb54049dd8b49a3e477b72ad8"], ["LIMIT", 1]]
1432
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.3ms)
1433
+  (0.1ms) ROLLBACK
1434
+  (0.1ms) BEGIN
1435
+ Started GET "/api/v1/used_model?per_page=-1&sort=%27OR+1%3D1%3B" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1436
+ Processing by Apicasso::CrudController#index as HTML
1437
+ Parameters: {"per_page"=>"-1", "sort"=>"'OR 1=1;", "resource"=>"used_model"}
1438
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "eaa34a3fb54049dd8b49a3e477b72ad8"], ["LIMIT", 1]]
1439
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.3ms)
1440
+  (0.1ms) ROLLBACK
1441
+  (0.1ms) BEGIN
1442
+ Started GET "/api/v1/used_model?include=%27OR+1%3D1%3B" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1443
+ Processing by Apicasso::CrudController#index as HTML
1444
+ Parameters: {"include"=>"'OR 1=1;", "resource"=>"used_model"}
1445
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "eaa34a3fb54049dd8b49a3e477b72ad8"], ["LIMIT", 1]]
1446
+ Completed 400 Bad Request in 2ms (ActiveRecord: 0.4ms)
1447
+  (0.1ms) ROLLBACK
1448
+  (0.1ms) BEGIN
1449
+ Started GET "/api/v1/admins" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1450
+ Processing by Apicasso::CrudController#index as HTML
1451
+ Parameters: {"resource"=>"admins"}
1452
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
1453
+  (0.2ms) ROLLBACK
1454
+  (0.1ms) BEGIN
1455
+ Started GET "/api/v1/used_model/1/admins" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1456
+ Processing by Apicasso::CrudController#nested_index as HTML
1457
+ Parameters: {"resource"=>"used_model", "id"=>"1", "nested"=>"admins"}
1458
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
1459
+  (0.1ms) ROLLBACK
1460
+  (0.1ms) BEGIN
1461
+ Started GET "/api/v1/used_model?include=admins" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1462
+ Processing by Apicasso::CrudController#index as HTML
1463
+ Parameters: {"include"=>"admins", "resource"=>"used_model"}
1464
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "eaa34a3fb54049dd8b49a3e477b72ad8"], ["LIMIT", 1]]
1465
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.3ms)
1466
+  (0.1ms) ROLLBACK
1467
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1468
+ Processing by Apicasso::CrudController#index as HTML
1469
+ Parameters: {"resource"=>"used_model"}
1470
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "888ed9c182844b56aa7724aae7e091fe"], ["LIMIT", 1]]
1471
+ UsedModel Load (0.7ms) SELECT "used_models".* FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
1472
+  (0.4ms) SELECT COUNT(*) FROM "used_models"
1473
+  (0.1ms) BEGIN
1474
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fa7f433e-464e-414a-a532-af26cac37329"], ["LIMIT", 1]]
1475
+ Apicasso::Request Create (0.7ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "fa7f433e-464e-414a-a532-af26cac37329"], ["object", "{\"request\":{\"uuid\":\"728ce96f-ad32-4c64-ba3f-ae4b8057a39e\",\"url\":\"http://www.example.com/api/v1/used_model\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=888ed9c182844b56aa7724aae7e091fe\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":4,\"active\":false,\"account_id\":7,\"unit_id\":1,\"brand\":\"Chevy\",\"name\":\"Durango\",\"slug\":\"durango\",\"model\":\"Camero\",\"version\":\"8.5\",\"model_year\":2018,\"production_year\":\"2012\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2300.77\",\"price_value\":1516,\"price\":\"2245.59\",\"category\":\"Wagon\",\"transmission\":\"Automatic\",\"km_value\":78271823,\"km\":\"95493414\",\"plate\":\"2689\",\"color\":\"Red\",\"doors\":7,\"fuel\":1,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.047Z\",\"updated_at\":\"2018-11-08T17:38:23.047Z\"},{\"id\":5,\"active\":true,\"account_id\":8,\"unit_id\":0,\"brand\":\"Toyota\",\"name\":\"X3\",\"slug\":\"x3\",\"model\":\"Juke\",\"version\":\"3.2\",\"model_year\":2005,\"production_year\":\"2008\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"8812.52\",\"price_value\":9231,\"price\":\"1876.52\",\"category\":\"Hatchback\",\"transmission\":\"Automanual\",\"km_value\":40936712,\"km\":\"19445608\",\"plate\":\"5888\",\"color\":\"Black\",\"doors\":6,\"fuel\":9,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.053Z\",\"updated_at\":\"2018-11-08T17:38:23.053Z\"},{\"id\":7,\"active\":true,\"account_id\":5,\"unit_id\":8,\"brand\":\"Chevy\",\"name\":\"A7\",\"slug\":\"a7\",\"model\":\"Camero\",\"version\":\"5.3\",\"model_year\":2011,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1580.64\",\"price_value\":1165,\"price\":\"8709.63\",\"category\":\"Convertible\",\"transmission\":\"CVT\",\"km_value\":52169327,\"km\":\"15231393\",\"plate\":\"2997\",\"color\":\"Green\",\"doors\":1,\"fuel\":3,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.064Z\",\"updated_at\":\"2018-11-08T17:38:23.064Z\"},{\"id\":8,\"active\":true,\"account_id\":2,\"unit_id\":4,\"brand\":\"Nissan\",\"name\":\"Prius\",\"slug\":\"prius\",\"model\":\"Accord\",\"version\":\"7.8\",\"model_year\":2009,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"7129.91\",\"price_value\":2488,\"price\":\"4001.48\",\"category\":\"SUV\",\"transmission\":\"Manual\",\"km_value\":80244772,\"km\":\"48716911\",\"plate\":\"9573\",\"color\":\"Grey\",\"doors\":4,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.069Z\",\"updated_at\":\"2018-11-08T17:38:23.069Z\"},{\"id\":9,\"active\":false,\"account_id\":7,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Focus\",\"slug\":\"focus\",\"model\":\"LaCrosse\",\"version\":\"1.7\",\"model_year\":2012,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5197.01\",\"price_value\":2028,\"price\":\"8301.38\",\"category\":\"Minivan\",\"transmission\":\"Automatic\",\"km_value\":34215256,\"km\":\"11433071\",\"plate\":\"5603\",\"color\":\"Violet\",\"doors\":1,\"fuel\":5,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.075Z\",\"updated_at\":\"2018-11-08T17:38:23.075Z\"},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Ram\",\"slug\":\"cr-v\",\"model\":\"Prius\",\"version\":\"9.5\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1648.31\",\"price_value\":8432,\"price\":\"2056.82\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":47546237,\"km\":\"39672408\",\"plate\":\"4005\",\"color\":\"Yellow\",\"doors\":9,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.080Z\",\"updated_at\":\"2018-11-08T17:38:23.080Z\"},{\"id\":55,\"active\":true,\"account_id\":9,\"unit_id\":8,\"brand\":\"Lincoln\",\"name\":\"Audi A5\",\"slug\":\"sequi\",\"model\":\"Navigator\",\"version\":\"6.2\",\"model_year\":2006,\"production_year\":\"2005\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"4815.93\",\"price_value\":5898,\"price\":\"3045.47\",\"category\":\"Minivan\",\"transmission\":\"CVT\",\"km_value\":51961603,\"km\":\"90405822\",\"plate\":\"2981\",\"color\":\"Blue\",\"doors\":0,\"fuel\":2,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:24:22.498Z\",\"updated_at\":\"2018-11-26T15:24:22.498Z\"},{\"id\":2,\"active\":false,\"account_id\":1,\"unit_id\":5,\"brand\":\"Audi\",\"name\":\"dolor\",\"slug\":\"civic\",\"model\":\"A5\",\"version\":\"2.2\",\"model_year\":2016,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1294.34\",\"price_value\":8525,\"price\":\"5665.78\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":51090415,\"km\":\"96433648\",\"plate\":\"9510\",\"color\":\"Black\",\"doors\":8,\"fuel\":0,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.036Z\",\"updated_at\":\"2018-11-26T15:24:22.542Z\"},{\"id\":52,\"active\":true,\"account_id\":9,\"unit_id\":7,\"brand\":\"Lincoln\",\"name\":\"Dodge Charger\",\"slug\":\"voluptatum\",\"model\":\"Navigator\",\"version\":\"8.0\",\"model_year\":2008,\"production_year\":\"2018\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"9964.29\",\"price_value\":1748,\"price\":\"9110.94\",\"category\":\"Minivan\",\"transmission\":\"Manual\",\"km_value\":65916645,\"km\":\"94890803\",\"plate\":\"5229\",\"color\":\"Orange\",\"doors\":5,\"fuel\":4,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:21:25.070Z\",\"updated_at\":\"2018-11-26T15:21:25.070Z\"},{\"id\":6,\"active\":true,\"account_id\":0,\"unit_id\":2,\"brand\":\"Honda\",\"name\":\"in\",\"slug\":\"durango-9d02071a-77c0-403b-bc46-c7161408f812\",\"model\":\"MKZ\",\"version\":\"4.9\",\"model_year\":2008,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7058.43\",\"price_value\":5808,\"price\":\"8617.65\",\"category\":\"Coupe\",\"transmission\":\"Automanual\",\"km_value\":43250550,\"km\":\"34167150\",\"plate\":\"6998\",\"color\":\"Green\",\"doors\":1,\"fuel\":9,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.058Z\",\"updated_at\":\"2018-11-26T15:21:25.108Z\"}],\"total\":10,\"total_pages\":1,\"last_page\":true,\"previous_page\":\"http://www.example.com/api/v1/used_model?page\",\"next_page\":\"http://www.example.com/api/v1/used_model?page\",\"out_of_bounds\":false,\"offset\":0}}}"], ["created_at", "2018-11-26 15:24:22.661179"], ["updated_at", "2018-11-26 15:24:22.661179"]]
1476
+  (1.8ms) COMMIT
1477
+ Completed 200 OK in 28ms (Views: 1.7ms | ActiveRecord: 4.3ms)
1478
+  (0.1ms) BEGIN
1479
+  (0.1ms) ROLLBACK
1480
+  (0.1ms) BEGIN
1481
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
1482
+  (0.1ms) ROLLBACK
1483
+ Started GET "/api/v1/used_model?per_page=-1" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1484
+ Processing by Apicasso::CrudController#index as HTML
1485
+ Parameters: {"per_page"=>"-1", "resource"=>"used_model"}
1486
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "888ed9c182844b56aa7724aae7e091fe"], ["LIMIT", 1]]
1487
+ UsedModel Load (1.0ms) SELECT "used_models".* FROM "used_models"
1488
+  (0.1ms) BEGIN
1489
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fa7f433e-464e-414a-a532-af26cac37329"], ["LIMIT", 1]]
1490
+ Apicasso::Request Create (0.8ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "fa7f433e-464e-414a-a532-af26cac37329"], ["object", "{\"request\":{\"uuid\":\"60bf9755-1fa3-424b-983e-2d35a426510e\",\"url\":\"http://www.example.com/api/v1/used_model?per_page=-1\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=888ed9c182844b56aa7724aae7e091fe\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":4,\"active\":false,\"account_id\":7,\"unit_id\":1,\"brand\":\"Chevy\",\"name\":\"Durango\",\"slug\":\"durango\",\"model\":\"Camero\",\"version\":\"8.5\",\"model_year\":2018,\"production_year\":\"2012\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2300.77\",\"price_value\":1516,\"price\":\"2245.59\",\"category\":\"Wagon\",\"transmission\":\"Automatic\",\"km_value\":78271823,\"km\":\"95493414\",\"plate\":\"2689\",\"color\":\"Red\",\"doors\":7,\"fuel\":1,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.047Z\",\"updated_at\":\"2018-11-08T17:38:23.047Z\"},{\"id\":5,\"active\":true,\"account_id\":8,\"unit_id\":0,\"brand\":\"Toyota\",\"name\":\"X3\",\"slug\":\"x3\",\"model\":\"Juke\",\"version\":\"3.2\",\"model_year\":2005,\"production_year\":\"2008\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"8812.52\",\"price_value\":9231,\"price\":\"1876.52\",\"category\":\"Hatchback\",\"transmission\":\"Automanual\",\"km_value\":40936712,\"km\":\"19445608\",\"plate\":\"5888\",\"color\":\"Black\",\"doors\":6,\"fuel\":9,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.053Z\",\"updated_at\":\"2018-11-08T17:38:23.053Z\"},{\"id\":7,\"active\":true,\"account_id\":5,\"unit_id\":8,\"brand\":\"Chevy\",\"name\":\"A7\",\"slug\":\"a7\",\"model\":\"Camero\",\"version\":\"5.3\",\"model_year\":2011,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1580.64\",\"price_value\":1165,\"price\":\"8709.63\",\"category\":\"Convertible\",\"transmission\":\"CVT\",\"km_value\":52169327,\"km\":\"15231393\",\"plate\":\"2997\",\"color\":\"Green\",\"doors\":1,\"fuel\":3,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.064Z\",\"updated_at\":\"2018-11-08T17:38:23.064Z\"},{\"id\":8,\"active\":true,\"account_id\":2,\"unit_id\":4,\"brand\":\"Nissan\",\"name\":\"Prius\",\"slug\":\"prius\",\"model\":\"Accord\",\"version\":\"7.8\",\"model_year\":2009,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"7129.91\",\"price_value\":2488,\"price\":\"4001.48\",\"category\":\"SUV\",\"transmission\":\"Manual\",\"km_value\":80244772,\"km\":\"48716911\",\"plate\":\"9573\",\"color\":\"Grey\",\"doors\":4,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.069Z\",\"updated_at\":\"2018-11-08T17:38:23.069Z\"},{\"id\":9,\"active\":false,\"account_id\":7,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Focus\",\"slug\":\"focus\",\"model\":\"LaCrosse\",\"version\":\"1.7\",\"model_year\":2012,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5197.01\",\"price_value\":2028,\"price\":\"8301.38\",\"category\":\"Minivan\",\"transmission\":\"Automatic\",\"km_value\":34215256,\"km\":\"11433071\",\"plate\":\"5603\",\"color\":\"Violet\",\"doors\":1,\"fuel\":5,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.075Z\",\"updated_at\":\"2018-11-08T17:38:23.075Z\"},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Ram\",\"slug\":\"cr-v\",\"model\":\"Prius\",\"version\":\"9.5\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1648.31\",\"price_value\":8432,\"price\":\"2056.82\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":47546237,\"km\":\"39672408\",\"plate\":\"4005\",\"color\":\"Yellow\",\"doors\":9,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.080Z\",\"updated_at\":\"2018-11-08T17:38:23.080Z\"},{\"id\":55,\"active\":true,\"account_id\":9,\"unit_id\":8,\"brand\":\"Lincoln\",\"name\":\"Audi A5\",\"slug\":\"sequi\",\"model\":\"Navigator\",\"version\":\"6.2\",\"model_year\":2006,\"production_year\":\"2005\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"4815.93\",\"price_value\":5898,\"price\":\"3045.47\",\"category\":\"Minivan\",\"transmission\":\"CVT\",\"km_value\":51961603,\"km\":\"90405822\",\"plate\":\"2981\",\"color\":\"Blue\",\"doors\":0,\"fuel\":2,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:24:22.498Z\",\"updated_at\":\"2018-11-26T15:24:22.498Z\"},{\"id\":2,\"active\":false,\"account_id\":1,\"unit_id\":5,\"brand\":\"Audi\",\"name\":\"dolor\",\"slug\":\"civic\",\"model\":\"A5\",\"version\":\"2.2\",\"model_year\":2016,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1294.34\",\"price_value\":8525,\"price\":\"5665.78\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":51090415,\"km\":\"96433648\",\"plate\":\"9510\",\"color\":\"Black\",\"doors\":8,\"fuel\":0,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.036Z\",\"updated_at\":\"2018-11-26T15:24:22.542Z\"},{\"id\":52,\"active\":true,\"account_id\":9,\"unit_id\":7,\"brand\":\"Lincoln\",\"name\":\"Dodge Charger\",\"slug\":\"voluptatum\",\"model\":\"Navigator\",\"version\":\"8.0\",\"model_year\":2008,\"production_year\":\"2018\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"9964.29\",\"price_value\":1748,\"price\":\"9110.94\",\"category\":\"Minivan\",\"transmission\":\"Manual\",\"km_value\":65916645,\"km\":\"94890803\",\"plate\":\"5229\",\"color\":\"Orange\",\"doors\":5,\"fuel\":4,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:21:25.070Z\",\"updated_at\":\"2018-11-26T15:21:25.070Z\"},{\"id\":6,\"active\":true,\"account_id\":0,\"unit_id\":2,\"brand\":\"Honda\",\"name\":\"in\",\"slug\":\"durango-9d02071a-77c0-403b-bc46-c7161408f812\",\"model\":\"MKZ\",\"version\":\"4.9\",\"model_year\":2008,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7058.43\",\"price_value\":5808,\"price\":\"8617.65\",\"category\":\"Coupe\",\"transmission\":\"Automanual\",\"km_value\":43250550,\"km\":\"34167150\",\"plate\":\"6998\",\"color\":\"Green\",\"doors\":1,\"fuel\":9,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.058Z\",\"updated_at\":\"2018-11-26T15:21:25.108Z\"}],\"total\":10}}}"], ["created_at", "2018-11-26 15:24:22.691418"], ["updated_at", "2018-11-26 15:24:22.691418"]]
1491
+  (2.2ms) COMMIT
1492
+ Completed 200 OK in 32ms (Views: 2.9ms | ActiveRecord: 4.5ms)
1493
+  (0.2ms) BEGIN
1494
+  (0.2ms) ROLLBACK
1495
+  (0.2ms) BEGIN
1496
+  (0.4ms) SELECT COUNT(*) FROM "used_models"
1497
+  (0.3ms) ROLLBACK
1498
+ Started GET "/api/v1/used_model?per_page=7&page=2" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1499
+ Processing by Apicasso::CrudController#index as HTML
1500
+ Parameters: {"per_page"=>"7", "page"=>"2", "resource"=>"used_model"}
1501
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "888ed9c182844b56aa7724aae7e091fe"], ["LIMIT", 1]]
1502
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 7], ["OFFSET", 7]]
1503
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
1504
+  (0.1ms) BEGIN
1505
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fa7f433e-464e-414a-a532-af26cac37329"], ["LIMIT", 1]]
1506
+ Apicasso::Request Create (0.7ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "fa7f433e-464e-414a-a532-af26cac37329"], ["object", "{\"request\":{\"uuid\":\"0e64ba7d-6386-4b07-b454-0bf4ed6eb14a\",\"url\":\"http://www.example.com/api/v1/used_model?per_page=7\\u0026page=2\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=888ed9c182844b56aa7724aae7e091fe\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":2,\"active\":false,\"account_id\":1,\"unit_id\":5,\"brand\":\"Audi\",\"name\":\"dolor\",\"slug\":\"civic\",\"model\":\"A5\",\"version\":\"2.2\",\"model_year\":2016,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1294.34\",\"price_value\":8525,\"price\":\"5665.78\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":51090415,\"km\":\"96433648\",\"plate\":\"9510\",\"color\":\"Black\",\"doors\":8,\"fuel\":0,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.036Z\",\"updated_at\":\"2018-11-26T15:24:22.542Z\"},{\"id\":52,\"active\":true,\"account_id\":9,\"unit_id\":7,\"brand\":\"Lincoln\",\"name\":\"Dodge Charger\",\"slug\":\"voluptatum\",\"model\":\"Navigator\",\"version\":\"8.0\",\"model_year\":2008,\"production_year\":\"2018\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"9964.29\",\"price_value\":1748,\"price\":\"9110.94\",\"category\":\"Minivan\",\"transmission\":\"Manual\",\"km_value\":65916645,\"km\":\"94890803\",\"plate\":\"5229\",\"color\":\"Orange\",\"doors\":5,\"fuel\":4,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:21:25.070Z\",\"updated_at\":\"2018-11-26T15:21:25.070Z\"},{\"id\":6,\"active\":true,\"account_id\":0,\"unit_id\":2,\"brand\":\"Honda\",\"name\":\"in\",\"slug\":\"durango-9d02071a-77c0-403b-bc46-c7161408f812\",\"model\":\"MKZ\",\"version\":\"4.9\",\"model_year\":2008,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7058.43\",\"price_value\":5808,\"price\":\"8617.65\",\"category\":\"Coupe\",\"transmission\":\"Automanual\",\"km_value\":43250550,\"km\":\"34167150\",\"plate\":\"6998\",\"color\":\"Green\",\"doors\":1,\"fuel\":9,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.058Z\",\"updated_at\":\"2018-11-26T15:21:25.108Z\"}],\"total\":10,\"total_pages\":2,\"last_page\":true,\"previous_page\":\"http://www.example.com/api/v1/used_model?per_page=7\\u0026page=1\",\"next_page\":\"http://www.example.com/api/v1/used_model?per_page=7\\u0026page\",\"out_of_bounds\":false,\"offset\":7}}}"], ["created_at", "2018-11-26 15:24:22.723276"], ["updated_at", "2018-11-26 15:24:22.723276"]]
1507
+  (2.2ms) COMMIT
1508
+ Completed 200 OK in 15ms (Views: 0.5ms | ActiveRecord: 4.3ms)
1509
+  (0.1ms) BEGIN
1510
+  (0.2ms) ROLLBACK
1511
+  (0.1ms) BEGIN
1512
+  (0.3ms) ROLLBACK
1513
+ Started GET "/api/v1/used_model?q%5Bbrand_matches%5D=Audi" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1514
+ Processing by Apicasso::CrudController#index as HTML
1515
+ Parameters: {"q"=>{"brand_matches"=>"Audi"}, "resource"=>"used_model"}
1516
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "888ed9c182844b56aa7724aae7e091fe"], ["LIMIT", 1]]
1517
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."brand" ILIKE 'Audi' LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
1518
+  (0.5ms) SELECT COUNT(*) FROM "used_models" WHERE "used_models"."brand" ILIKE 'Audi'
1519
+  (0.2ms) BEGIN
1520
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fa7f433e-464e-414a-a532-af26cac37329"], ["LIMIT", 1]]
1521
+ Apicasso::Request Create (0.4ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "fa7f433e-464e-414a-a532-af26cac37329"], ["object", "{\"request\":{\"uuid\":\"d5258ad7-15a8-43fb-83df-af23ff21b2d8\",\"url\":\"http://www.example.com/api/v1/used_model?q%5Bbrand_matches%5D=Audi\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=888ed9c182844b56aa7724aae7e091fe\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":2,\"active\":false,\"account_id\":1,\"unit_id\":5,\"brand\":\"Audi\",\"name\":\"dolor\",\"slug\":\"civic\",\"model\":\"A5\",\"version\":\"2.2\",\"model_year\":2016,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1294.34\",\"price_value\":8525,\"price\":\"5665.78\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":51090415,\"km\":\"96433648\",\"plate\":\"9510\",\"color\":\"Black\",\"doors\":8,\"fuel\":0,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.036Z\",\"updated_at\":\"2018-11-26T15:24:22.542Z\"}],\"total\":1,\"total_pages\":1,\"last_page\":true,\"previous_page\":\"http://www.example.com/api/v1/used_model?q%5Bbrand_matches%5D=Audi\\u0026page\",\"next_page\":\"http://www.example.com/api/v1/used_model?q%5Bbrand_matches%5D=Audi\\u0026page\",\"out_of_bounds\":false,\"offset\":0}}}"], ["created_at", "2018-11-26 15:24:22.748390"], ["updated_at", "2018-11-26 15:24:22.748390"]]
1522
+  (1.8ms) COMMIT
1523
+ Completed 200 OK in 15ms (Views: 1.1ms | ActiveRecord: 4.0ms)
1524
+  (0.1ms) BEGIN
1525
+  (0.1ms) ROLLBACK
1526
+  (0.1ms) BEGIN
1527
+  (0.1ms) ROLLBACK
1528
+ Started GET "/api/v1/used_model?group%5Bby%5D=doors&group%5Bcalculate%5D=count&group%5Bfields%5D=km" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1529
+ Processing by Apicasso::CrudController#index as HTML
1530
+ Parameters: {"group"=>{"by"=>"doors", "calculate"=>"count", "fields"=>"km"}, "resource"=>"used_model"}
1531
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "888ed9c182844b56aa7724aae7e091fe"], ["LIMIT", 1]]
1532
+  (0.4ms) SELECT COUNT(*) AS count_all, "used_models"."doors" AS used_models_doors FROM "used_models" GROUP BY "used_models"."doors"
1533
+  (0.2ms) BEGIN
1534
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fa7f433e-464e-414a-a532-af26cac37329"], ["LIMIT", 1]]
1535
+ Apicasso::Request Create (0.6ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "fa7f433e-464e-414a-a532-af26cac37329"], ["object", "{\"request\":{\"uuid\":\"b4a23643-feca-4129-9cb9-b08ca892c46c\",\"url\":\"http://www.example.com/api/v1/used_model?group%5Bby%5D=doors\\u0026group%5Bcalculate%5D=count\\u0026group%5Bfields%5D=km\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=888ed9c182844b56aa7724aae7e091fe\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"8\":1,\"9\":1,\"7\":1,\"1\":3,\"5\":1,\"4\":1,\"0\":1,\"6\":1}}}"], ["created_at", "2018-11-26 15:24:22.761582"], ["updated_at", "2018-11-26 15:24:22.761582"]]
1536
+  (2.2ms) COMMIT
1537
+ Completed 200 OK in 11ms (Views: 0.3ms | ActiveRecord: 3.8ms)
1538
+  (0.1ms) BEGIN
1539
+  (0.1ms) ROLLBACK
1540
+  (0.1ms) BEGIN
1541
+  (0.3ms) SELECT COUNT(*) AS count_all, "used_models"."doors" AS used_models_doors FROM "used_models" WHERE (km is NOT NULL) GROUP BY "used_models"."doors"
1542
+  (0.1ms) ROLLBACK
1543
+ Started GET "/api/v1/used_model?per_page=-1&sort=%2Bbrand%2C%2Bmodel" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1544
+ Processing by Apicasso::CrudController#index as HTML
1545
+ Parameters: {"per_page"=>"-1", "sort"=>"+brand,+model", "resource"=>"used_model"}
1546
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "888ed9c182844b56aa7724aae7e091fe"], ["LIMIT", 1]]
1547
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" ORDER BY "used_models"."brand" ASC, "used_models"."model" ASC
1548
+  (0.2ms) BEGIN
1549
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fa7f433e-464e-414a-a532-af26cac37329"], ["LIMIT", 1]]
1550
+ Apicasso::Request Create (0.4ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "fa7f433e-464e-414a-a532-af26cac37329"], ["object", "{\"request\":{\"uuid\":\"292a1eea-55da-4021-8f9a-a3bffe43677a\",\"url\":\"http://www.example.com/api/v1/used_model?per_page=-1\\u0026sort=%2Bbrand%2C%2Bmodel\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=888ed9c182844b56aa7724aae7e091fe\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":2,\"active\":false,\"account_id\":1,\"unit_id\":5,\"brand\":\"Audi\",\"name\":\"dolor\",\"slug\":\"civic\",\"model\":\"A5\",\"version\":\"2.2\",\"model_year\":2016,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1294.34\",\"price_value\":8525,\"price\":\"5665.78\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":51090415,\"km\":\"96433648\",\"plate\":\"9510\",\"color\":\"Black\",\"doors\":8,\"fuel\":0,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.036Z\",\"updated_at\":\"2018-11-26T15:24:22.542Z\"},{\"id\":7,\"active\":true,\"account_id\":5,\"unit_id\":8,\"brand\":\"Chevy\",\"name\":\"A7\",\"slug\":\"a7\",\"model\":\"Camero\",\"version\":\"5.3\",\"model_year\":2011,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1580.64\",\"price_value\":1165,\"price\":\"8709.63\",\"category\":\"Convertible\",\"transmission\":\"CVT\",\"km_value\":52169327,\"km\":\"15231393\",\"plate\":\"2997\",\"color\":\"Green\",\"doors\":1,\"fuel\":3,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.064Z\",\"updated_at\":\"2018-11-08T17:38:23.064Z\"},{\"id\":4,\"active\":false,\"account_id\":7,\"unit_id\":1,\"brand\":\"Chevy\",\"name\":\"Durango\",\"slug\":\"durango\",\"model\":\"Camero\",\"version\":\"8.5\",\"model_year\":2018,\"production_year\":\"2012\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2300.77\",\"price_value\":1516,\"price\":\"2245.59\",\"category\":\"Wagon\",\"transmission\":\"Automatic\",\"km_value\":78271823,\"km\":\"95493414\",\"plate\":\"2689\",\"color\":\"Red\",\"doors\":7,\"fuel\":1,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.047Z\",\"updated_at\":\"2018-11-08T17:38:23.047Z\"},{\"id\":9,\"active\":false,\"account_id\":7,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Focus\",\"slug\":\"focus\",\"model\":\"LaCrosse\",\"version\":\"1.7\",\"model_year\":2012,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5197.01\",\"price_value\":2028,\"price\":\"8301.38\",\"category\":\"Minivan\",\"transmission\":\"Automatic\",\"km_value\":34215256,\"km\":\"11433071\",\"plate\":\"5603\",\"color\":\"Violet\",\"doors\":1,\"fuel\":5,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.075Z\",\"updated_at\":\"2018-11-08T17:38:23.075Z\"},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Ram\",\"slug\":\"cr-v\",\"model\":\"Prius\",\"version\":\"9.5\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1648.31\",\"price_value\":8432,\"price\":\"2056.82\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":47546237,\"km\":\"39672408\",\"plate\":\"4005\",\"color\":\"Yellow\",\"doors\":9,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.080Z\",\"updated_at\":\"2018-11-08T17:38:23.080Z\"},{\"id\":6,\"active\":true,\"account_id\":0,\"unit_id\":2,\"brand\":\"Honda\",\"name\":\"in\",\"slug\":\"durango-9d02071a-77c0-403b-bc46-c7161408f812\",\"model\":\"MKZ\",\"version\":\"4.9\",\"model_year\":2008,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7058.43\",\"price_value\":5808,\"price\":\"8617.65\",\"category\":\"Coupe\",\"transmission\":\"Automanual\",\"km_value\":43250550,\"km\":\"34167150\",\"plate\":\"6998\",\"color\":\"Green\",\"doors\":1,\"fuel\":9,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.058Z\",\"updated_at\":\"2018-11-26T15:21:25.108Z\"},{\"id\":55,\"active\":true,\"account_id\":9,\"unit_id\":8,\"brand\":\"Lincoln\",\"name\":\"Audi A5\",\"slug\":\"sequi\",\"model\":\"Navigator\",\"version\":\"6.2\",\"model_year\":2006,\"production_year\":\"2005\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"4815.93\",\"price_value\":5898,\"price\":\"3045.47\",\"category\":\"Minivan\",\"transmission\":\"CVT\",\"km_value\":51961603,\"km\":\"90405822\",\"plate\":\"2981\",\"color\":\"Blue\",\"doors\":0,\"fuel\":2,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:24:22.498Z\",\"updated_at\":\"2018-11-26T15:24:22.498Z\"},{\"id\":52,\"active\":true,\"account_id\":9,\"unit_id\":7,\"brand\":\"Lincoln\",\"name\":\"Dodge Charger\",\"slug\":\"voluptatum\",\"model\":\"Navigator\",\"version\":\"8.0\",\"model_year\":2008,\"production_year\":\"2018\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"9964.29\",\"price_value\":1748,\"price\":\"9110.94\",\"category\":\"Minivan\",\"transmission\":\"Manual\",\"km_value\":65916645,\"km\":\"94890803\",\"plate\":\"5229\",\"color\":\"Orange\",\"doors\":5,\"fuel\":4,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:21:25.070Z\",\"updated_at\":\"2018-11-26T15:21:25.070Z\"},{\"id\":8,\"active\":true,\"account_id\":2,\"unit_id\":4,\"brand\":\"Nissan\",\"name\":\"Prius\",\"slug\":\"prius\",\"model\":\"Accord\",\"version\":\"7.8\",\"model_year\":2009,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"7129.91\",\"price_value\":2488,\"price\":\"4001.48\",\"category\":\"SUV\",\"transmission\":\"Manual\",\"km_value\":80244772,\"km\":\"48716911\",\"plate\":\"9573\",\"color\":\"Grey\",\"doors\":4,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.069Z\",\"updated_at\":\"2018-11-08T17:38:23.069Z\"},{\"id\":5,\"active\":true,\"account_id\":8,\"unit_id\":0,\"brand\":\"Toyota\",\"name\":\"X3\",\"slug\":\"x3\",\"model\":\"Juke\",\"version\":\"3.2\",\"model_year\":2005,\"production_year\":\"2008\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"8812.52\",\"price_value\":9231,\"price\":\"1876.52\",\"category\":\"Hatchback\",\"transmission\":\"Automanual\",\"km_value\":40936712,\"km\":\"19445608\",\"plate\":\"5888\",\"color\":\"Black\",\"doors\":6,\"fuel\":9,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.053Z\",\"updated_at\":\"2018-11-08T17:38:23.053Z\"}],\"total\":10}}}"], ["created_at", "2018-11-26 15:24:22.782553"], ["updated_at", "2018-11-26 15:24:22.782553"]]
1551
+  (1.9ms) COMMIT
1552
+ Completed 200 OK in 23ms (Views: 2.2ms | ActiveRecord: 3.4ms)
1553
+  (0.1ms) BEGIN
1554
+  (0.1ms) ROLLBACK
1555
+  (0.1ms) BEGIN
1556
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" ORDER BY "used_models"."brand" ASC, "used_models"."model" ASC
1557
+  (0.2ms) ROLLBACK
1558
+ Started GET "/api/v1/used_model?select=updated_at" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1559
+ Processing by Apicasso::CrudController#index as HTML
1560
+ Parameters: {"select"=>"updated_at", "resource"=>"used_model"}
1561
+ Apicasso::Key Load (0.1ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "888ed9c182844b56aa7724aae7e091fe"], ["LIMIT", 1]]
1562
+ UsedModel Load (0.3ms) SELECT "used_models"."updated_at" FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
1563
+  (0.3ms) SELECT COUNT("used_models"."updated_at") FROM "used_models"
1564
+  (0.1ms) BEGIN
1565
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fa7f433e-464e-414a-a532-af26cac37329"], ["LIMIT", 1]]
1566
+ Apicasso::Request Create (0.4ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "fa7f433e-464e-414a-a532-af26cac37329"], ["object", "{\"request\":{\"uuid\":\"b649efe7-dd45-48e1-a916-a187d3773d13\",\"url\":\"http://www.example.com/api/v1/used_model?select=updated_at\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=888ed9c182844b56aa7724aae7e091fe\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":null,\"updated_at\":\"2018-11-08T17:38:23.047Z\"},{\"id\":null,\"updated_at\":\"2018-11-08T17:38:23.053Z\"},{\"id\":null,\"updated_at\":\"2018-11-08T17:38:23.064Z\"},{\"id\":null,\"updated_at\":\"2018-11-08T17:38:23.069Z\"},{\"id\":null,\"updated_at\":\"2018-11-08T17:38:23.075Z\"},{\"id\":null,\"updated_at\":\"2018-11-08T17:38:23.080Z\"},{\"id\":null,\"updated_at\":\"2018-11-26T15:24:22.498Z\"},{\"id\":null,\"updated_at\":\"2018-11-26T15:24:22.542Z\"},{\"id\":null,\"updated_at\":\"2018-11-26T15:21:25.070Z\"},{\"id\":null,\"updated_at\":\"2018-11-26T15:21:25.108Z\"}],\"total\":10,\"total_pages\":1,\"last_page\":true,\"previous_page\":\"http://www.example.com/api/v1/used_model?select=updated_at\\u0026page\",\"next_page\":\"http://www.example.com/api/v1/used_model?select=updated_at\\u0026page\",\"out_of_bounds\":false,\"offset\":0}}}"], ["created_at", "2018-11-26 15:24:22.810366"], ["updated_at", "2018-11-26 15:24:22.810366"]]
1567
+  (2.1ms) COMMIT
1568
+ Completed 200 OK in 12ms (Views: 0.3ms | ActiveRecord: 3.4ms)
1569
+  (0.1ms) BEGIN
1570
+  (0.1ms) ROLLBACK
1571
+  (0.1ms) BEGIN
1572
+  (0.1ms) ROLLBACK
1573
+ Started GET "/api/v1/used_model?include=files_blobs%2Cfiles_url" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1574
+ Processing by Apicasso::CrudController#index as HTML
1575
+ Parameters: {"include"=>"files_blobs,files_url", "resource"=>"used_model"}
1576
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "888ed9c182844b56aa7724aae7e091fe"], ["LIMIT", 1]]
1577
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
1578
+ ActiveStorage::Attachment Load (0.3ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_type" = $1 AND "active_storage_attachments"."name" = $2 AND "active_storage_attachments"."record_id" IN ($3, $4, $5, $6, $7, $8, $9, $10, $11, $12) [["record_type", "UsedModel"], ["name", "files"], ["record_id", 4], ["record_id", 5], ["record_id", 7], ["record_id", 8], ["record_id", 9], ["record_id", 10], ["record_id", 55], ["record_id", 2], ["record_id", 52], ["record_id", 6]]
1579
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
1580
+  (0.2ms) BEGIN
1581
+ Apicasso::Key Load (0.5ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fa7f433e-464e-414a-a532-af26cac37329"], ["LIMIT", 1]]
1582
+ Apicasso::Request Create (0.7ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "fa7f433e-464e-414a-a532-af26cac37329"], ["object", "{\"request\":{\"uuid\":\"0dedbfee-fb4e-4acc-9efd-7639a4062263\",\"url\":\"http://www.example.com/api/v1/used_model?include=files_blobs%2Cfiles_url\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=888ed9c182844b56aa7724aae7e091fe\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":4,\"active\":false,\"account_id\":7,\"unit_id\":1,\"brand\":\"Chevy\",\"name\":\"Durango\",\"slug\":\"durango\",\"model\":\"Camero\",\"version\":\"8.5\",\"model_year\":2018,\"production_year\":\"2012\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2300.77\",\"price_value\":1516,\"price\":\"2245.59\",\"category\":\"Wagon\",\"transmission\":\"Automatic\",\"km_value\":78271823,\"km\":\"95493414\",\"plate\":\"2689\",\"color\":\"Red\",\"doors\":7,\"fuel\":1,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.047Z\",\"updated_at\":\"2018-11-08T17:38:23.047Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":5,\"active\":true,\"account_id\":8,\"unit_id\":0,\"brand\":\"Toyota\",\"name\":\"X3\",\"slug\":\"x3\",\"model\":\"Juke\",\"version\":\"3.2\",\"model_year\":2005,\"production_year\":\"2008\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"8812.52\",\"price_value\":9231,\"price\":\"1876.52\",\"category\":\"Hatchback\",\"transmission\":\"Automanual\",\"km_value\":40936712,\"km\":\"19445608\",\"plate\":\"5888\",\"color\":\"Black\",\"doors\":6,\"fuel\":9,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.053Z\",\"updated_at\":\"2018-11-08T17:38:23.053Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":7,\"active\":true,\"account_id\":5,\"unit_id\":8,\"brand\":\"Chevy\",\"name\":\"A7\",\"slug\":\"a7\",\"model\":\"Camero\",\"version\":\"5.3\",\"model_year\":2011,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1580.64\",\"price_value\":1165,\"price\":\"8709.63\",\"category\":\"Convertible\",\"transmission\":\"CVT\",\"km_value\":52169327,\"km\":\"15231393\",\"plate\":\"2997\",\"color\":\"Green\",\"doors\":1,\"fuel\":3,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.064Z\",\"updated_at\":\"2018-11-08T17:38:23.064Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":8,\"active\":true,\"account_id\":2,\"unit_id\":4,\"brand\":\"Nissan\",\"name\":\"Prius\",\"slug\":\"prius\",\"model\":\"Accord\",\"version\":\"7.8\",\"model_year\":2009,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"7129.91\",\"price_value\":2488,\"price\":\"4001.48\",\"category\":\"SUV\",\"transmission\":\"Manual\",\"km_value\":80244772,\"km\":\"48716911\",\"plate\":\"9573\",\"color\":\"Grey\",\"doors\":4,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.069Z\",\"updated_at\":\"2018-11-08T17:38:23.069Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":9,\"active\":false,\"account_id\":7,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Focus\",\"slug\":\"focus\",\"model\":\"LaCrosse\",\"version\":\"1.7\",\"model_year\":2012,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5197.01\",\"price_value\":2028,\"price\":\"8301.38\",\"category\":\"Minivan\",\"transmission\":\"Automatic\",\"km_value\":34215256,\"km\":\"11433071\",\"plate\":\"5603\",\"color\":\"Violet\",\"doors\":1,\"fuel\":5,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.075Z\",\"updated_at\":\"2018-11-08T17:38:23.075Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Ram\",\"slug\":\"cr-v\",\"model\":\"Prius\",\"version\":\"9.5\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1648.31\",\"price_value\":8432,\"price\":\"2056.82\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":47546237,\"km\":\"39672408\",\"plate\":\"4005\",\"color\":\"Yellow\",\"doors\":9,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.080Z\",\"updated_at\":\"2018-11-08T17:38:23.080Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":55,\"active\":true,\"account_id\":9,\"unit_id\":8,\"brand\":\"Lincoln\",\"name\":\"Audi A5\",\"slug\":\"sequi\",\"model\":\"Navigator\",\"version\":\"6.2\",\"model_year\":2006,\"production_year\":\"2005\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"4815.93\",\"price_value\":5898,\"price\":\"3045.47\",\"category\":\"Minivan\",\"transmission\":\"CVT\",\"km_value\":51961603,\"km\":\"90405822\",\"plate\":\"2981\",\"color\":\"Blue\",\"doors\":0,\"fuel\":2,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:24:22.498Z\",\"updated_at\":\"2018-11-26T15:24:22.498Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":2,\"active\":false,\"account_id\":1,\"unit_id\":5,\"brand\":\"Audi\",\"name\":\"dolor\",\"slug\":\"civic\",\"model\":\"A5\",\"version\":\"2.2\",\"model_year\":2016,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1294.34\",\"price_value\":8525,\"price\":\"5665.78\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":51090415,\"km\":\"96433648\",\"plate\":\"9510\",\"color\":\"Black\",\"doors\":8,\"fuel\":0,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.036Z\",\"updated_at\":\"2018-11-26T15:24:22.542Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":52,\"active\":true,\"account_id\":9,\"unit_id\":7,\"brand\":\"Lincoln\",\"name\":\"Dodge Charger\",\"slug\":\"voluptatum\",\"model\":\"Navigator\",\"version\":\"8.0\",\"model_year\":2008,\"production_year\":\"2018\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"9964.29\",\"price_value\":1748,\"price\":\"9110.94\",\"category\":\"Minivan\",\"transmission\":\"Manual\",\"km_value\":65916645,\"km\":\"94890803\",\"plate\":\"5229\",\"color\":\"Orange\",\"doors\":5,\"fuel\":4,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:21:25.070Z\",\"updated_at\":\"2018-11-26T15:21:25.070Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":6,\"active\":true,\"account_id\":0,\"unit_id\":2,\"brand\":\"Honda\",\"name\":\"in\",\"slug\":\"durango-9d02071a-77c0-403b-bc46-c7161408f812\",\"model\":\"MKZ\",\"version\":\"4.9\",\"model_year\":2008,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7058.43\",\"price_value\":5808,\"price\":\"8617.65\",\"category\":\"Coupe\",\"transmission\":\"Automanual\",\"km_value\":43250550,\"km\":\"34167150\",\"plate\":\"6998\",\"color\":\"Green\",\"doors\":1,\"fuel\":9,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.058Z\",\"updated_at\":\"2018-11-26T15:21:25.108Z\",\"files_url\":[],\"files_blobs\":[]}],\"total\":10,\"total_pages\":1,\"last_page\":true,\"previous_page\":\"http://www.example.com/api/v1/used_model?include=files_blobs%2Cfiles_url\\u0026page\",\"next_page\":\"http://www.example.com/api/v1/used_model?include=files_blobs%2Cfiles_url\\u0026page\",\"out_of_bounds\":false,\"offset\":0}}}"], ["created_at", "2018-11-26 15:24:22.837278"], ["updated_at", "2018-11-26 15:24:22.837278"]]
1583
+  (2.0ms) COMMIT
1584
+ Completed 200 OK in 31ms (Views: 2.6ms | ActiveRecord: 4.6ms)
1585
+  (0.1ms) BEGIN
1586
+  (0.1ms) ROLLBACK
1587
+  (0.1ms) BEGIN
1588
+  (0.1ms) ROLLBACK
1589
+  (0.1ms) BEGIN
1590
+ Started GET "/api/v1/used_model?include=filess%2Cfilee" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1591
+ Processing by Apicasso::CrudController#index as HTML
1592
+ Parameters: {"include"=>"filess,filee", "resource"=>"used_model"}
1593
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "888ed9c182844b56aa7724aae7e091fe"], ["LIMIT", 1]]
1594
+ Completed 400 Bad Request in 2ms (ActiveRecord: 0.2ms)
1595
+  (0.1ms) ROLLBACK
1596
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models"
1597
+ Started GET "/api/v1/used_model/7" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1598
+ Processing by Apicasso::CrudController#show as HTML
1599
+ Parameters: {"resource"=>"used_model", "id"=>"7"}
1600
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "888ed9c182844b56aa7724aae7e091fe"], ["LIMIT", 1]]
1601
+ UsedModel Load (1.1ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "7"], ["LIMIT", 1]]
1602
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]]
1603
+  (0.1ms) BEGIN
1604
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fa7f433e-464e-414a-a532-af26cac37329"], ["LIMIT", 1]]
1605
+ Apicasso::Request Create (0.3ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "fa7f433e-464e-414a-a532-af26cac37329"], ["object", "{\"request\":{\"uuid\":\"bfed1d3f-f627-4298-bd6f-86629dcd6dcf\",\"url\":\"http://www.example.com/api/v1/used_model/7\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=888ed9c182844b56aa7724aae7e091fe\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":7,\"active\":true,\"account_id\":5,\"unit_id\":8,\"brand\":\"Chevy\",\"name\":\"A7\",\"slug\":\"a7\",\"model\":\"Camero\",\"version\":\"5.3\",\"model_year\":2011,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1580.64\",\"price_value\":1165,\"price\":\"8709.63\",\"category\":\"Convertible\",\"transmission\":\"CVT\",\"km_value\":52169327,\"km\":\"15231393\",\"plate\":\"2997\",\"color\":\"Green\",\"doors\":1,\"fuel\":3,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.064Z\",\"updated_at\":\"2018-11-08T17:38:23.064Z\"}}}"], ["created_at", "2018-11-26 15:24:22.868021"], ["updated_at", "2018-11-26 15:24:22.868021"]]
1606
+  (2.3ms) COMMIT
1607
+ Completed 200 OK in 12ms (Views: 0.3ms | ActiveRecord: 4.7ms)
1608
+  (0.2ms) BEGIN
1609
+  (0.3ms) ROLLBACK
1610
+  (0.1ms) BEGIN
1611
+  (0.2ms) ROLLBACK
1612
+  (0.1ms) BEGIN
1613
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]]
1614
+  (0.2ms) ROLLBACK
1615
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models"
1616
+ Started GET "/api/v1/used_model/5?select=fuel" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1617
+ Processing by Apicasso::CrudController#show as HTML
1618
+ Parameters: {"select"=>"fuel", "resource"=>"used_model", "id"=>"5"}
1619
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "888ed9c182844b56aa7724aae7e091fe"], ["LIMIT", 1]]
1620
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "5"], ["LIMIT", 1]]
1621
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]]
1622
+  (0.1ms) BEGIN
1623
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fa7f433e-464e-414a-a532-af26cac37329"], ["LIMIT", 1]]
1624
+ Apicasso::Request Create (0.3ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "fa7f433e-464e-414a-a532-af26cac37329"], ["object", "{\"request\":{\"uuid\":\"83de9832-59f1-4431-9875-d7ac09542d1d\",\"url\":\"http://www.example.com/api/v1/used_model/5?select=fuel\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=888ed9c182844b56aa7724aae7e091fe\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"fuel\":9}}}"], ["created_at", "2018-11-26 15:24:22.890571"], ["updated_at", "2018-11-26 15:24:22.890571"]]
1625
+  (1.8ms) COMMIT
1626
+ Completed 200 OK in 8ms (Views: 0.1ms | ActiveRecord: 3.4ms)
1627
+  (0.1ms) BEGIN
1628
+  (0.1ms) ROLLBACK
1629
+  (0.2ms) BEGIN
1630
+  (0.3ms) ROLLBACK
1631
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
1632
+ Started GET "/api/v1/used_model/2?include=files_blobs%2Cfiles_url" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1633
+ Processing by Apicasso::CrudController#show as HTML
1634
+ Parameters: {"include"=>"files_blobs,files_url", "resource"=>"used_model", "id"=>"2"}
1635
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "888ed9c182844b56aa7724aae7e091fe"], ["LIMIT", 1]]
1636
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "2"], ["LIMIT", 1]]
1637
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]]
1638
+ ActiveStorage::Attachment Load (0.3ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 [["record_id", 2], ["record_type", "UsedModel"], ["name", "files"]]
1639
+ ActiveStorage::Blob Load (0.6ms) SELECT "active_storage_blobs".* FROM "active_storage_blobs" INNER JOIN "active_storage_attachments" ON "active_storage_blobs"."id" = "active_storage_attachments"."blob_id" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 [["record_id", 2], ["record_type", "UsedModel"], ["name", "files"]]
1640
+  (0.1ms) BEGIN
1641
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fa7f433e-464e-414a-a532-af26cac37329"], ["LIMIT", 1]]
1642
+ Apicasso::Request Create (0.6ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "fa7f433e-464e-414a-a532-af26cac37329"], ["object", "{\"request\":{\"uuid\":\"0315807a-7d08-4cfc-b07e-041837c30e65\",\"url\":\"http://www.example.com/api/v1/used_model/2?include=files_blobs%2Cfiles_url\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=888ed9c182844b56aa7724aae7e091fe\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":2,\"active\":false,\"account_id\":1,\"unit_id\":5,\"brand\":\"Audi\",\"name\":\"dolor\",\"slug\":\"civic\",\"model\":\"A5\",\"version\":\"2.2\",\"model_year\":2016,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1294.34\",\"price_value\":8525,\"price\":\"5665.78\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":51090415,\"km\":\"96433648\",\"plate\":\"9510\",\"color\":\"Black\",\"doors\":8,\"fuel\":0,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.036Z\",\"updated_at\":\"2018-11-26T15:24:22.542Z\",\"files_url\":[],\"files_blobs\":[]}}}"], ["created_at", "2018-11-26 15:24:22.909795"], ["updated_at", "2018-11-26 15:24:22.909795"]]
1643
+  (2.7ms) COMMIT
1644
+ Completed 200 OK in 17ms (Views: 0.4ms | ActiveRecord: 5.4ms)
1645
+  (0.1ms) BEGIN
1646
+  (0.1ms) ROLLBACK
1647
+  (0.1ms) BEGIN
1648
+  (0.1ms) ROLLBACK
1649
+  (0.1ms) BEGIN
1650
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
1651
+ Started GET "/api/v1/used_model/8?include=filess%2Cfilee" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1652
+ Processing by Apicasso::CrudController#show as HTML
1653
+ Parameters: {"include"=>"filess,filee", "resource"=>"used_model", "id"=>"8"}
1654
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "888ed9c182844b56aa7724aae7e091fe"], ["LIMIT", 1]]
1655
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.2ms)
1656
+  (0.1ms) ROLLBACK
1657
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
1658
+ Started GET "/api/v1/used_model/civic" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1659
+ Processing by Apicasso::CrudController#show as HTML
1660
+ Parameters: {"resource"=>"used_model", "id"=>"civic"}
1661
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "888ed9c182844b56aa7724aae7e091fe"], ["LIMIT", 1]]
1662
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "civic"], ["LIMIT", 1]]
1663
+  (0.2ms) BEGIN
1664
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fa7f433e-464e-414a-a532-af26cac37329"], ["LIMIT", 1]]
1665
+ Apicasso::Request Create (0.4ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "fa7f433e-464e-414a-a532-af26cac37329"], ["object", "{\"request\":{\"uuid\":\"ee1f239a-be57-4140-9626-9e518516bbf4\",\"url\":\"http://www.example.com/api/v1/used_model/civic\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=888ed9c182844b56aa7724aae7e091fe\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":2,\"active\":false,\"account_id\":1,\"unit_id\":5,\"brand\":\"Audi\",\"name\":\"dolor\",\"slug\":\"civic\",\"model\":\"A5\",\"version\":\"2.2\",\"model_year\":2016,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1294.34\",\"price_value\":8525,\"price\":\"5665.78\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":51090415,\"km\":\"96433648\",\"plate\":\"9510\",\"color\":\"Black\",\"doors\":8,\"fuel\":0,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.036Z\",\"updated_at\":\"2018-11-26T15:24:22.542Z\"}}}"], ["created_at", "2018-11-26 15:24:22.934690"], ["updated_at", "2018-11-26 15:24:22.934690"]]
1666
+  (2.0ms) COMMIT
1667
+ Completed 200 OK in 13ms (Views: 0.7ms | ActiveRecord: 3.5ms)
1668
+  (0.1ms) BEGIN
1669
+  (0.2ms) ROLLBACK
1670
+  (0.3ms) BEGIN
1671
+  (0.4ms) ROLLBACK
1672
+  (0.1ms) BEGIN
1673
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "civic"], ["LIMIT", 1]]
1674
+  (0.2ms) ROLLBACK
1675
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
1676
+ Started POST "/api/v1/used_model/" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1677
+ Processing by Apicasso::CrudController#create as HTML
1678
+ Parameters: {"used_model"=>{"active"=>"false", "account_id"=>"4", "unit_id"=>"1", "brand"=>"Dodge", "name"=>"Dodge Durango", "model"=>"Cube", "slug"=>"architecto", "version"=>"5.7", "model_year"=>"2018", "production_year"=>"2010", "kind"=>"car", "new_vehicle"=>"false", "old_price"=>"6916.73", "price_value"=>"8701.57", "price"=>"6745.15", "category"=>"Extended Cab Pickup", "transmission"=>"Automatic", "km_value"=>"59441538", "km"=>"91103023", "plate"=>"2348", "color"=>"Red", "doors"=>"1", "fuel"=>"0", "fuel_text"=>"Gasoline Hybrid", "shielded"=>"false"}, "resource"=>"used_model"}
1679
+ Apicasso::Key Load (0.5ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "888ed9c182844b56aa7724aae7e091fe"], ["LIMIT", 1]]
1680
+  (0.2ms) BEGIN
1681
+ UsedModel Create (0.4ms) INSERT INTO "used_models" ("active", "account_id", "unit_id", "brand", "name", "slug", "model", "version", "model_year", "production_year", "kind", "old_price", "price_value", "price", "category", "transmission", "km_value", "km", "plate", "color", "doors", "fuel", "fuel_text", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25) RETURNING "id" [["active", false], ["account_id", 4], ["unit_id", 1], ["brand", "Dodge"], ["name", "Dodge Durango"], ["slug", "architecto"], ["model", "Cube"], ["version", "5.7"], ["model_year", 2018], ["production_year", "2010"], ["kind", "car"], ["old_price", "6916.73"], ["price_value", 8701], ["price", "6745.15"], ["category", "Extended Cab Pickup"], ["transmission", "Automatic"], ["km_value", 59441538], ["km", "91103023"], ["plate", "2348"], ["color", "Red"], ["doors", 1], ["fuel", 0], ["fuel_text", "Gasoline Hybrid"], ["created_at", "2018-11-26 15:24:22.959426"], ["updated_at", "2018-11-26 15:24:22.959426"]]
1682
+  (3.0ms) COMMIT
1683
+  (0.2ms) BEGIN
1684
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fa7f433e-464e-414a-a532-af26cac37329"], ["LIMIT", 1]]
1685
+ Apicasso::Request Create (0.3ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "fa7f433e-464e-414a-a532-af26cac37329"], ["object", "{\"request\":{\"uuid\":\"a5d947f0-2d67-4bae-afa2-f7e2e3130c3f\",\"url\":\"http://www.example.com/api/v1/used_model/\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=888ed9c182844b56aa7724aae7e091fe\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":201,\"body\":{\"id\":56,\"active\":false,\"account_id\":4,\"unit_id\":1,\"brand\":\"Dodge\",\"name\":\"Dodge Durango\",\"slug\":\"architecto\",\"model\":\"Cube\",\"version\":\"5.7\",\"model_year\":2018,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"6916.73\",\"price_value\":8701,\"price\":\"6745.15\",\"category\":\"Extended Cab Pickup\",\"transmission\":\"Automatic\",\"km_value\":59441538,\"km\":\"91103023\",\"plate\":\"2348\",\"color\":\"Red\",\"doors\":1,\"fuel\":0,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:24:22.959Z\",\"updated_at\":\"2018-11-26T15:24:22.959Z\"}}}"], ["created_at", "2018-11-26 15:24:22.970177"], ["updated_at", "2018-11-26 15:24:22.970177"]]
1686
+  (1.9ms) COMMIT
1687
+ Completed 201 Created in 22ms (Views: 0.2ms | ActiveRecord: 7.0ms)
1688
+  (0.1ms) BEGIN
1689
+  (0.1ms) ROLLBACK
1690
+  (0.1ms) BEGIN
1691
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
1692
+  (0.1ms) ROLLBACK
1693
+  (0.1ms) BEGIN
1694
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "architecto"], ["LIMIT", 1]]
1695
+  (0.1ms) ROLLBACK
1696
+  (0.2ms) BEGIN
1697
+ Started POST "/api/v1/used_model/" for 127.0.0.1 at 2018-11-26 12:24:22 -0300
1698
+ Processing by Apicasso::CrudController#create as HTML
1699
+ Parameters: {"used_model"=>{"slug"=>"cr-v"}, "resource"=>"used_model"}
1700
+ Apicasso::Key Load (0.7ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "888ed9c182844b56aa7724aae7e091fe"], ["LIMIT", 1]]
1701
+  (0.3ms) SAVEPOINT active_record_1
1702
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
1703
+  (0.1ms) SAVEPOINT active_record_1
1704
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fa7f433e-464e-414a-a532-af26cac37329"], ["LIMIT", 1]]
1705
+ Apicasso::Request Create (0.4ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "fa7f433e-464e-414a-a532-af26cac37329"], ["object", "{\"request\":{\"uuid\":\"77543029-f595-40ef-9a24-2f0d0e5631c8\",\"url\":\"http://www.example.com/api/v1/used_model/\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=888ed9c182844b56aa7724aae7e091fe\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":422,\"body\":{\"account_id\":[\"can't be blank\"],\"unit_id\":[\"can't be blank\"]}}}"], ["created_at", "2018-11-26 15:24:22.995459"], ["updated_at", "2018-11-26 15:24:22.995459"]]
1706
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1707
+ Completed 422 Unprocessable Entity in 14ms (Views: 0.2ms | ActiveRecord: 2.3ms)
1708
+  (0.3ms) ROLLBACK
1709
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models"
1710
+ Started PATCH "/api/v1/used_model/7" for 127.0.0.1 at 2018-11-26 12:24:23 -0300
1711
+ Processing by Apicasso::CrudController#update as HTML
1712
+ Parameters: {"used_model"=>{"name"=>"ipsa"}, "resource"=>"used_model", "id"=>"7"}
1713
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "888ed9c182844b56aa7724aae7e091fe"], ["LIMIT", 1]]
1714
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "7"], ["LIMIT", 1]]
1715
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]]
1716
+  (0.1ms) BEGIN
1717
+ UsedModel Update (0.3ms) UPDATE "used_models" SET "name" = $1, "updated_at" = $2 WHERE "used_models"."id" = $3 [["name", "ipsa"], ["updated_at", "2018-11-26 15:24:23.010934"], ["id", 7]]
1718
+  (1.9ms) COMMIT
1719
+  (0.1ms) BEGIN
1720
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fa7f433e-464e-414a-a532-af26cac37329"], ["LIMIT", 1]]
1721
+ Apicasso::Request Create (0.3ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "fa7f433e-464e-414a-a532-af26cac37329"], ["object", "{\"request\":{\"uuid\":\"41ee3037-2ebc-4f6f-b7ad-e1a4e1462450\",\"url\":\"http://www.example.com/api/v1/used_model/7\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=888ed9c182844b56aa7724aae7e091fe\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":7,\"name\":\"ipsa\",\"slug\":\"a7\",\"account_id\":5,\"unit_id\":8,\"active\":true,\"brand\":\"Chevy\",\"model\":\"Camero\",\"version\":\"5.3\",\"model_year\":2011,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1580.64\",\"price_value\":1165,\"price\":\"8709.63\",\"category\":\"Convertible\",\"transmission\":\"CVT\",\"km_value\":52169327,\"km\":\"15231393\",\"plate\":\"2997\",\"color\":\"Green\",\"doors\":1,\"fuel\":3,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.064Z\",\"updated_at\":\"2018-11-26T15:24:23.010Z\"}}}"], ["created_at", "2018-11-26 15:24:23.016054"], ["updated_at", "2018-11-26 15:24:23.016054"]]
1722
+  (1.7ms) COMMIT
1723
+ Completed 200 OK in 15ms (Views: 0.1ms | ActiveRecord: 5.8ms)
1724
+  (0.1ms) BEGIN
1725
+  (0.2ms) ROLLBACK
1726
+  (0.1ms) BEGIN
1727
+ UsedModel Load (0.6ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]]
1728
+  (0.3ms) ROLLBACK
1729
+  (0.1ms) BEGIN
1730
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models"
1731
+ Started PATCH "/api/v1/used_model/6" for 127.0.0.1 at 2018-11-26 12:24:23 -0300
1732
+ Processing by Apicasso::CrudController#update as HTML
1733
+ Parameters: {"used_model"=>{"unit_id"=>nil}, "resource"=>"used_model", "id"=>"6"}
1734
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "888ed9c182844b56aa7724aae7e091fe"], ["LIMIT", 1]]
1735
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "6"], ["LIMIT", 1]]
1736
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
1737
+  (0.1ms) SAVEPOINT active_record_1
1738
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
1739
+  (0.1ms) SAVEPOINT active_record_1
1740
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fa7f433e-464e-414a-a532-af26cac37329"], ["LIMIT", 1]]
1741
+ Apicasso::Request Create (0.3ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "fa7f433e-464e-414a-a532-af26cac37329"], ["object", "{\"request\":{\"uuid\":\"318d4ac4-47f4-44a2-b1cf-a6b2843498cb\",\"url\":\"http://www.example.com/api/v1/used_model/6\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=888ed9c182844b56aa7724aae7e091fe\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":422,\"body\":{\"unit_id\":[\"can't be blank\"]}}}"], ["created_at", "2018-11-26 15:24:23.038525"], ["updated_at", "2018-11-26 15:24:23.038525"]]
1742
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1743
+ Completed 422 Unprocessable Entity in 9ms (Views: 0.1ms | ActiveRecord: 2.0ms)
1744
+  (0.1ms) ROLLBACK
1745
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
1746
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
1747
+ Started DELETE "/api/v1/used_model/4" for 127.0.0.1 at 2018-11-26 12:24:23 -0300
1748
+ Processing by Apicasso::CrudController#destroy as HTML
1749
+ Parameters: {"resource"=>"used_model", "id"=>"4"}
1750
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "888ed9c182844b56aa7724aae7e091fe"], ["LIMIT", 1]]
1751
+ UsedModel Load (0.7ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "4"], ["LIMIT", 1]]
1752
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]]
1753
+  (0.1ms) BEGIN
1754
+ UsedModel Destroy (0.3ms) DELETE FROM "used_models" WHERE "used_models"."id" = $1 [["id", 4]]
1755
+  (1.8ms) COMMIT
1756
+ ActiveStorage::Attachment Load (0.4ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 [["record_id", 4], ["record_type", "UsedModel"], ["name", "files"]]
1757
+ ActiveStorage::Attachment Load (0.3ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 4], ["record_type", "UsedModel"], ["name", "file_highlighted"], ["LIMIT", 1]]
1758
+  (0.1ms) BEGIN
1759
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fa7f433e-464e-414a-a532-af26cac37329"], ["LIMIT", 1]]
1760
+ Apicasso::Request Create (0.3ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "fa7f433e-464e-414a-a532-af26cac37329"], ["object", "{\"request\":{\"uuid\":\"9d031d1f-52cb-46fb-89ac-8fac1ab71f8b\",\"url\":\"http://www.example.com/api/v1/used_model/4\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=888ed9c182844b56aa7724aae7e091fe\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":204,\"body\":\"\"}}"], ["created_at", "2018-11-26 15:24:23.055473"], ["updated_at", "2018-11-26 15:24:23.055473"]]
1761
+  (2.1ms) COMMIT
1762
+ Completed 204 No Content in 15ms (ActiveRecord: 6.9ms)
1763
+  (0.2ms) BEGIN
1764
+  (0.2ms) ROLLBACK
1765
+  (0.2ms) BEGIN
1766
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
1767
+  (0.1ms) ROLLBACK
1768
+  (0.1ms) BEGIN
1769
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]]
1770
+  (0.1ms) ROLLBACK
1771
+  (0.1ms) BEGIN
1772
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-26 12:24:23 -0300
1773
+ Processing by Apicasso::CrudController#index as HTML
1774
+ Parameters: {"resource"=>"used_model"}
1775
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "0c958d4fb9134f988934c33f9af45509"], ["LIMIT", 1]]
1776
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
1777
+  (0.4ms) SELECT COUNT(*) FROM "used_models"
1778
+  (0.1ms) SAVEPOINT active_record_1
1779
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "a62c61aa-24e2-4167-96d4-ebecaf942b34"], ["LIMIT", 1]]
1780
+ Apicasso::Request Create (0.6ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "a62c61aa-24e2-4167-96d4-ebecaf942b34"], ["object", "{\"request\":{\"uuid\":\"25363c4b-8c72-41a0-8011-e3dbea282682\",\"url\":\"http://www.example.com/api/v1/used_model\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=0c958d4fb9134f988934c33f9af45509\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":5,\"active\":true,\"account_id\":8,\"unit_id\":0,\"brand\":\"Toyota\",\"name\":\"X3\",\"slug\":\"x3\",\"model\":\"Juke\",\"version\":\"3.2\",\"model_year\":2005,\"production_year\":\"2008\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"8812.52\",\"price_value\":9231,\"price\":\"1876.52\",\"category\":\"Hatchback\",\"transmission\":\"Automanual\",\"km_value\":40936712,\"km\":\"19445608\",\"plate\":\"5888\",\"color\":\"Black\",\"doors\":6,\"fuel\":9,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.053Z\",\"updated_at\":\"2018-11-08T17:38:23.053Z\"},{\"id\":8,\"active\":true,\"account_id\":2,\"unit_id\":4,\"brand\":\"Nissan\",\"name\":\"Prius\",\"slug\":\"prius\",\"model\":\"Accord\",\"version\":\"7.8\",\"model_year\":2009,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"7129.91\",\"price_value\":2488,\"price\":\"4001.48\",\"category\":\"SUV\",\"transmission\":\"Manual\",\"km_value\":80244772,\"km\":\"48716911\",\"plate\":\"9573\",\"color\":\"Grey\",\"doors\":4,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.069Z\",\"updated_at\":\"2018-11-08T17:38:23.069Z\"},{\"id\":9,\"active\":false,\"account_id\":7,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Focus\",\"slug\":\"focus\",\"model\":\"LaCrosse\",\"version\":\"1.7\",\"model_year\":2012,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5197.01\",\"price_value\":2028,\"price\":\"8301.38\",\"category\":\"Minivan\",\"transmission\":\"Automatic\",\"km_value\":34215256,\"km\":\"11433071\",\"plate\":\"5603\",\"color\":\"Violet\",\"doors\":1,\"fuel\":5,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.075Z\",\"updated_at\":\"2018-11-08T17:38:23.075Z\"},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Ram\",\"slug\":\"cr-v\",\"model\":\"Prius\",\"version\":\"9.5\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1648.31\",\"price_value\":8432,\"price\":\"2056.82\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":47546237,\"km\":\"39672408\",\"plate\":\"4005\",\"color\":\"Yellow\",\"doors\":9,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.080Z\",\"updated_at\":\"2018-11-08T17:38:23.080Z\"},{\"id\":55,\"active\":true,\"account_id\":9,\"unit_id\":8,\"brand\":\"Lincoln\",\"name\":\"Audi A5\",\"slug\":\"sequi\",\"model\":\"Navigator\",\"version\":\"6.2\",\"model_year\":2006,\"production_year\":\"2005\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"4815.93\",\"price_value\":5898,\"price\":\"3045.47\",\"category\":\"Minivan\",\"transmission\":\"CVT\",\"km_value\":51961603,\"km\":\"90405822\",\"plate\":\"2981\",\"color\":\"Blue\",\"doors\":0,\"fuel\":2,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:24:22.498Z\",\"updated_at\":\"2018-11-26T15:24:22.498Z\"},{\"id\":2,\"active\":false,\"account_id\":1,\"unit_id\":5,\"brand\":\"Audi\",\"name\":\"dolor\",\"slug\":\"civic\",\"model\":\"A5\",\"version\":\"2.2\",\"model_year\":2016,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1294.34\",\"price_value\":8525,\"price\":\"5665.78\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":51090415,\"km\":\"96433648\",\"plate\":\"9510\",\"color\":\"Black\",\"doors\":8,\"fuel\":0,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.036Z\",\"updated_at\":\"2018-11-26T15:24:22.542Z\"},{\"id\":56,\"active\":false,\"account_id\":4,\"unit_id\":1,\"brand\":\"Dodge\",\"name\":\"Dodge Durango\",\"slug\":\"architecto\",\"model\":\"Cube\",\"version\":\"5.7\",\"model_year\":2018,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"6916.73\",\"price_value\":8701,\"price\":\"6745.15\",\"category\":\"Extended Cab Pickup\",\"transmission\":\"Automatic\",\"km_value\":59441538,\"km\":\"91103023\",\"plate\":\"2348\",\"color\":\"Red\",\"doors\":1,\"fuel\":0,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:24:22.959Z\",\"updated_at\":\"2018-11-26T15:24:22.959Z\"},{\"id\":7,\"active\":true,\"account_id\":5,\"unit_id\":8,\"brand\":\"Chevy\",\"name\":\"ipsa\",\"slug\":\"a7\",\"model\":\"Camero\",\"version\":\"5.3\",\"model_year\":2011,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1580.64\",\"price_value\":1165,\"price\":\"8709.63\",\"category\":\"Convertible\",\"transmission\":\"CVT\",\"km_value\":52169327,\"km\":\"15231393\",\"plate\":\"2997\",\"color\":\"Green\",\"doors\":1,\"fuel\":3,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.064Z\",\"updated_at\":\"2018-11-26T15:24:23.010Z\"},{\"id\":52,\"active\":true,\"account_id\":9,\"unit_id\":7,\"brand\":\"Lincoln\",\"name\":\"Dodge Charger\",\"slug\":\"voluptatum\",\"model\":\"Navigator\",\"version\":\"8.0\",\"model_year\":2008,\"production_year\":\"2018\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"9964.29\",\"price_value\":1748,\"price\":\"9110.94\",\"category\":\"Minivan\",\"transmission\":\"Manual\",\"km_value\":65916645,\"km\":\"94890803\",\"plate\":\"5229\",\"color\":\"Orange\",\"doors\":5,\"fuel\":4,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:21:25.070Z\",\"updated_at\":\"2018-11-26T15:21:25.070Z\"},{\"id\":6,\"active\":true,\"account_id\":0,\"unit_id\":2,\"brand\":\"Honda\",\"name\":\"in\",\"slug\":\"durango-9d02071a-77c0-403b-bc46-c7161408f812\",\"model\":\"MKZ\",\"version\":\"4.9\",\"model_year\":2008,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7058.43\",\"price_value\":5808,\"price\":\"8617.65\",\"category\":\"Coupe\",\"transmission\":\"Automanual\",\"km_value\":43250550,\"km\":\"34167150\",\"plate\":\"6998\",\"color\":\"Green\",\"doors\":1,\"fuel\":9,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.058Z\",\"updated_at\":\"2018-11-26T15:21:25.108Z\"}],\"total\":10,\"total_pages\":1,\"last_page\":true,\"previous_page\":\"http://www.example.com/api/v1/used_model?page\",\"next_page\":\"http://www.example.com/api/v1/used_model?page\",\"out_of_bounds\":false,\"offset\":0}}}"], ["created_at", "2018-11-26 15:24:23.086864"], ["updated_at", "2018-11-26 15:24:23.086864"]]
1781
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1782
+ Completed 200 OK in 28ms (Views: 4.9ms | ActiveRecord: 2.3ms)
1783
+  (0.1ms) ROLLBACK
1784
+  (0.1ms) BEGIN
1785
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
1786
+ Started POST "/api/v1/used_model/" for 127.0.0.1 at 2018-11-26 12:24:23 -0300
1787
+ Processing by Apicasso::CrudController#create as HTML
1788
+ Parameters: {"used_model"=>{"active"=>"false", "account_id"=>"3", "unit_id"=>"1", "brand"=>"BMW", "name"=>"Lincoln Navigator", "model"=>"Charger", "version"=>"2.5", "model_year"=>"2007", "production_year"=>"2017", "kind"=>"car", "new_vehicle"=>"false", "old_price"=>"8756.71", "price_value"=>"6244.53", "price"=>"5687.31", "category"=>"Minivan", "transmission"=>"Automanual", "km_value"=>"44000336", "km"=>"50311164", "plate"=>"6124", "color"=>"Grey", "doors"=>"1", "fuel"=>"3", "fuel_text"=>"Diesel", "shielded"=>"false"}, "resource"=>"used_model"}
1789
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "0c958d4fb9134f988934c33f9af45509"], ["LIMIT", 1]]
1790
+  (0.2ms) SAVEPOINT active_record_1
1791
+ UsedModel Exists (0.5ms) SELECT 1 AS one FROM "used_models" WHERE "used_models"."id" IS NOT NULL AND "used_models"."slug" = $1 LIMIT $2 [["slug", "lincoln-navigator"], ["LIMIT", 1]]
1792
+ UsedModel Create (0.5ms) INSERT INTO "used_models" ("active", "account_id", "unit_id", "brand", "name", "slug", "model", "version", "model_year", "production_year", "kind", "old_price", "price_value", "price", "category", "transmission", "km_value", "km", "plate", "color", "doors", "fuel", "fuel_text", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25) RETURNING "id" [["active", false], ["account_id", 3], ["unit_id", 1], ["brand", "BMW"], ["name", "Lincoln Navigator"], ["slug", "lincoln-navigator"], ["model", "Charger"], ["version", "2.5"], ["model_year", 2007], ["production_year", "2017"], ["kind", "car"], ["old_price", "8756.71"], ["price_value", 6244], ["price", "5687.31"], ["category", "Minivan"], ["transmission", "Automanual"], ["km_value", 44000336], ["km", "50311164"], ["plate", "6124"], ["color", "Grey"], ["doors", 1], ["fuel", 3], ["fuel_text", "Diesel"], ["created_at", "2018-11-26 15:24:23.110232"], ["updated_at", "2018-11-26 15:24:23.110232"]]
1793
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1794
+  (0.2ms) SAVEPOINT active_record_1
1795
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "a62c61aa-24e2-4167-96d4-ebecaf942b34"], ["LIMIT", 1]]
1796
+ Apicasso::Request Create (0.4ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "a62c61aa-24e2-4167-96d4-ebecaf942b34"], ["object", "{\"request\":{\"uuid\":\"6750aa00-1ad3-4dd6-80a0-33bf53dd1fd5\",\"url\":\"http://www.example.com/api/v1/used_model/\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=0c958d4fb9134f988934c33f9af45509\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":201,\"body\":{\"id\":57,\"active\":false,\"account_id\":3,\"unit_id\":1,\"brand\":\"BMW\",\"name\":\"Lincoln Navigator\",\"slug\":\"lincoln-navigator\",\"model\":\"Charger\",\"version\":\"2.5\",\"model_year\":2007,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"8756.71\",\"price_value\":6244,\"price\":\"5687.31\",\"category\":\"Minivan\",\"transmission\":\"Automanual\",\"km_value\":44000336,\"km\":\"50311164\",\"plate\":\"6124\",\"color\":\"Grey\",\"doors\":1,\"fuel\":3,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:24:23.110Z\",\"updated_at\":\"2018-11-26T15:24:23.110Z\"}}}"], ["created_at", "2018-11-26 15:24:23.117903"], ["updated_at", "2018-11-26 15:24:23.117903"]]
1797
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1798
+ Completed 201 Created in 18ms (Views: 0.2ms | ActiveRecord: 2.9ms)
1799
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
1800
+  (0.3ms) ROLLBACK
1801
+  (0.1ms) BEGIN
1802
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models"
1803
+ Started PATCH "/api/v1/used_model/6" for 127.0.0.1 at 2018-11-26 12:24:23 -0300
1804
+ Processing by Apicasso::CrudController#update as HTML
1805
+ Parameters: {"used_model"=>{"name"=>"Chevy Silverado"}, "resource"=>"used_model", "id"=>"6"}
1806
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "0c958d4fb9134f988934c33f9af45509"], ["LIMIT", 1]]
1807
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "6"], ["LIMIT", 1]]
1808
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
1809
+  (0.1ms) SAVEPOINT active_record_1
1810
+ UsedModel Update (0.3ms) UPDATE "used_models" SET "name" = $1, "updated_at" = $2 WHERE "used_models"."id" = $3 [["name", "Chevy Silverado"], ["updated_at", "2018-11-26 15:24:23.131605"], ["id", 6]]
1811
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1812
+  (0.2ms) SAVEPOINT active_record_1
1813
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "a62c61aa-24e2-4167-96d4-ebecaf942b34"], ["LIMIT", 1]]
1814
+ Apicasso::Request Create (0.4ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "a62c61aa-24e2-4167-96d4-ebecaf942b34"], ["object", "{\"request\":{\"uuid\":\"c16eef9e-4ae5-4693-a170-402b66227830\",\"url\":\"http://www.example.com/api/v1/used_model/6\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=0c958d4fb9134f988934c33f9af45509\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":6,\"name\":\"Chevy Silverado\",\"slug\":\"durango-9d02071a-77c0-403b-bc46-c7161408f812\",\"account_id\":0,\"unit_id\":2,\"active\":true,\"brand\":\"Honda\",\"model\":\"MKZ\",\"version\":\"4.9\",\"model_year\":2008,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7058.43\",\"price_value\":5808,\"price\":\"8617.65\",\"category\":\"Coupe\",\"transmission\":\"Automanual\",\"km_value\":43250550,\"km\":\"34167150\",\"plate\":\"6998\",\"color\":\"Green\",\"doors\":1,\"fuel\":9,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.058Z\",\"updated_at\":\"2018-11-26T15:24:23.131Z\"}}}"], ["created_at", "2018-11-26 15:24:23.136334"], ["updated_at", "2018-11-26 15:24:23.136334"]]
1815
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1816
+ Completed 200 OK in 13ms (Views: 0.1ms | ActiveRecord: 2.4ms)
1817
+  (0.1ms) ROLLBACK
1818
+  (0.1ms) BEGIN
1819
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
1820
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
1821
+ Started DELETE "/api/v1/used_model/55" for 127.0.0.1 at 2018-11-26 12:24:23 -0300
1822
+ Processing by Apicasso::CrudController#destroy as HTML
1823
+ Parameters: {"resource"=>"used_model", "id"=>"55"}
1824
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "0c958d4fb9134f988934c33f9af45509"], ["LIMIT", 1]]
1825
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "55"], ["LIMIT", 1]]
1826
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 55], ["LIMIT", 1]]
1827
+  (0.3ms) SAVEPOINT active_record_1
1828
+ UsedModel Destroy (0.5ms) DELETE FROM "used_models" WHERE "used_models"."id" = $1 [["id", 55]]
1829
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1830
+ ActiveStorage::Attachment Load (0.4ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 [["record_id", 55], ["record_type", "UsedModel"], ["name", "files"]]
1831
+ ActiveStorage::Attachment Load (0.7ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 55], ["record_type", "UsedModel"], ["name", "file_highlighted"], ["LIMIT", 1]]
1832
+  (0.2ms) SAVEPOINT active_record_1
1833
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "a62c61aa-24e2-4167-96d4-ebecaf942b34"], ["LIMIT", 1]]
1834
+ Apicasso::Request Create (0.3ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "a62c61aa-24e2-4167-96d4-ebecaf942b34"], ["object", "{\"request\":{\"uuid\":\"21354373-debf-41cd-9b1f-b72d1f18cbf1\",\"url\":\"http://www.example.com/api/v1/used_model/55\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=0c958d4fb9134f988934c33f9af45509\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":204,\"body\":\"\"}}"], ["created_at", "2018-11-26 15:24:23.157537"], ["updated_at", "2018-11-26 15:24:23.157537"]]
1835
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1836
+ Completed 204 No Content in 16ms (ActiveRecord: 4.0ms)
1837
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
1838
+  (0.1ms) ROLLBACK
1839
+  (0.1ms) BEGIN
1840
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-26 12:24:23 -0300
1841
+ Processing by Apicasso::CrudController#index as HTML
1842
+ Parameters: {"resource"=>"used_model"}
1843
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "8c576f97dc1e48f1bdfc8389c31802f9"], ["LIMIT", 1]]
1844
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
1845
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
1846
+  (0.1ms) SAVEPOINT active_record_1
1847
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "13f2f0f5-df0d-4ea9-9fb4-09875eb33852"], ["LIMIT", 1]]
1848
+ Apicasso::Request Create (0.4ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "13f2f0f5-df0d-4ea9-9fb4-09875eb33852"], ["object", "{\"request\":{\"uuid\":\"171ef4c4-47ce-4d73-8f18-3a694b26c568\",\"url\":\"http://www.example.com/api/v1/used_model\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=8c576f97dc1e48f1bdfc8389c31802f9\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":5,\"active\":true,\"account_id\":8,\"unit_id\":0,\"brand\":\"Toyota\",\"name\":\"X3\",\"slug\":\"x3\",\"model\":\"Juke\",\"version\":\"3.2\",\"model_year\":2005,\"production_year\":\"2008\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"8812.52\",\"price_value\":9231,\"price\":\"1876.52\",\"category\":\"Hatchback\",\"transmission\":\"Automanual\",\"km_value\":40936712,\"km\":\"19445608\",\"plate\":\"5888\",\"color\":\"Black\",\"doors\":6,\"fuel\":9,\"fuel_text\":\"Diesel\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.053Z\",\"updated_at\":\"2018-11-08T17:38:23.053Z\"},{\"id\":8,\"active\":true,\"account_id\":2,\"unit_id\":4,\"brand\":\"Nissan\",\"name\":\"Prius\",\"slug\":\"prius\",\"model\":\"Accord\",\"version\":\"7.8\",\"model_year\":2009,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"7129.91\",\"price_value\":2488,\"price\":\"4001.48\",\"category\":\"SUV\",\"transmission\":\"Manual\",\"km_value\":80244772,\"km\":\"48716911\",\"plate\":\"9573\",\"color\":\"Grey\",\"doors\":4,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.069Z\",\"updated_at\":\"2018-11-08T17:38:23.069Z\"},{\"id\":9,\"active\":false,\"account_id\":7,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Focus\",\"slug\":\"focus\",\"model\":\"LaCrosse\",\"version\":\"1.7\",\"model_year\":2012,\"production_year\":\"2015\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5197.01\",\"price_value\":2028,\"price\":\"8301.38\",\"category\":\"Minivan\",\"transmission\":\"Automatic\",\"km_value\":34215256,\"km\":\"11433071\",\"plate\":\"5603\",\"color\":\"Violet\",\"doors\":1,\"fuel\":5,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.075Z\",\"updated_at\":\"2018-11-08T17:38:23.075Z\"},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"Ram\",\"slug\":\"cr-v\",\"model\":\"Prius\",\"version\":\"9.5\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1648.31\",\"price_value\":8432,\"price\":\"2056.82\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":47546237,\"km\":\"39672408\",\"plate\":\"4005\",\"color\":\"Yellow\",\"doors\":9,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.080Z\",\"updated_at\":\"2018-11-08T17:38:23.080Z\"},{\"id\":55,\"active\":true,\"account_id\":9,\"unit_id\":8,\"brand\":\"Lincoln\",\"name\":\"Audi A5\",\"slug\":\"sequi\",\"model\":\"Navigator\",\"version\":\"6.2\",\"model_year\":2006,\"production_year\":\"2005\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"4815.93\",\"price_value\":5898,\"price\":\"3045.47\",\"category\":\"Minivan\",\"transmission\":\"CVT\",\"km_value\":51961603,\"km\":\"90405822\",\"plate\":\"2981\",\"color\":\"Blue\",\"doors\":0,\"fuel\":2,\"fuel_text\":\"E-85/Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:24:22.498Z\",\"updated_at\":\"2018-11-26T15:24:22.498Z\"},{\"id\":2,\"active\":false,\"account_id\":1,\"unit_id\":5,\"brand\":\"Audi\",\"name\":\"dolor\",\"slug\":\"civic\",\"model\":\"A5\",\"version\":\"2.2\",\"model_year\":2016,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1294.34\",\"price_value\":8525,\"price\":\"5665.78\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":51090415,\"km\":\"96433648\",\"plate\":\"9510\",\"color\":\"Black\",\"doors\":8,\"fuel\":0,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.036Z\",\"updated_at\":\"2018-11-26T15:24:22.542Z\"},{\"id\":56,\"active\":false,\"account_id\":4,\"unit_id\":1,\"brand\":\"Dodge\",\"name\":\"Dodge Durango\",\"slug\":\"architecto\",\"model\":\"Cube\",\"version\":\"5.7\",\"model_year\":2018,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"6916.73\",\"price_value\":8701,\"price\":\"6745.15\",\"category\":\"Extended Cab Pickup\",\"transmission\":\"Automatic\",\"km_value\":59441538,\"km\":\"91103023\",\"plate\":\"2348\",\"color\":\"Red\",\"doors\":1,\"fuel\":0,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:24:22.959Z\",\"updated_at\":\"2018-11-26T15:24:22.959Z\"},{\"id\":7,\"active\":true,\"account_id\":5,\"unit_id\":8,\"brand\":\"Chevy\",\"name\":\"ipsa\",\"slug\":\"a7\",\"model\":\"Camero\",\"version\":\"5.3\",\"model_year\":2011,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"1580.64\",\"price_value\":1165,\"price\":\"8709.63\",\"category\":\"Convertible\",\"transmission\":\"CVT\",\"km_value\":52169327,\"km\":\"15231393\",\"plate\":\"2997\",\"color\":\"Green\",\"doors\":1,\"fuel\":3,\"fuel_text\":\"Gasoline Hybrid\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.064Z\",\"updated_at\":\"2018-11-26T15:24:23.010Z\"},{\"id\":52,\"active\":true,\"account_id\":9,\"unit_id\":7,\"brand\":\"Lincoln\",\"name\":\"Dodge Charger\",\"slug\":\"voluptatum\",\"model\":\"Navigator\",\"version\":\"8.0\",\"model_year\":2008,\"production_year\":\"2018\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"9964.29\",\"price_value\":1748,\"price\":\"9110.94\",\"category\":\"Minivan\",\"transmission\":\"Manual\",\"km_value\":65916645,\"km\":\"94890803\",\"plate\":\"5229\",\"color\":\"Orange\",\"doors\":5,\"fuel\":4,\"fuel_text\":\"Compressed Natural Gas\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:21:25.070Z\",\"updated_at\":\"2018-11-26T15:21:25.070Z\"},{\"id\":6,\"active\":true,\"account_id\":0,\"unit_id\":2,\"brand\":\"Honda\",\"name\":\"in\",\"slug\":\"durango-9d02071a-77c0-403b-bc46-c7161408f812\",\"model\":\"MKZ\",\"version\":\"4.9\",\"model_year\":2008,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7058.43\",\"price_value\":5808,\"price\":\"8617.65\",\"category\":\"Coupe\",\"transmission\":\"Automanual\",\"km_value\":43250550,\"km\":\"34167150\",\"plate\":\"6998\",\"color\":\"Green\",\"doors\":1,\"fuel\":9,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.058Z\",\"updated_at\":\"2018-11-26T15:21:25.108Z\"}],\"total\":10,\"total_pages\":1,\"last_page\":true,\"previous_page\":\"http://www.example.com/api/v1/used_model?page\",\"next_page\":\"http://www.example.com/api/v1/used_model?page\",\"out_of_bounds\":false,\"offset\":0}}}"], ["created_at", "2018-11-26 15:24:23.173977"], ["updated_at", "2018-11-26 15:24:23.173977"]]
1849
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1850
+ Completed 200 OK in 15ms (Views: 1.5ms | ActiveRecord: 2.1ms)
1851
+  (0.2ms) ROLLBACK
1852
+  (0.1ms) BEGIN
1853
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
1854
+ Started POST "/api/v1/used_model/" for 127.0.0.1 at 2018-11-26 12:24:23 -0300
1855
+ Processing by Apicasso::CrudController#create as HTML
1856
+ Parameters: {"used_model"=>{"active"=>"true", "account_id"=>"2", "unit_id"=>"8", "brand"=>"Chevy", "name"=>"Buick Riveria", "model"=>"Rogue", "version"=>"6.9", "model_year"=>"2013", "production_year"=>"2010", "kind"=>"car", "new_vehicle"=>"false", "old_price"=>"3075.73", "price_value"=>"4936.08", "price"=>"3408.82", "category"=>"Passenger Van", "transmission"=>"Automanual", "km_value"=>"96745870", "km"=>"68969318", "plate"=>"8372", "color"=>"Blue", "doors"=>"1", "fuel"=>"0", "fuel_text"=>"Diesel", "shielded"=>"true"}, "resource"=>"used_model"}
1857
+ Apicasso::Key Load (0.5ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "8c576f97dc1e48f1bdfc8389c31802f9"], ["LIMIT", 1]]
1858
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.5ms)
1859
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
1860
+  (0.1ms) ROLLBACK
1861
+  (0.1ms) BEGIN
1862
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
1863
+ Started PATCH "/api/v1/used_model/5" for 127.0.0.1 at 2018-11-26 12:24:23 -0300
1864
+ Processing by Apicasso::CrudController#update as HTML
1865
+ Parameters: {"used_model"=>{"name"=>"Lincoln MKX"}, "resource"=>"used_model", "id"=>"5"}
1866
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "8c576f97dc1e48f1bdfc8389c31802f9"], ["LIMIT", 1]]
1867
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "5"], ["LIMIT", 1]]
1868
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]]
1869
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.8ms)
1870
+  (0.1ms) ROLLBACK
1871
+  (0.1ms) BEGIN
1872
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
1873
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
1874
+ Started DELETE "/api/v1/used_model/6" for 127.0.0.1 at 2018-11-26 12:24:23 -0300
1875
+ Processing by Apicasso::CrudController#destroy as HTML
1876
+ Parameters: {"resource"=>"used_model", "id"=>"6"}
1877
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "8c576f97dc1e48f1bdfc8389c31802f9"], ["LIMIT", 1]]
1878
+ UsedModel Load (0.7ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "6"], ["LIMIT", 1]]
1879
+ UsedModel Load (0.6ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
1880
+ Completed 500 Internal Server Error in 7ms (ActiveRecord: 1.7ms)
1881
+  (0.4ms) SELECT COUNT(*) FROM "used_models"
1882
+  (0.2ms) ROLLBACK
1883
+  (0.2ms) BEGIN
1884
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-26 12:24:23 -0300
1885
+ Processing by Apicasso::CrudController#index as HTML
1886
+ Parameters: {"resource"=>"used_model"}
1887
+ Apicasso::Key Load (0.5ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "8612ee7c36b04fe0a3c8fa2b0aaf66f5"], ["LIMIT", 1]]
1888
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.5ms)
1889
+  (0.1ms) ROLLBACK
1890
+  (0.1ms) BEGIN
1891
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
1892
+ Started POST "/api/v1/used_model/" for 127.0.0.1 at 2018-11-26 12:24:23 -0300
1893
+ Processing by Apicasso::CrudController#create as HTML
1894
+ Parameters: {"used_model"=>{"active"=>"true", "account_id"=>"8", "unit_id"=>"2", "brand"=>"Lincoln", "name"=>"Honda Odyssey", "model"=>"Prius", "version"=>"5.1", "model_year"=>"2012", "production_year"=>"2010", "kind"=>"car", "new_vehicle"=>"true", "old_price"=>"7092.85", "price_value"=>"6210.84", "price"=>"5354.24", "category"=>"Extended Cab Pickup", "transmission"=>"Automatic", "km_value"=>"46838825", "km"=>"83334975", "plate"=>"9814", "color"=>"Black", "doors"=>"4", "fuel"=>"6", "fuel_text"=>"Gasoline", "shielded"=>"false"}, "resource"=>"used_model"}
1895
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "8612ee7c36b04fe0a3c8fa2b0aaf66f5"], ["LIMIT", 1]]
1896
+  (0.1ms) SAVEPOINT active_record_1
1897
+ UsedModel Exists (0.3ms) SELECT 1 AS one FROM "used_models" WHERE "used_models"."id" IS NOT NULL AND "used_models"."slug" = $1 LIMIT $2 [["slug", "honda-odyssey"], ["LIMIT", 1]]
1898
+ UsedModel Create (0.3ms) INSERT INTO "used_models" ("account_id", "unit_id", "brand", "name", "slug", "model", "version", "model_year", "production_year", "kind", "new_vehicle", "old_price", "price_value", "price", "category", "transmission", "km_value", "km", "plate", "color", "doors", "fuel", "fuel_text", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25) RETURNING "id" [["account_id", 8], ["unit_id", 2], ["brand", "Lincoln"], ["name", "Honda Odyssey"], ["slug", "honda-odyssey"], ["model", "Prius"], ["version", "5.1"], ["model_year", 2012], ["production_year", "2010"], ["kind", "car"], ["new_vehicle", true], ["old_price", "7092.85"], ["price_value", 6210], ["price", "5354.24"], ["category", "Extended Cab Pickup"], ["transmission", "Automatic"], ["km_value", 46838825], ["km", "83334975"], ["plate", "9814"], ["color", "Black"], ["doors", 4], ["fuel", 6], ["fuel_text", "Gasoline"], ["created_at", "2018-11-26 15:24:23.225211"], ["updated_at", "2018-11-26 15:24:23.225211"]]
1899
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1900
+  (0.1ms) SAVEPOINT active_record_1
1901
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "8a2e3037-f1b2-439b-92ca-1d1e801eabd8"], ["LIMIT", 1]]
1902
+ Apicasso::Request Create (0.6ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "8a2e3037-f1b2-439b-92ca-1d1e801eabd8"], ["object", "{\"request\":{\"uuid\":\"490a0ccd-a69d-48a0-8928-8ec49c317a75\",\"url\":\"http://www.example.com/api/v1/used_model/\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=8612ee7c36b04fe0a3c8fa2b0aaf66f5\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":201,\"body\":{\"id\":58,\"active\":true,\"account_id\":8,\"unit_id\":2,\"brand\":\"Lincoln\",\"name\":\"Honda Odyssey\",\"slug\":\"honda-odyssey\",\"model\":\"Prius\",\"version\":\"5.1\",\"model_year\":2012,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"7092.85\",\"price_value\":6210,\"price\":\"5354.24\",\"category\":\"Extended Cab Pickup\",\"transmission\":\"Automatic\",\"km_value\":46838825,\"km\":\"83334975\",\"plate\":\"9814\",\"color\":\"Black\",\"doors\":4,\"fuel\":6,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":false,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-26T15:24:23.225Z\",\"updated_at\":\"2018-11-26T15:24:23.225Z\"}}}"], ["created_at", "2018-11-26 15:24:23.229544"], ["updated_at", "2018-11-26 15:24:23.229544"]]
1903
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1904
+ Completed 201 Created in 13ms (Views: 0.1ms | ActiveRecord: 2.2ms)
1905
+  (0.4ms) SELECT COUNT(*) FROM "used_models"
1906
+  (0.2ms) ROLLBACK
1907
+  (0.1ms) BEGIN
1908
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
1909
+ Started PATCH "/api/v1/used_model/9" for 127.0.0.1 at 2018-11-26 12:24:23 -0300
1910
+ Processing by Apicasso::CrudController#update as HTML
1911
+ Parameters: {"used_model"=>{"name"=>"Toyota Prius"}, "resource"=>"used_model", "id"=>"9"}
1912
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "8612ee7c36b04fe0a3c8fa2b0aaf66f5"], ["LIMIT", 1]]
1913
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "9"], ["LIMIT", 1]]
1914
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]]
1915
+ Completed 500 Internal Server Error in 4ms (ActiveRecord: 1.1ms)
1916
+  (0.2ms) ROLLBACK
1917
+  (0.2ms) BEGIN
1918
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models"
1919
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
1920
+ Started DELETE "/api/v1/used_model/5" for 127.0.0.1 at 2018-11-26 12:24:23 -0300
1921
+ Processing by Apicasso::CrudController#destroy as HTML
1922
+ Parameters: {"resource"=>"used_model", "id"=>"5"}
1923
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "8612ee7c36b04fe0a3c8fa2b0aaf66f5"], ["LIMIT", 1]]
1924
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "5"], ["LIMIT", 1]]
1925
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]]
1926
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.9ms)
1927
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
1928
+  (0.1ms) ROLLBACK
1929
+  (0.3ms) BEGIN
1930
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-26 12:24:23 -0300
1931
+ Processing by Apicasso::CrudController#index as HTML
1932
+ Parameters: {"resource"=>"used_model"}
1933
+ Apicasso::Key Load (0.5ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "52599059014f487ebb4961ee0fcb2c87"], ["LIMIT", 1]]
1934
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.5ms)
1935
+  (0.1ms) ROLLBACK
1936
+  (0.1ms) BEGIN
1937
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
1938
+ Started POST "/api/v1/used_model/" for 127.0.0.1 at 2018-11-26 12:24:23 -0300
1939
+ Processing by Apicasso::CrudController#create as HTML
1940
+ Parameters: {"used_model"=>{"active"=>"false", "account_id"=>"2", "unit_id"=>"2", "brand"=>"Audi", "name"=>"Honda Odyssey", "model"=>"Navigator", "version"=>"6.1", "model_year"=>"2015", "production_year"=>"2010", "kind"=>"car", "new_vehicle"=>"false", "old_price"=>"7325.23", "price_value"=>"7216.32", "price"=>"8201.96", "category"=>"Cargo Van", "transmission"=>"Manual", "km_value"=>"86218701", "km"=>"81654335", "plate"=>"1948", "color"=>"Orange", "doors"=>"2", "fuel"=>"7", "fuel_text"=>"E-85/Gasoline", "shielded"=>"true"}, "resource"=>"used_model"}
1941
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "52599059014f487ebb4961ee0fcb2c87"], ["LIMIT", 1]]
1942
+ Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.3ms)
1943
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
1944
+  (0.1ms) ROLLBACK
1945
+  (0.1ms) BEGIN
1946
+ UsedModel Load (0.7ms) SELECT "used_models".* FROM "used_models"
1947
+ Started PATCH "/api/v1/used_model/8" for 127.0.0.1 at 2018-11-26 12:24:23 -0300
1948
+ Processing by Apicasso::CrudController#update as HTML
1949
+ Parameters: {"used_model"=>{"name"=>"Buick Encore"}, "resource"=>"used_model", "id"=>"8"}
1950
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "52599059014f487ebb4961ee0fcb2c87"], ["LIMIT", 1]]
1951
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "8"], ["LIMIT", 1]]
1952
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]]
1953
+  (0.2ms) SAVEPOINT active_record_1
1954
+ UsedModel Update (0.4ms) UPDATE "used_models" SET "name" = $1, "updated_at" = $2 WHERE "used_models"."id" = $3 [["name", "Buick Encore"], ["updated_at", "2018-11-26 15:24:23.282478"], ["id", 8]]
1955
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1956
+  (0.1ms) SAVEPOINT active_record_1
1957
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "8d8cfe96-c4d7-4001-b6a8-dca97cbf87f5"], ["LIMIT", 1]]
1958
+ Apicasso::Request Create (0.3ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "8d8cfe96-c4d7-4001-b6a8-dca97cbf87f5"], ["object", "{\"request\":{\"uuid\":\"93c1d211-7557-4612-a7fa-2193bc717167\",\"url\":\"http://www.example.com/api/v1/used_model/8\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=52599059014f487ebb4961ee0fcb2c87\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":8,\"name\":\"Buick Encore\",\"slug\":\"prius\",\"account_id\":2,\"unit_id\":4,\"active\":true,\"brand\":\"Nissan\",\"model\":\"Accord\",\"version\":\"7.8\",\"model_year\":2009,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"7129.91\",\"price_value\":2488,\"price\":\"4001.48\",\"category\":\"SUV\",\"transmission\":\"Manual\",\"km_value\":80244772,\"km\":\"48716911\",\"plate\":\"9573\",\"color\":\"Grey\",\"doors\":4,\"fuel\":2,\"fuel_text\":\"Gasoline\",\"note\":null,\"chassis\":null,\"shielded\":true,\"featured\":false,\"integrator\":null,\"ordination\":0,\"visits\":0,\"bait_id\":6,\"fipe_id\":null,\"identifier\":null,\"synced_at\":null,\"deleted_at\":null,\"created_at\":\"2018-11-08T17:38:23.069Z\",\"updated_at\":\"2018-11-26T15:24:23.282Z\"}}}"], ["created_at", "2018-11-26 15:24:23.286826"], ["updated_at", "2018-11-26 15:24:23.286826"]]
1959
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1960
+ Completed 200 OK in 14ms (Views: 0.1ms | ActiveRecord: 2.7ms)
1961
+  (0.2ms) ROLLBACK
1962
+  (0.1ms) BEGIN
1963
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
1964
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
1965
+ Started DELETE "/api/v1/used_model/6" for 127.0.0.1 at 2018-11-26 12:24:23 -0300
1966
+ Processing by Apicasso::CrudController#destroy as HTML
1967
+ Parameters: {"resource"=>"used_model", "id"=>"6"}
1968
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "52599059014f487ebb4961ee0fcb2c87"], ["LIMIT", 1]]
1969
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "6"], ["LIMIT", 1]]
1970
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
1971
+ Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.8ms)
1972
+  (0.4ms) SELECT COUNT(*) FROM "used_models"
1973
+  (0.2ms) ROLLBACK
1974
+  (0.1ms) BEGIN
1975
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-26 12:24:23 -0300
1976
+ Processing by Apicasso::CrudController#index as HTML
1977
+ Parameters: {"resource"=>"used_model"}
1978
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "9447d38fd31c4126af7801d160bb8b8c"], ["LIMIT", 1]]
1979
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.4ms)
1980
+  (0.3ms) ROLLBACK
1981
+  (0.1ms) BEGIN
1982
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
1983
+ Started POST "/api/v1/used_model/" for 127.0.0.1 at 2018-11-26 12:24:23 -0300
1984
+ Processing by Apicasso::CrudController#create as HTML
1985
+ Parameters: {"used_model"=>{"active"=>"true", "account_id"=>"1", "unit_id"=>"3", "brand"=>"Nissan", "name"=>"BMW 328i", "model"=>"A5", "version"=>"2.2", "model_year"=>"2012", "production_year"=>"2010", "kind"=>"car", "new_vehicle"=>"false", "old_price"=>"9349.22", "price_value"=>"9517.34", "price"=>"1031.64", "category"=>"Regular Cab Pickup", "transmission"=>"Automanual", "km_value"=>"69634689", "km"=>"50950208", "plate"=>"4706", "color"=>"Violet", "doors"=>"7", "fuel"=>"9", "fuel_text"=>"Gasoline Hybrid", "shielded"=>"false"}, "resource"=>"used_model"}
1986
+ Apicasso::Key Load (0.5ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "9447d38fd31c4126af7801d160bb8b8c"], ["LIMIT", 1]]
1987
+ Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.5ms)
1988
+  (0.5ms) SELECT COUNT(*) FROM "used_models"
1989
+  (1.0ms) ROLLBACK
1990
+  (0.2ms) BEGIN
1991
+ UsedModel Load (0.6ms) SELECT "used_models".* FROM "used_models"
1992
+ Started PATCH "/api/v1/used_model/2" for 127.0.0.1 at 2018-11-26 12:24:23 -0300
1993
+ Processing by Apicasso::CrudController#update as HTML
1994
+ Parameters: {"used_model"=>{"name"=>"Nissan Pathfiner"}, "resource"=>"used_model", "id"=>"2"}
1995
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "9447d38fd31c4126af7801d160bb8b8c"], ["LIMIT", 1]]
1996
+ UsedModel Load (12.7ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "2"], ["LIMIT", 1]]
1997
+ UsedModel Load (1.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]]
1998
+ Completed 500 Internal Server Error in 23ms (ActiveRecord: 14.6ms)
1999
+  (0.3ms) ROLLBACK
2000
+  (0.2ms) BEGIN
2001
+ UsedModel Load (1.1ms) SELECT "used_models".* FROM "used_models"
2002
+  (0.6ms) SELECT COUNT(*) FROM "used_models"
2003
+ Started DELETE "/api/v1/used_model/6" for 127.0.0.1 at 2018-11-26 12:24:23 -0300
2004
+ Processing by Apicasso::CrudController#destroy as HTML
2005
+ Parameters: {"resource"=>"used_model", "id"=>"6"}
2006
+ Apicasso::Key Load (0.8ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "9447d38fd31c4126af7801d160bb8b8c"], ["LIMIT", 1]]
2007
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "6"], ["LIMIT", 1]]
2008
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
2009
+  (0.2ms) SAVEPOINT active_record_1
2010
+ UsedModel Destroy (0.3ms) DELETE FROM "used_models" WHERE "used_models"."id" = $1 [["id", 6]]
2011
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2012
+ ActiveStorage::Attachment Load (0.3ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 [["record_id", 6], ["record_type", "UsedModel"], ["name", "files"]]
2013
+ ActiveStorage::Attachment Load (0.3ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 6], ["record_type", "UsedModel"], ["name", "file_highlighted"], ["LIMIT", 1]]
2014
+  (0.1ms) SAVEPOINT active_record_1
2015
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "8738e7bd-b53b-4b75-88f1-2d697ebee65c"], ["LIMIT", 1]]
2016
+ Apicasso::Request Create (0.4ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "8738e7bd-b53b-4b75-88f1-2d697ebee65c"], ["object", "{\"request\":{\"uuid\":\"707f0b5e-af93-402f-80d8-44e9a96fc363\",\"url\":\"http://www.example.com/api/v1/used_model/6\",\"headers\":{\"HTTP_HOST\":\"www.example.com\",\"HTTP_ACCEPT\":\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\",\"HTTP_AUTHORIZATION\":\"Token token=9447d38fd31c4126af7801d160bb8b8c\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":204,\"body\":\"\"}}"], ["created_at", "2018-11-26 15:24:23.376098"], ["updated_at", "2018-11-26 15:24:23.376098"]]
2017
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2018
+ Completed 204 No Content in 17ms (ActiveRecord: 3.7ms)
2019
+  (4.4ms) SELECT COUNT(*) FROM "used_models"
2020
+  (1.0ms) ROLLBACK
2021
+  (0.1ms) BEGIN
2022
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-26 12:24:23 -0300
2023
+ Processing by Apicasso::CrudController#index as HTML
2024
+ Parameters: {"resource"=>"used_model"}
2025
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "notavalidtoken"], ["LIMIT", 1]]
2026
+ Filter chain halted as :restrict_access rendered or redirected
2027
+ Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.3ms)
2028
+  (0.1ms) ROLLBACK
2029
+  (0.1ms) BEGIN
2030
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-26 12:24:23 -0300
2031
+ Processing by Apicasso::CrudController#index as HTML
2032
+ Parameters: {"resource"=>"used_model"}
2033
+ Filter chain halted as :restrict_access rendered or redirected
2034
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2035
+  (0.1ms) ROLLBACK
2036
+  (0.1ms) BEGIN
2037
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "apicasso_requests" DISABLE TRIGGER ALL;ALTER TABLE "used_models" DISABLE TRIGGER ALL;ALTER TABLE "active_storage_blobs" DISABLE TRIGGER ALL;ALTER TABLE "active_storage_attachments" DISABLE TRIGGER ALL;ALTER TABLE "apicasso_keys" DISABLE TRIGGER ALL
2038
+  (0.1ms) COMMIT
2039
+  (1.5ms)  SELECT schemaname || '.' || tablename
2040
+ FROM pg_tables
2041
+ WHERE
2042
+ tablename !~ '_prt_' AND
2043
+ tablename <> 'schema_migrations' AND tablename <> 'ar_internal_metadata' AND
2044
+ schemaname = ANY (current_schemas(false))
2045
+ 
2046
+  (1.0ms) select table_name from information_schema.views where table_schema = 'used_models_test'
2047
+  (9.6ms) TRUNCATE TABLE "apicasso_keys" RESTART IDENTITY CASCADE;
2048
+  (0.1ms) BEGIN
2049
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "apicasso_requests" ENABLE TRIGGER ALL;ALTER TABLE "used_models" ENABLE TRIGGER ALL;ALTER TABLE "active_storage_blobs" ENABLE TRIGGER ALL;ALTER TABLE "active_storage_attachments" ENABLE TRIGGER ALL;ALTER TABLE "apicasso_keys" ENABLE TRIGGER ALL
2050
+  (0.4ms) COMMIT