apicasso 0.6.5 → 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -9044,3 +9044,1795 @@ Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
9044
9044
   (0.1ms) BEGIN
9045
9045
   (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
9046
9046
   (0.1ms) COMMIT
9047
+  (0.2ms) BEGIN
9048
+ Apicasso::Key Exists (0.8ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "47e76b2f01e74c99b04e9c3c96f1f672"], ["LIMIT", 1]]
9049
+ Apicasso::Key Create (4.1ms) INSERT INTO "apicasso_keys" ("scope", "token", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["scope", "{\"manage\":{\"used_model\":true}}"], ["token", "47e76b2f01e74c99b04e9c3c96f1f672"], ["created_at", "2018-11-29 18:34:51.974634"], ["updated_at", "2018-11-29 18:34:51.974634"]]
9050
+  (3.4ms) COMMIT
9051
+  (0.2ms) BEGIN
9052
+ Apicasso::Key Exists (0.3ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "f96f6fd05ff447449ac375a904e0c23a"], ["LIMIT", 1]]
9053
+ 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", "f96f6fd05ff447449ac375a904e0c23a"], ["created_at", "2018-11-29 18:34:52.018685"], ["updated_at", "2018-11-29 18:34:52.018685"]]
9054
+  (1.7ms) COMMIT
9055
+  (0.7ms) SELECT COUNT(*) FROM "used_models"
9056
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models"
9057
+  (0.1ms) BEGIN
9058
+ Apicasso::Key Exists (0.2ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "292df522b43b4b94bad924e3e96cbb52"], ["LIMIT", 1]]
9059
+ 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", "292df522b43b4b94bad924e3e96cbb52"], ["created_at", "2018-11-29 18:34:52.706839"], ["updated_at", "2018-11-29 18:34:52.706839"]]
9060
+  (3.0ms) COMMIT
9061
+  (0.1ms) BEGIN
9062
+ Apicasso::Key Exists (0.2ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "a7ca2533237540e1bdb3db81b8706fd1"], ["LIMIT", 1]]
9063
+ 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", "a7ca2533237540e1bdb3db81b8706fd1"], ["created_at", "2018-11-29 18:34:52.714496"], ["updated_at", "2018-11-29 18:34:52.714496"]]
9064
+  (2.0ms) COMMIT
9065
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
9066
+ UsedModel Load (0.2ms) SELECT "used_models".* FROM "used_models"
9067
+  (0.1ms) BEGIN
9068
+ Apicasso::Key Exists (0.2ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "bd0905f1f4f84186b2fff86f6680bc5f"], ["LIMIT", 1]]
9069
+ 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", "bd0905f1f4f84186b2fff86f6680bc5f"], ["created_at", "2018-11-29 18:34:52.725941"], ["updated_at", "2018-11-29 18:34:52.725941"]]
9070
+  (1.8ms) COMMIT
9071
+  (0.1ms) BEGIN
9072
+ Apicasso::Key Exists (0.2ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "c6517e2c10a64a8481caef413a6af069"], ["LIMIT", 1]]
9073
+ Apicasso::Key Create (0.3ms) INSERT INTO "apicasso_keys" ("scope", "token", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["scope", "{\"read\":{\"used_model\":true}}"], ["token", "c6517e2c10a64a8481caef413a6af069"], ["created_at", "2018-11-29 18:34:52.730075"], ["updated_at", "2018-11-29 18:34:52.730075"]]
9074
+  (1.7ms) COMMIT
9075
+  (0.1ms) BEGIN
9076
+ Apicasso::Key Exists (0.2ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "1b2615b9e3064196b9cd2f72bf876f78"], ["LIMIT", 1]]
9077
+ 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", "1b2615b9e3064196b9cd2f72bf876f78"], ["created_at", "2018-11-29 18:34:52.734212"], ["updated_at", "2018-11-29 18:34:52.734212"]]
9078
+  (1.6ms) COMMIT
9079
+  (0.1ms) BEGIN
9080
+ Apicasso::Key Exists (0.2ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "07732a57ae484236848814102f334f10"], ["LIMIT", 1]]
9081
+ 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", "07732a57ae484236848814102f334f10"], ["created_at", "2018-11-29 18:34:52.738120"], ["updated_at", "2018-11-29 18:34:52.738120"]]
9082
+  (2.0ms) COMMIT
9083
+  (0.1ms) BEGIN
9084
+ Apicasso::Key Exists (0.3ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "f6e0b7854ee047e5b074bef583efb2bc"], ["LIMIT", 1]]
9085
+ 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", "f6e0b7854ee047e5b074bef583efb2bc"], ["created_at", "2018-11-29 18:34:52.742362"], ["updated_at", "2018-11-29 18:34:52.742362"]]
9086
+  (2.0ms) COMMIT
9087
+  (0.1ms) BEGIN
9088
+ 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", "ford-f150"], ["LIMIT", 1]]
9089
+  (0.1ms) ROLLBACK
9090
+  (0.2ms) BEGIN
9091
+  (7.7ms) SAVEPOINT active_record_1
9092
+  (2.3ms) ROLLBACK TO SAVEPOINT active_record_1
9093
+  (1.0ms) ROLLBACK
9094
+  (5.2ms) BEGIN
9095
+  (1.1ms) SAVEPOINT active_record_1
9096
+ UsedModel Exists (3.5ms) SELECT 1 AS one FROM "used_models" WHERE "used_models"."id" IS NOT NULL AND "used_models"."slug" = $1 LIMIT $2 [["slug", "chevy-camero"], ["LIMIT", 1]]
9097
+  (8.4ms) ROLLBACK TO SAVEPOINT active_record_1
9098
+  (3.3ms) ROLLBACK
9099
+  (0.7ms) BEGIN
9100
+  (5.7ms) SAVEPOINT active_record_1
9101
+ UsedModel Exists (17.1ms) SELECT 1 AS one FROM "used_models" WHERE "used_models"."id" IS NOT NULL AND "used_models"."slug" = $1 LIMIT $2 [["slug", "audi-a4"], ["LIMIT", 1]]
9102
+  (2.6ms) ROLLBACK TO SAVEPOINT active_record_1
9103
+  (0.5ms) ROLLBACK
9104
+  (0.3ms) BEGIN
9105
+ 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-29 15:34:53 -0300
9106
+ Processing by Apicasso::CrudController#index as HTML
9107
+ Parameters: {"group"=>{"by"=>"brand", "calculate"=>"count", "fields"=>"'OR 1=1;"}, "resource"=>"used_models"}
9108
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "47e76b2f01e74c99b04e9c3c96f1f672"], ["LIMIT", 1]]
9109
+ Completed 400 Bad Request in 10ms (ActiveRecord: 0.4ms)
9110
+  (0.2ms) ROLLBACK
9111
+  (0.1ms) BEGIN
9112
+ Started GET "/api/v1/used_models?per_page=-1&sort=%27OR+1%3D1%3B" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9113
+ Processing by Apicasso::CrudController#index as HTML
9114
+ Parameters: {"per_page"=>"-1", "sort"=>"'OR 1=1;", "resource"=>"used_models"}
9115
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "47e76b2f01e74c99b04e9c3c96f1f672"], ["LIMIT", 1]]
9116
+ Completed 400 Bad Request in 2ms (ActiveRecord: 0.2ms)
9117
+  (0.2ms) ROLLBACK
9118
+  (0.1ms) BEGIN
9119
+ Started GET "/api/v1/used_models?include=%27OR+1%3D1%3B" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9120
+ Processing by Apicasso::CrudController#index as HTML
9121
+ Parameters: {"include"=>"'OR 1=1;", "resource"=>"used_models"}
9122
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "47e76b2f01e74c99b04e9c3c96f1f672"], ["LIMIT", 1]]
9123
+ Completed 400 Bad Request in 3ms (ActiveRecord: 0.4ms)
9124
+  (6.7ms) ROLLBACK
9125
+  (0.6ms) BEGIN
9126
+ Started GET "/api/v1/admins" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9127
+ Processing by Apicasso::CrudController#index as HTML
9128
+ Parameters: {"resource"=>"admins"}
9129
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
9130
+  (0.5ms) ROLLBACK
9131
+  (0.2ms) BEGIN
9132
+ Started GET "/api/v1/used_models/1/admins" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9133
+ Processing by Apicasso::CrudController#nested_index as HTML
9134
+ Parameters: {"resource"=>"used_models", "id"=>"1", "nested"=>"admins"}
9135
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
9136
+  (0.1ms) ROLLBACK
9137
+  (0.1ms) BEGIN
9138
+ Started GET "/api/v1/used_models?include=admins" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9139
+ Processing by Apicasso::CrudController#index as HTML
9140
+ Parameters: {"include"=>"admins", "resource"=>"used_models"}
9141
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "47e76b2f01e74c99b04e9c3c96f1f672"], ["LIMIT", 1]]
9142
+ Completed 400 Bad Request in 2ms (ActiveRecord: 0.2ms)
9143
+  (0.1ms) ROLLBACK
9144
+ Started GET "/api/v1/used_models" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9145
+ Processing by Apicasso::CrudController#index as HTML
9146
+ Parameters: {"resource"=>"used_models"}
9147
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "f96f6fd05ff447449ac375a904e0c23a"], ["LIMIT", 1]]
9148
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.2ms)
9149
+ Started GET "/api/v1/used_models?per_page=-1" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9150
+ Processing by Apicasso::CrudController#index as HTML
9151
+ Parameters: {"per_page"=>"-1", "resource"=>"used_models"}
9152
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "f96f6fd05ff447449ac375a904e0c23a"], ["LIMIT", 1]]
9153
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.2ms)
9154
+ Started GET "/api/v1/used_models?per_page=9&page=1" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9155
+ Processing by Apicasso::CrudController#index as HTML
9156
+ Parameters: {"per_page"=>"9", "page"=>"1", "resource"=>"used_models"}
9157
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "f96f6fd05ff447449ac375a904e0c23a"], ["LIMIT", 1]]
9158
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.2ms)
9159
+ Started GET "/api/v1/used_models?q%5Bbrand_matches%5D=Chevy" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9160
+ Processing by Apicasso::CrudController#index as HTML
9161
+ Parameters: {"q"=>{"brand_matches"=>"Chevy"}, "resource"=>"used_models"}
9162
+ Apicasso::Key Load (0.1ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "f96f6fd05ff447449ac375a904e0c23a"], ["LIMIT", 1]]
9163
+ Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.1ms)
9164
+ Started GET "/api/v1/used_models?group%5Bby%5D=version&group%5Bcalculate%5D=count&group%5Bfields%5D=name" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9165
+ Processing by Apicasso::CrudController#index as HTML
9166
+ Parameters: {"group"=>{"by"=>"version", "calculate"=>"count", "fields"=>"name"}, "resource"=>"used_models"}
9167
+ Apicasso::Key Load (0.1ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "f96f6fd05ff447449ac375a904e0c23a"], ["LIMIT", 1]]
9168
+  (0.4ms) SELECT COUNT(*) AS count_all, "used_models"."version" AS used_models_version FROM "used_models" GROUP BY "used_models"."version"
9169
+  (0.1ms) BEGIN
9170
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "5966f08a-04e9-4ad6-bab3-316755da070f"], ["LIMIT", 1]]
9171
+ 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", "5966f08a-04e9-4ad6-bab3-316755da070f"], ["object", "{\"request\":{\"uuid\":\"39e2ef4d-6b0e-4425-a35f-a1eef1b4e16e\",\"url\":\"http://www.example.com/api/v1/used_models?group%5Bby%5D=version\\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=f96f6fd05ff447449ac375a904e0c23a\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"7.1\":1,\"4.9\":1,\"5.7\":1,\"9.5\":1,\"1.6\":1,\"6.2\":1,\"8.0\":1,\"3.2\":1,\"6.7\":1,\"1.8\":1}}}"], ["created_at", "2018-11-29 18:34:53.443980"], ["updated_at", "2018-11-29 18:34:53.443980"]]
9172
+  (2.3ms) COMMIT
9173
+ Completed 200 OK in 38ms (Views: 0.1ms | ActiveRecord: 6.9ms)
9174
+  (0.1ms) BEGIN
9175
+  (0.1ms) ROLLBACK
9176
+  (0.2ms) BEGIN
9177
+  (0.5ms) SELECT COUNT(*) AS count_all, "used_models"."version" AS used_models_version FROM "used_models" WHERE (name is NOT NULL) GROUP BY "used_models"."version"
9178
+  (0.2ms) ROLLBACK
9179
+ Started GET "/api/v1/used_models?per_page=-1&sort=%2Bbrand%2C%2Bmodel" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9180
+ Processing by Apicasso::CrudController#index as HTML
9181
+ Parameters: {"per_page"=>"-1", "sort"=>"+brand,+model", "resource"=>"used_models"}
9182
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "f96f6fd05ff447449ac375a904e0c23a"], ["LIMIT", 1]]
9183
+ Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.2ms)
9184
+ Started GET "/api/v1/used_models?select=transmission" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9185
+ Processing by Apicasso::CrudController#index as HTML
9186
+ Parameters: {"select"=>"transmission", "resource"=>"used_models"}
9187
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "f96f6fd05ff447449ac375a904e0c23a"], ["LIMIT", 1]]
9188
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.3ms)
9189
+ Started GET "/api/v1/used_models?include=files_blobs%2Cfiles_url" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9190
+ Processing by Apicasso::CrudController#index as HTML
9191
+ Parameters: {"include"=>"files_blobs,files_url", "resource"=>"used_models"}
9192
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "f96f6fd05ff447449ac375a904e0c23a"], ["LIMIT", 1]]
9193
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
9194
+ ActiveStorage::Attachment Load (1.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", 56], ["record_id", 75], ["record_id", 52], ["record_id", 6], ["record_id", 76], ["record_id", 55], ["record_id", 59], ["record_id", 64], ["record_id", 10], ["record_id", 71]]
9195
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
9196
+  (0.1ms) BEGIN
9197
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "5966f08a-04e9-4ad6-bab3-316755da070f"], ["LIMIT", 1]]
9198
+ 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", "5966f08a-04e9-4ad6-bab3-316755da070f"], ["object", "{\"request\":{\"uuid\":\"8f900853-5d50-4ed2-ae3a-edbffe67be9a\",\"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=f96f6fd05ff447449ac375a904e0c23a\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"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\",\"files_url\":[],\"files_blobs\":[]},{\"id\":75,\"active\":false,\"account_id\":4,\"unit_id\":1,\"brand\":\"Audi\",\"name\":\"perspiciatis\",\"slug\":\"soluta\",\"model\":\"Civic\",\"version\":\"6.7\",\"model_year\":2011,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5078.91\",\"price_value\":1036,\"price\":\"7524.09\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":32841362,\"km\":\"97067995\",\"plate\":\"9092\",\"color\":\"Black\",\"doors\":0,\"fuel\":5,\"fuel_text\":\"Electric\",\"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-29T17:08:39.419Z\",\"updated_at\":\"2018-11-29T17:08:39.455Z\",\"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\":[]},{\"id\":76,\"active\":true,\"account_id\":2,\"unit_id\":0,\"brand\":\"Audi\",\"name\":\"Dodge Charger\",\"slug\":\"illo\",\"model\":\"Pathfiner\",\"version\":\"1.8\",\"model_year\":2007,\"production_year\":\"2014\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7832.64\",\"price_value\":7314,\"price\":\"5603.87\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":10657765,\"km\":\"66431231\",\"plate\":\"2845\",\"color\":\"Black\",\"doors\":0,\"fuel\":4,\"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-29T17:08:39.793Z\",\"updated_at\":\"2018-11-29T17:08:39.793Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":55,\"active\":true,\"account_id\":9,\"unit_id\":8,\"brand\":\"Lincoln\",\"name\":\"aut\",\"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-27T18:53:14.244Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":59,\"active\":false,\"account_id\":9,\"unit_id\":2,\"brand\":\"Lincoln\",\"name\":\"dicta\",\"slug\":\"fugiat\",\"model\":\"LaCrosse\",\"version\":\"7.1\",\"model_year\":2006,\"production_year\":\"2009\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2459.95\",\"price_value\":1433,\"price\":\"8153.31\",\"category\":\"Sedan\",\"transmission\":\"Automatic\",\"km_value\":58031163,\"km\":\"10576914\",\"plate\":\"9364\",\"color\":\"White\",\"doors\":5,\"fuel\":9,\"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-27T18:53:14.156Z\",\"updated_at\":\"2018-11-29T17:08:39.824Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":64,\"active\":false,\"account_id\":6,\"unit_id\":8,\"brand\":\"Dodge\",\"name\":\"Nissan Cube\",\"slug\":\"saepe\",\"model\":\"Camero\",\"version\":\"1.6\",\"model_year\":2008,\"production_year\":\"2012\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"4215.59\",\"price_value\":3922,\"price\":\"7202.17\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":35224957,\"km\":\"63053188\",\"plate\":\"8393\",\"color\":\"Beige\",\"doors\":3,\"fuel\":9,\"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-27T18:54:02.772Z\",\"updated_at\":\"2018-11-27T18:54:02.772Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"qui\",\"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-27T18:57:19.290Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":71,\"active\":true,\"account_id\":9,\"unit_id\":4,\"brand\":\"Lincoln\",\"name\":\"Nissan Altima\",\"slug\":\"corporis\",\"model\":\"X3\",\"version\":\"3.2\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"5865.83\",\"price_value\":7997,\"price\":\"7773.78\",\"category\":\"Crew Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":43020803,\"km\":\"12848041\",\"plate\":\"8506\",\"color\":\"Yellow\",\"doors\":6,\"fuel\":1,\"fuel_text\":\"Electric\",\"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-29T16:53:44.672Z\",\"updated_at\":\"2018-11-29T16:53:44.672Z\",\"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-29 18:34:53.564138"], ["updated_at", "2018-11-29 18:34:53.564138"]]
9199
+  (2.1ms) COMMIT
9200
+ Completed 200 OK in 99ms (Views: 2.9ms | ActiveRecord: 6.6ms)
9201
+  (0.3ms) BEGIN
9202
+  (0.1ms) ROLLBACK
9203
+  (0.1ms) BEGIN
9204
+  (0.1ms) ROLLBACK
9205
+  (0.2ms) BEGIN
9206
+ Started GET "/api/v1/used_models?include=filess%2Cfilee" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9207
+ Processing by Apicasso::CrudController#index as HTML
9208
+ Parameters: {"include"=>"filess,filee", "resource"=>"used_models"}
9209
+ Apicasso::Key Load (0.1ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "f96f6fd05ff447449ac375a904e0c23a"], ["LIMIT", 1]]
9210
+ Completed 400 Bad Request in 2ms (ActiveRecord: 0.1ms)
9211
+  (0.1ms) ROLLBACK
9212
+ UsedModel Load (0.2ms) SELECT "used_models".* FROM "used_models"
9213
+ Started GET "/api/v1/used_models/71" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9214
+ Processing by Apicasso::CrudController#show as HTML
9215
+ Parameters: {"resource"=>"used_models", "id"=>"71"}
9216
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "f96f6fd05ff447449ac375a904e0c23a"], ["LIMIT", 1]]
9217
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "71"], ["LIMIT", 1]]
9218
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 71], ["LIMIT", 1]]
9219
+ Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.7ms)
9220
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
9221
+ Started GET "/api/v1/used_models/illo" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9222
+ Processing by Apicasso::CrudController#show as HTML
9223
+ Parameters: {"resource"=>"used_models", "id"=>"illo"}
9224
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "f96f6fd05ff447449ac375a904e0c23a"], ["LIMIT", 1]]
9225
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "illo"], ["LIMIT", 1]]
9226
+ Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.9ms)
9227
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
9228
+ Started POST "/api/v1/used_models/" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9229
+ Processing by Apicasso::CrudController#create as HTML
9230
+ Parameters: {"used_model"=>{"active"=>"true", "account_id"=>"1", "unit_id"=>"3", "brand"=>"Dodge", "name"=>"Lincoln MKS", "model"=>"S5", "slug"=>"esse", "version"=>"8.6", "model_year"=>"2011", "production_year"=>"2014", "kind"=>"car", "new_vehicle"=>"false", "old_price"=>"5580.68", "price_value"=>"5158.27", "price"=>"9907.06", "category"=>"Regular Cab Pickup", "transmission"=>"Automanual", "km_value"=>"93695100", "km"=>"71455621", "plate"=>"9994", "color"=>"Beige", "doors"=>"6", "fuel"=>"3", "fuel_text"=>"Gasoline Hybrid", "shielded"=>"false"}, "resource"=>"used_models"}
9231
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "f96f6fd05ff447449ac375a904e0c23a"], ["LIMIT", 1]]
9232
+  (0.3ms) BEGIN
9233
+ UsedModel Create (0.5ms) 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", 1], ["unit_id", 3], ["brand", "Dodge"], ["name", "Lincoln MKS"], ["slug", "esse"], ["model", "S5"], ["version", "8.6"], ["model_year", 2011], ["production_year", "2014"], ["kind", "car"], ["old_price", "5580.68"], ["price_value", 5158], ["price", "9907.06"], ["category", "Regular Cab Pickup"], ["transmission", "Automanual"], ["km_value", 93695100], ["km", "71455621"], ["plate", "9994"], ["color", "Beige"], ["doors", 6], ["fuel", 3], ["fuel_text", "Gasoline Hybrid"], ["created_at", "2018-11-29 18:34:53.622554"], ["updated_at", "2018-11-29 18:34:53.622554"]]
9234
+  (1.9ms) COMMIT
9235
+  (0.1ms) BEGIN
9236
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "5966f08a-04e9-4ad6-bab3-316755da070f"], ["LIMIT", 1]]
9237
+ Apicasso::Request Create (0.2ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "5966f08a-04e9-4ad6-bab3-316755da070f"], ["object", "{\"request\":{\"uuid\":\"f900057e-6327-4b62-899b-3b48c849fb04\",\"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=f96f6fd05ff447449ac375a904e0c23a\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":201,\"body\":{\"id\":79,\"active\":true,\"account_id\":1,\"unit_id\":3,\"brand\":\"Dodge\",\"name\":\"Lincoln MKS\",\"slug\":\"esse\",\"model\":\"S5\",\"version\":\"8.6\",\"model_year\":2011,\"production_year\":\"2014\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"5580.68\",\"price_value\":5158,\"price\":\"9907.06\",\"category\":\"Regular Cab Pickup\",\"transmission\":\"Automanual\",\"km_value\":93695100,\"km\":\"71455621\",\"plate\":\"9994\",\"color\":\"Beige\",\"doors\":6,\"fuel\":3,\"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-29T18:34:53.622Z\",\"updated_at\":\"2018-11-29T18:34:53.622Z\"}}}"], ["created_at", "2018-11-29 18:34:53.627944"], ["updated_at", "2018-11-29 18:34:53.627944"]]
9238
+  (2.0ms) COMMIT
9239
+ Completed 201 Created in 14ms (Views: 0.1ms | ActiveRecord: 5.5ms)
9240
+  (0.1ms) BEGIN
9241
+  (0.1ms) ROLLBACK
9242
+  (0.3ms) BEGIN
9243
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
9244
+  (0.1ms) ROLLBACK
9245
+  (0.1ms) BEGIN
9246
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "esse"], ["LIMIT", 1]]
9247
+  (0.1ms) ROLLBACK
9248
+  (0.1ms) BEGIN
9249
+ Started POST "/api/v1/used_models/" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9250
+ Processing by Apicasso::CrudController#create as HTML
9251
+ Parameters: {"used_model"=>{"slug"=>"cr-v"}, "resource"=>"used_models"}
9252
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "f96f6fd05ff447449ac375a904e0c23a"], ["LIMIT", 1]]
9253
+  (0.1ms) SAVEPOINT active_record_1
9254
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9255
+  (0.1ms) SAVEPOINT active_record_1
9256
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "5966f08a-04e9-4ad6-bab3-316755da070f"], ["LIMIT", 1]]
9257
+ 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", "5966f08a-04e9-4ad6-bab3-316755da070f"], ["object", "{\"request\":{\"uuid\":\"b342c966-d565-42b7-bc24-d60fd89f972f\",\"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=f96f6fd05ff447449ac375a904e0c23a\",\"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-29 18:34:53.645320"], ["updated_at", "2018-11-29 18:34:53.645320"]]
9258
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9259
+ Completed 422 Unprocessable Entity in 6ms (Views: 0.1ms | ActiveRecord: 1.2ms)
9260
+  (0.1ms) ROLLBACK
9261
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
9262
+ Started PATCH "/api/v1/used_models/75" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9263
+ Processing by Apicasso::CrudController#update as HTML
9264
+ Parameters: {"used_model"=>{"name"=>"ut"}, "resource"=>"used_models", "id"=>"75"}
9265
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "f96f6fd05ff447449ac375a904e0c23a"], ["LIMIT", 1]]
9266
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "75"], ["LIMIT", 1]]
9267
+ UsedModel Load (1.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 75], ["LIMIT", 1]]
9268
+  (0.1ms) BEGIN
9269
+ UsedModel Update (0.4ms) UPDATE "used_models" SET "name" = $1, "updated_at" = $2 WHERE "used_models"."id" = $3 [["name", "ut"], ["updated_at", "2018-11-29 18:34:53.664139"], ["id", 75]]
9270
+  (2.0ms) COMMIT
9271
+  (0.1ms) BEGIN
9272
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "5966f08a-04e9-4ad6-bab3-316755da070f"], ["LIMIT", 1]]
9273
+ 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", "5966f08a-04e9-4ad6-bab3-316755da070f"], ["object", "{\"request\":{\"uuid\":\"55641a24-64c4-4196-9b5e-6918fc6f12d6\",\"url\":\"http://www.example.com/api/v1/used_models/75\",\"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=f96f6fd05ff447449ac375a904e0c23a\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":75,\"name\":\"ut\",\"slug\":\"soluta\",\"account_id\":4,\"unit_id\":1,\"active\":false,\"brand\":\"Audi\",\"model\":\"Civic\",\"version\":\"6.7\",\"model_year\":2011,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5078.91\",\"price_value\":1036,\"price\":\"7524.09\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":32841362,\"km\":\"97067995\",\"plate\":\"9092\",\"color\":\"Black\",\"doors\":0,\"fuel\":5,\"fuel_text\":\"Electric\",\"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-29T17:08:39.419Z\",\"updated_at\":\"2018-11-29T18:34:53.664Z\"}}}"], ["created_at", "2018-11-29 18:34:53.669949"], ["updated_at", "2018-11-29 18:34:53.669949"]]
9274
+  (2.3ms) COMMIT
9275
+ Completed 200 OK in 24ms (Views: 0.1ms | ActiveRecord: 7.5ms)
9276
+  (0.1ms) BEGIN
9277
+  (0.1ms) ROLLBACK
9278
+  (0.1ms) BEGIN
9279
+ UsedModel Load (0.2ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 75], ["LIMIT", 1]]
9280
+  (0.1ms) ROLLBACK
9281
+  (0.1ms) BEGIN
9282
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
9283
+ Started PATCH "/api/v1/used_models/59" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9284
+ Processing by Apicasso::CrudController#update as HTML
9285
+ Parameters: {"used_model"=>{"unit_id"=>nil}, "resource"=>"used_models", "id"=>"59"}
9286
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "f96f6fd05ff447449ac375a904e0c23a"], ["LIMIT", 1]]
9287
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "59"], ["LIMIT", 1]]
9288
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 59], ["LIMIT", 1]]
9289
+  (0.1ms) SAVEPOINT active_record_1
9290
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
9291
+  (0.1ms) SAVEPOINT active_record_1
9292
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "5966f08a-04e9-4ad6-bab3-316755da070f"], ["LIMIT", 1]]
9293
+ 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", "5966f08a-04e9-4ad6-bab3-316755da070f"], ["object", "{\"request\":{\"uuid\":\"112e9a3b-d4d8-49a9-94a7-bdbf4cc01f6d\",\"url\":\"http://www.example.com/api/v1/used_models/59\",\"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=f96f6fd05ff447449ac375a904e0c23a\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":422,\"body\":{\"unit_id\":[\"can't be blank\"]}}}"], ["created_at", "2018-11-29 18:34:53.689219"], ["updated_at", "2018-11-29 18:34:53.689219"]]
9294
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9295
+ Completed 422 Unprocessable Entity in 12ms (Views: 0.5ms | ActiveRecord: 2.2ms)
9296
+  (0.1ms) ROLLBACK
9297
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
9298
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
9299
+ Started DELETE "/api/v1/used_models/55" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9300
+ Processing by Apicasso::CrudController#destroy as HTML
9301
+ Parameters: {"resource"=>"used_models", "id"=>"55"}
9302
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "f96f6fd05ff447449ac375a904e0c23a"], ["LIMIT", 1]]
9303
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "55"], ["LIMIT", 1]]
9304
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 55], ["LIMIT", 1]]
9305
+  (0.3ms) BEGIN
9306
+ UsedModel Destroy (0.2ms) DELETE FROM "used_models" WHERE "used_models"."id" = $1 [["id", 55]]
9307
+  (1.9ms) COMMIT
9308
+ 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", 55], ["record_type", "UsedModel"], ["name", "files"]]
9309
+ 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", 55], ["record_type", "UsedModel"], ["name", "file_highlighted"], ["LIMIT", 1]]
9310
+  (0.1ms) BEGIN
9311
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "5966f08a-04e9-4ad6-bab3-316755da070f"], ["LIMIT", 1]]
9312
+ 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", "5966f08a-04e9-4ad6-bab3-316755da070f"], ["object", "{\"request\":{\"uuid\":\"ec625fcb-d30b-47f7-866d-638b763735db\",\"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=f96f6fd05ff447449ac375a904e0c23a\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":204,\"body\":\"\"}}"], ["created_at", "2018-11-29 18:34:53.710436"], ["updated_at", "2018-11-29 18:34:53.710436"]]
9313
+  (2.0ms) COMMIT
9314
+ Completed 204 No Content in 17ms (ActiveRecord: 6.4ms)
9315
+  (0.1ms) BEGIN
9316
+  (0.2ms) ROLLBACK
9317
+  (0.1ms) BEGIN
9318
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
9319
+  (0.1ms) ROLLBACK
9320
+  (0.3ms) BEGIN
9321
+ UsedModel Load (0.6ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 55], ["LIMIT", 1]]
9322
+  (0.2ms) ROLLBACK
9323
+  (0.1ms) BEGIN
9324
+ 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-29 15:34:53 -0300
9325
+ Processing by Apicasso::CrudController#index as HTML
9326
+ Parameters: {"group"=>{"by"=>"brand", "calculate"=>"count", "fields"=>"'OR 1=1;"}, "resource"=>"used_model"}
9327
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "292df522b43b4b94bad924e3e96cbb52"], ["LIMIT", 1]]
9328
+ Completed 400 Bad Request in 2ms (ActiveRecord: 0.2ms)
9329
+  (0.1ms) ROLLBACK
9330
+  (0.1ms) BEGIN
9331
+ Started GET "/api/v1/used_model?per_page=-1&sort=%27OR+1%3D1%3B" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9332
+ Processing by Apicasso::CrudController#index as HTML
9333
+ Parameters: {"per_page"=>"-1", "sort"=>"'OR 1=1;", "resource"=>"used_model"}
9334
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "292df522b43b4b94bad924e3e96cbb52"], ["LIMIT", 1]]
9335
+ Completed 400 Bad Request in 2ms (ActiveRecord: 0.2ms)
9336
+  (0.3ms) ROLLBACK
9337
+  (0.1ms) BEGIN
9338
+ Started GET "/api/v1/used_model?include=%27OR+1%3D1%3B" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9339
+ Processing by Apicasso::CrudController#index as HTML
9340
+ Parameters: {"include"=>"'OR 1=1;", "resource"=>"used_model"}
9341
+ Apicasso::Key Load (0.5ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "292df522b43b4b94bad924e3e96cbb52"], ["LIMIT", 1]]
9342
+ Completed 400 Bad Request in 2ms (ActiveRecord: 0.5ms)
9343
+  (0.1ms) ROLLBACK
9344
+  (0.1ms) BEGIN
9345
+ Started GET "/api/v1/admins" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9346
+ Processing by Apicasso::CrudController#index as HTML
9347
+ Parameters: {"resource"=>"admins"}
9348
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
9349
+  (0.1ms) ROLLBACK
9350
+  (0.1ms) BEGIN
9351
+ Started GET "/api/v1/used_model/1/admins" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9352
+ Processing by Apicasso::CrudController#nested_index as HTML
9353
+ Parameters: {"resource"=>"used_model", "id"=>"1", "nested"=>"admins"}
9354
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
9355
+  (0.1ms) ROLLBACK
9356
+  (0.1ms) BEGIN
9357
+ Started GET "/api/v1/used_model?include=admins" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9358
+ Processing by Apicasso::CrudController#index as HTML
9359
+ Parameters: {"include"=>"admins", "resource"=>"used_model"}
9360
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "292df522b43b4b94bad924e3e96cbb52"], ["LIMIT", 1]]
9361
+ Completed 400 Bad Request in 2ms (ActiveRecord: 0.2ms)
9362
+  (0.2ms) ROLLBACK
9363
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9364
+ Processing by Apicasso::CrudController#index as HTML
9365
+ Parameters: {"resource"=>"used_model"}
9366
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "a7ca2533237540e1bdb3db81b8706fd1"], ["LIMIT", 1]]
9367
+ Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.2ms)
9368
+ Started GET "/api/v1/used_model?per_page=-1" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9369
+ Processing by Apicasso::CrudController#index as HTML
9370
+ Parameters: {"per_page"=>"-1", "resource"=>"used_model"}
9371
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "a7ca2533237540e1bdb3db81b8706fd1"], ["LIMIT", 1]]
9372
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.2ms)
9373
+ Started GET "/api/v1/used_model?per_page=2&page=2" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9374
+ Processing by Apicasso::CrudController#index as HTML
9375
+ Parameters: {"per_page"=>"2", "page"=>"2", "resource"=>"used_model"}
9376
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "a7ca2533237540e1bdb3db81b8706fd1"], ["LIMIT", 1]]
9377
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.3ms)
9378
+ Started GET "/api/v1/used_model?q%5Bbrand_matches%5D=Audi" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9379
+ Processing by Apicasso::CrudController#index as HTML
9380
+ Parameters: {"q"=>{"brand_matches"=>"Audi"}, "resource"=>"used_model"}
9381
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "a7ca2533237540e1bdb3db81b8706fd1"], ["LIMIT", 1]]
9382
+ Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.2ms)
9383
+ Started GET "/api/v1/used_model?group%5Bby%5D=slug&group%5Bcalculate%5D=count&group%5Bfields%5D=price" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9384
+ Processing by Apicasso::CrudController#index as HTML
9385
+ Parameters: {"group"=>{"by"=>"slug", "calculate"=>"count", "fields"=>"price"}, "resource"=>"used_model"}
9386
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "a7ca2533237540e1bdb3db81b8706fd1"], ["LIMIT", 1]]
9387
+  (0.5ms) SELECT COUNT(*) AS count_all, "used_models"."slug" AS used_models_slug FROM "used_models" GROUP BY "used_models"."slug"
9388
+  (0.2ms) BEGIN
9389
+ Apicasso::Key Load (0.5ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "0f2212fe-b543-4a4b-8d11-b7ce2882163f"], ["LIMIT", 1]]
9390
+ 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", "0f2212fe-b543-4a4b-8d11-b7ce2882163f"], ["object", "{\"request\":{\"uuid\":\"3f9242f7-672c-40de-acde-30250f95dc9a\",\"url\":\"http://www.example.com/api/v1/used_model?group%5Bby%5D=slug\\u0026group%5Bcalculate%5D=count\\u0026group%5Bfields%5D=price\",\"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=a7ca2533237540e1bdb3db81b8706fd1\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"corporis\":1,\"durango-9d02071a-77c0-403b-bc46-c7161408f812\":1,\"soluta\":1,\"illo\":1,\"saepe\":1,\"esse\":1,\"fugiat\":1,\"voluptatum\":1,\"cr-v\":1,\"architecto\":1}}}"], ["created_at", "2018-11-29 18:34:53.780236"], ["updated_at", "2018-11-29 18:34:53.780236"]]
9391
+  (2.4ms) COMMIT
9392
+ Completed 200 OK in 12ms (Views: 0.3ms | ActiveRecord: 4.3ms)
9393
+  (0.1ms) BEGIN
9394
+  (0.1ms) ROLLBACK
9395
+  (0.1ms) BEGIN
9396
+  (0.3ms) SELECT COUNT(*) AS count_all, "used_models"."slug" AS used_models_slug FROM "used_models" WHERE (price is NOT NULL) GROUP BY "used_models"."slug"
9397
+  (0.1ms) ROLLBACK
9398
+ Started GET "/api/v1/used_model?per_page=-1&sort=%2Bbrand%2C%2Bmodel" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9399
+ Processing by Apicasso::CrudController#index as HTML
9400
+ Parameters: {"per_page"=>"-1", "sort"=>"+brand,+model", "resource"=>"used_model"}
9401
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "a7ca2533237540e1bdb3db81b8706fd1"], ["LIMIT", 1]]
9402
+ Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.2ms)
9403
+ Started GET "/api/v1/used_model?select=name" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9404
+ Processing by Apicasso::CrudController#index as HTML
9405
+ Parameters: {"select"=>"name", "resource"=>"used_model"}
9406
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "a7ca2533237540e1bdb3db81b8706fd1"], ["LIMIT", 1]]
9407
+ Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.3ms)
9408
+ Started GET "/api/v1/used_model?include=files_blobs%2Cfiles_url" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9409
+ Processing by Apicasso::CrudController#index as HTML
9410
+ Parameters: {"include"=>"files_blobs,files_url", "resource"=>"used_model"}
9411
+ Apicasso::Key Load (0.5ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "a7ca2533237540e1bdb3db81b8706fd1"], ["LIMIT", 1]]
9412
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
9413
+ 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", 56], ["record_id", 52], ["record_id", 6], ["record_id", 76], ["record_id", 59], ["record_id", 64], ["record_id", 10], ["record_id", 79], ["record_id", 71], ["record_id", 75]]
9414
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
9415
+  (0.2ms) BEGIN
9416
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "0f2212fe-b543-4a4b-8d11-b7ce2882163f"], ["LIMIT", 1]]
9417
+ 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", "0f2212fe-b543-4a4b-8d11-b7ce2882163f"], ["object", "{\"request\":{\"uuid\":\"cab9f144-959c-4c0c-93c8-3a1f2843eca2\",\"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=a7ca2533237540e1bdb3db81b8706fd1\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"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\",\"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\":[]},{\"id\":76,\"active\":true,\"account_id\":2,\"unit_id\":0,\"brand\":\"Audi\",\"name\":\"Dodge Charger\",\"slug\":\"illo\",\"model\":\"Pathfiner\",\"version\":\"1.8\",\"model_year\":2007,\"production_year\":\"2014\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7832.64\",\"price_value\":7314,\"price\":\"5603.87\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":10657765,\"km\":\"66431231\",\"plate\":\"2845\",\"color\":\"Black\",\"doors\":0,\"fuel\":4,\"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-29T17:08:39.793Z\",\"updated_at\":\"2018-11-29T17:08:39.793Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":59,\"active\":false,\"account_id\":9,\"unit_id\":2,\"brand\":\"Lincoln\",\"name\":\"dicta\",\"slug\":\"fugiat\",\"model\":\"LaCrosse\",\"version\":\"7.1\",\"model_year\":2006,\"production_year\":\"2009\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2459.95\",\"price_value\":1433,\"price\":\"8153.31\",\"category\":\"Sedan\",\"transmission\":\"Automatic\",\"km_value\":58031163,\"km\":\"10576914\",\"plate\":\"9364\",\"color\":\"White\",\"doors\":5,\"fuel\":9,\"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-27T18:53:14.156Z\",\"updated_at\":\"2018-11-29T17:08:39.824Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":64,\"active\":false,\"account_id\":6,\"unit_id\":8,\"brand\":\"Dodge\",\"name\":\"Nissan Cube\",\"slug\":\"saepe\",\"model\":\"Camero\",\"version\":\"1.6\",\"model_year\":2008,\"production_year\":\"2012\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"4215.59\",\"price_value\":3922,\"price\":\"7202.17\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":35224957,\"km\":\"63053188\",\"plate\":\"8393\",\"color\":\"Beige\",\"doors\":3,\"fuel\":9,\"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-27T18:54:02.772Z\",\"updated_at\":\"2018-11-27T18:54:02.772Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"qui\",\"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-27T18:57:19.290Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":79,\"active\":true,\"account_id\":1,\"unit_id\":3,\"brand\":\"Dodge\",\"name\":\"Lincoln MKS\",\"slug\":\"esse\",\"model\":\"S5\",\"version\":\"8.6\",\"model_year\":2011,\"production_year\":\"2014\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"5580.68\",\"price_value\":5158,\"price\":\"9907.06\",\"category\":\"Regular Cab Pickup\",\"transmission\":\"Automanual\",\"km_value\":93695100,\"km\":\"71455621\",\"plate\":\"9994\",\"color\":\"Beige\",\"doors\":6,\"fuel\":3,\"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-29T18:34:53.622Z\",\"updated_at\":\"2018-11-29T18:34:53.622Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":71,\"active\":true,\"account_id\":9,\"unit_id\":4,\"brand\":\"Lincoln\",\"name\":\"Nissan Altima\",\"slug\":\"corporis\",\"model\":\"X3\",\"version\":\"3.2\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"5865.83\",\"price_value\":7997,\"price\":\"7773.78\",\"category\":\"Crew Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":43020803,\"km\":\"12848041\",\"plate\":\"8506\",\"color\":\"Yellow\",\"doors\":6,\"fuel\":1,\"fuel_text\":\"Electric\",\"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-29T16:53:44.672Z\",\"updated_at\":\"2018-11-29T16:53:44.672Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":75,\"active\":false,\"account_id\":4,\"unit_id\":1,\"brand\":\"Audi\",\"name\":\"ut\",\"slug\":\"soluta\",\"model\":\"Civic\",\"version\":\"6.7\",\"model_year\":2011,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5078.91\",\"price_value\":1036,\"price\":\"7524.09\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":32841362,\"km\":\"97067995\",\"plate\":\"9092\",\"color\":\"Black\",\"doors\":0,\"fuel\":5,\"fuel_text\":\"Electric\",\"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-29T17:08:39.419Z\",\"updated_at\":\"2018-11-29T18:34:53.664Z\",\"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-29 18:34:53.815619"], ["updated_at", "2018-11-29 18:34:53.815619"]]
9418
+  (2.2ms) COMMIT
9419
+ Completed 200 OK in 31ms (Views: 1.6ms | ActiveRecord: 5.1ms)
9420
+  (0.8ms) BEGIN
9421
+  (0.2ms) ROLLBACK
9422
+  (0.1ms) BEGIN
9423
+  (0.1ms) ROLLBACK
9424
+  (0.1ms) BEGIN
9425
+ Started GET "/api/v1/used_model?include=filess%2Cfilee" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9426
+ Processing by Apicasso::CrudController#index as HTML
9427
+ Parameters: {"include"=>"filess,filee", "resource"=>"used_model"}
9428
+ Apicasso::Key Load (0.1ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "a7ca2533237540e1bdb3db81b8706fd1"], ["LIMIT", 1]]
9429
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.1ms)
9430
+  (0.1ms) ROLLBACK
9431
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
9432
+ Started GET "/api/v1/used_model/71" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9433
+ Processing by Apicasso::CrudController#show as HTML
9434
+ Parameters: {"resource"=>"used_model", "id"=>"71"}
9435
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "a7ca2533237540e1bdb3db81b8706fd1"], ["LIMIT", 1]]
9436
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "71"], ["LIMIT", 1]]
9437
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 71], ["LIMIT", 1]]
9438
+ Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.9ms)
9439
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
9440
+ Started GET "/api/v1/used_model/illo" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9441
+ Processing by Apicasso::CrudController#show as HTML
9442
+ Parameters: {"resource"=>"used_model", "id"=>"illo"}
9443
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "a7ca2533237540e1bdb3db81b8706fd1"], ["LIMIT", 1]]
9444
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "illo"], ["LIMIT", 1]]
9445
+ Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.8ms)
9446
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
9447
+ Started POST "/api/v1/used_model/" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9448
+ Processing by Apicasso::CrudController#create as HTML
9449
+ Parameters: {"used_model"=>{"active"=>"false", "account_id"=>"9", "unit_id"=>"7", "brand"=>"Honda", "name"=>"Audi A4", "model"=>"Juke", "slug"=>"omnis", "version"=>"3.6", "model_year"=>"2012", "production_year"=>"2018", "kind"=>"car", "new_vehicle"=>"true", "old_price"=>"1789.96", "price_value"=>"5187.54", "price"=>"3696.06", "category"=>"Passenger Van", "transmission"=>"Automanual", "km_value"=>"83716526", "km"=>"71393622", "plate"=>"1397", "color"=>"Blue", "doors"=>"9", "fuel"=>"8", "fuel_text"=>"Gasoline Hybrid", "shielded"=>"false"}, "resource"=>"used_model"}
9450
+ Apicasso::Key Load (0.6ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "a7ca2533237540e1bdb3db81b8706fd1"], ["LIMIT", 1]]
9451
+  (0.1ms) BEGIN
9452
+ UsedModel Create (0.3ms) INSERT INTO "used_models" ("active", "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, $26) RETURNING "id" [["active", false], ["account_id", 9], ["unit_id", 7], ["brand", "Honda"], ["name", "Audi A4"], ["slug", "omnis"], ["model", "Juke"], ["version", "3.6"], ["model_year", 2012], ["production_year", "2018"], ["kind", "car"], ["new_vehicle", true], ["old_price", "1789.96"], ["price_value", 5187], ["price", "3696.06"], ["category", "Passenger Van"], ["transmission", "Automanual"], ["km_value", 83716526], ["km", "71393622"], ["plate", "1397"], ["color", "Blue"], ["doors", 9], ["fuel", 8], ["fuel_text", "Gasoline Hybrid"], ["created_at", "2018-11-29 18:34:53.867148"], ["updated_at", "2018-11-29 18:34:53.867148"]]
9453
+  (2.0ms) COMMIT
9454
+  (0.1ms) BEGIN
9455
+ Apicasso::Key Load (0.1ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "0f2212fe-b543-4a4b-8d11-b7ce2882163f"], ["LIMIT", 1]]
9456
+ 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", "0f2212fe-b543-4a4b-8d11-b7ce2882163f"], ["object", "{\"request\":{\"uuid\":\"1a6a67f7-22a0-453c-9f0f-31ea1abd922a\",\"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=a7ca2533237540e1bdb3db81b8706fd1\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":201,\"body\":{\"id\":80,\"active\":false,\"account_id\":9,\"unit_id\":7,\"brand\":\"Honda\",\"name\":\"Audi A4\",\"slug\":\"omnis\",\"model\":\"Juke\",\"version\":\"3.6\",\"model_year\":2012,\"production_year\":\"2018\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1789.96\",\"price_value\":5187,\"price\":\"3696.06\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":83716526,\"km\":\"71393622\",\"plate\":\"1397\",\"color\":\"Blue\",\"doors\":9,\"fuel\":8,\"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-29T18:34:53.867Z\",\"updated_at\":\"2018-11-29T18:34:53.867Z\"}}}"], ["created_at", "2018-11-29 18:34:53.872687"], ["updated_at", "2018-11-29 18:34:53.872687"]]
9457
+  (1.9ms) COMMIT
9458
+ Completed 201 Created in 14ms (Views: 0.1ms | ActiveRecord: 5.5ms)
9459
+  (0.1ms) BEGIN
9460
+  (0.1ms) ROLLBACK
9461
+  (0.1ms) BEGIN
9462
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
9463
+  (0.1ms) ROLLBACK
9464
+  (0.1ms) BEGIN
9465
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "omnis"], ["LIMIT", 1]]
9466
+  (0.1ms) ROLLBACK
9467
+  (0.3ms) BEGIN
9468
+ Started POST "/api/v1/used_model/" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9469
+ Processing by Apicasso::CrudController#create as HTML
9470
+ Parameters: {"used_model"=>{"slug"=>"cr-v"}, "resource"=>"used_model"}
9471
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "a7ca2533237540e1bdb3db81b8706fd1"], ["LIMIT", 1]]
9472
+  (0.1ms) SAVEPOINT active_record_1
9473
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9474
+  (0.1ms) SAVEPOINT active_record_1
9475
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "0f2212fe-b543-4a4b-8d11-b7ce2882163f"], ["LIMIT", 1]]
9476
+ Apicasso::Request Create (0.2ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "0f2212fe-b543-4a4b-8d11-b7ce2882163f"], ["object", "{\"request\":{\"uuid\":\"b397f7b5-e52b-4dd7-952e-d51f6dbb522d\",\"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=a7ca2533237540e1bdb3db81b8706fd1\",\"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-29 18:34:53.893149"], ["updated_at", "2018-11-29 18:34:53.893149"]]
9477
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9478
+ Completed 422 Unprocessable Entity in 7ms (Views: 0.1ms | ActiveRecord: 1.2ms)
9479
+  (0.1ms) ROLLBACK
9480
+ UsedModel Load (0.2ms) SELECT "used_models".* FROM "used_models"
9481
+ Started PATCH "/api/v1/used_model/75" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9482
+ Processing by Apicasso::CrudController#update as HTML
9483
+ Parameters: {"used_model"=>{"name"=>"fugit"}, "resource"=>"used_model", "id"=>"75"}
9484
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "a7ca2533237540e1bdb3db81b8706fd1"], ["LIMIT", 1]]
9485
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "75"], ["LIMIT", 1]]
9486
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 75], ["LIMIT", 1]]
9487
+  (0.2ms) BEGIN
9488
+ UsedModel Update (0.5ms) UPDATE "used_models" SET "name" = $1, "updated_at" = $2 WHERE "used_models"."id" = $3 [["name", "fugit"], ["updated_at", "2018-11-29 18:34:53.903543"], ["id", 75]]
9489
+  (2.2ms) COMMIT
9490
+  (0.1ms) BEGIN
9491
+ Apicasso::Key Load (0.1ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "0f2212fe-b543-4a4b-8d11-b7ce2882163f"], ["LIMIT", 1]]
9492
+ Apicasso::Request Create (0.2ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "0f2212fe-b543-4a4b-8d11-b7ce2882163f"], ["object", "{\"request\":{\"uuid\":\"8a077654-da87-45e0-9fad-0012343f570d\",\"url\":\"http://www.example.com/api/v1/used_model/75\",\"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=a7ca2533237540e1bdb3db81b8706fd1\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":75,\"name\":\"fugit\",\"slug\":\"soluta\",\"account_id\":4,\"unit_id\":1,\"active\":false,\"brand\":\"Audi\",\"model\":\"Civic\",\"version\":\"6.7\",\"model_year\":2011,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5078.91\",\"price_value\":1036,\"price\":\"7524.09\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":32841362,\"km\":\"97067995\",\"plate\":\"9092\",\"color\":\"Black\",\"doors\":0,\"fuel\":5,\"fuel_text\":\"Electric\",\"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-29T17:08:39.419Z\",\"updated_at\":\"2018-11-29T18:34:53.903Z\"}}}"], ["created_at", "2018-11-29 18:34:53.909980"], ["updated_at", "2018-11-29 18:34:53.909980"]]
9493
+  (1.8ms) COMMIT
9494
+ Completed 200 OK in 17ms (Views: 0.1ms | ActiveRecord: 6.0ms)
9495
+  (0.1ms) BEGIN
9496
+  (0.1ms) ROLLBACK
9497
+  (0.1ms) BEGIN
9498
+ UsedModel Load (0.2ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 75], ["LIMIT", 1]]
9499
+  (0.1ms) ROLLBACK
9500
+  (0.2ms) BEGIN
9501
+ UsedModel Load (0.6ms) SELECT "used_models".* FROM "used_models"
9502
+ Started PATCH "/api/v1/used_model/52" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9503
+ Processing by Apicasso::CrudController#update as HTML
9504
+ Parameters: {"used_model"=>{"unit_id"=>nil}, "resource"=>"used_model", "id"=>"52"}
9505
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "a7ca2533237540e1bdb3db81b8706fd1"], ["LIMIT", 1]]
9506
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "52"], ["LIMIT", 1]]
9507
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 52], ["LIMIT", 1]]
9508
+  (0.2ms) SAVEPOINT active_record_1
9509
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
9510
+  (0.1ms) SAVEPOINT active_record_1
9511
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "0f2212fe-b543-4a4b-8d11-b7ce2882163f"], ["LIMIT", 1]]
9512
+ 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", "0f2212fe-b543-4a4b-8d11-b7ce2882163f"], ["object", "{\"request\":{\"uuid\":\"d9eaa017-90ab-4dda-a5c3-9ea2aa078322\",\"url\":\"http://www.example.com/api/v1/used_model/52\",\"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=a7ca2533237540e1bdb3db81b8706fd1\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":422,\"body\":{\"unit_id\":[\"can't be blank\"]}}}"], ["created_at", "2018-11-29 18:34:53.930376"], ["updated_at", "2018-11-29 18:34:53.930376"]]
9513
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9514
+ Completed 422 Unprocessable Entity in 9ms (Views: 0.1ms | ActiveRecord: 2.0ms)
9515
+  (0.1ms) ROLLBACK
9516
+  (1.1ms) SELECT COUNT(*) FROM "used_models"
9517
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models"
9518
+ Started DELETE "/api/v1/used_model/6" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9519
+ Processing by Apicasso::CrudController#destroy as HTML
9520
+ Parameters: {"resource"=>"used_model", "id"=>"6"}
9521
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "a7ca2533237540e1bdb3db81b8706fd1"], ["LIMIT", 1]]
9522
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "6"], ["LIMIT", 1]]
9523
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
9524
+  (0.1ms) BEGIN
9525
+ UsedModel Destroy (0.3ms) DELETE FROM "used_models" WHERE "used_models"."id" = $1 [["id", 6]]
9526
+  (1.9ms) COMMIT
9527
+ 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", 6], ["record_type", "UsedModel"], ["name", "files"]]
9528
+ 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]]
9529
+  (0.1ms) BEGIN
9530
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "0f2212fe-b543-4a4b-8d11-b7ce2882163f"], ["LIMIT", 1]]
9531
+ 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", "0f2212fe-b543-4a4b-8d11-b7ce2882163f"], ["object", "{\"request\":{\"uuid\":\"67b93186-b0f3-4098-a359-d28006e82345\",\"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=a7ca2533237540e1bdb3db81b8706fd1\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":204,\"body\":\"\"}}"], ["created_at", "2018-11-29 18:34:53.951547"], ["updated_at", "2018-11-29 18:34:53.951547"]]
9532
+  (2.5ms) COMMIT
9533
+ Completed 204 No Content in 17ms (ActiveRecord: 7.2ms)
9534
+  (0.1ms) BEGIN
9535
+  (0.1ms) ROLLBACK
9536
+  (0.1ms) BEGIN
9537
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
9538
+  (0.1ms) ROLLBACK
9539
+  (0.1ms) BEGIN
9540
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
9541
+  (0.2ms) ROLLBACK
9542
+  (0.1ms) BEGIN
9543
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9544
+ Processing by Apicasso::CrudController#index as HTML
9545
+ Parameters: {"resource"=>"used_model"}
9546
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "bd0905f1f4f84186b2fff86f6680bc5f"], ["LIMIT", 1]]
9547
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.3ms)
9548
+  (0.8ms) ROLLBACK
9549
+  (0.3ms) BEGIN
9550
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
9551
+ Started POST "/api/v1/used_model/" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9552
+ Processing by Apicasso::CrudController#create as HTML
9553
+ Parameters: {"used_model"=>{"active"=>"false", "account_id"=>"6", "unit_id"=>"8", "brand"=>"Toyota", "name"=>"Chevy Malibu", "model"=>"Altima", "version"=>"8.4", "model_year"=>"2007", "production_year"=>"2009", "kind"=>"car", "new_vehicle"=>"true", "old_price"=>"6092.07", "price_value"=>"1934.51", "price"=>"7122.51", "category"=>"Hatchback", "transmission"=>"Automatic", "km_value"=>"66598555", "km"=>"84635589", "plate"=>"5710", "color"=>"Grey", "doors"=>"6", "fuel"=>"8", "fuel_text"=>"Gasoline", "shielded"=>"false"}, "resource"=>"used_model"}
9554
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "bd0905f1f4f84186b2fff86f6680bc5f"], ["LIMIT", 1]]
9555
+  (0.1ms) SAVEPOINT active_record_1
9556
+ UsedModel Exists (0.2ms) SELECT 1 AS one FROM "used_models" WHERE "used_models"."id" IS NOT NULL AND "used_models"."slug" = $1 LIMIT $2 [["slug", "chevy-malibu"], ["LIMIT", 1]]
9557
+ UsedModel Create (0.4ms) INSERT INTO "used_models" ("active", "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, $26) RETURNING "id" [["active", false], ["account_id", 6], ["unit_id", 8], ["brand", "Toyota"], ["name", "Chevy Malibu"], ["slug", "chevy-malibu"], ["model", "Altima"], ["version", "8.4"], ["model_year", 2007], ["production_year", "2009"], ["kind", "car"], ["new_vehicle", true], ["old_price", "6092.07"], ["price_value", 1934], ["price", "7122.51"], ["category", "Hatchback"], ["transmission", "Automatic"], ["km_value", 66598555], ["km", "84635589"], ["plate", "5710"], ["color", "Grey"], ["doors", 6], ["fuel", 8], ["fuel_text", "Gasoline"], ["created_at", "2018-11-29 18:34:53.977071"], ["updated_at", "2018-11-29 18:34:53.977071"]]
9558
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9559
+  (0.1ms) SAVEPOINT active_record_1
9560
+ Apicasso::Key Load (0.1ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "44ae68b0-d9a4-4622-999f-879c701115d4"], ["LIMIT", 1]]
9561
+ Apicasso::Request Create (0.2ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "44ae68b0-d9a4-4622-999f-879c701115d4"], ["object", "{\"request\":{\"uuid\":\"7f07d828-3ebc-4461-a2b3-a781a0fcb4f1\",\"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=bd0905f1f4f84186b2fff86f6680bc5f\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":201,\"body\":{\"id\":81,\"active\":false,\"account_id\":6,\"unit_id\":8,\"brand\":\"Toyota\",\"name\":\"Chevy Malibu\",\"slug\":\"chevy-malibu\",\"model\":\"Altima\",\"version\":\"8.4\",\"model_year\":2007,\"production_year\":\"2009\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"6092.07\",\"price_value\":1934,\"price\":\"7122.51\",\"category\":\"Hatchback\",\"transmission\":\"Automatic\",\"km_value\":66598555,\"km\":\"84635589\",\"plate\":\"5710\",\"color\":\"Grey\",\"doors\":6,\"fuel\":8,\"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-29T18:34:53.977Z\",\"updated_at\":\"2018-11-29T18:34:53.977Z\"}}}"], ["created_at", "2018-11-29 18:34:53.980365"], ["updated_at", "2018-11-29 18:34:53.980365"]]
9562
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9563
+ Completed 201 Created in 8ms (Views: 0.1ms | ActiveRecord: 1.6ms)
9564
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
9565
+  (0.1ms) ROLLBACK
9566
+  (0.3ms) BEGIN
9567
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
9568
+ Started PATCH "/api/v1/used_model/75" for 127.0.0.1 at 2018-11-29 15:34:53 -0300
9569
+ Processing by Apicasso::CrudController#update as HTML
9570
+ Parameters: {"used_model"=>{"name"=>"Dodge Ram"}, "resource"=>"used_model", "id"=>"75"}
9571
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "bd0905f1f4f84186b2fff86f6680bc5f"], ["LIMIT", 1]]
9572
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "75"], ["LIMIT", 1]]
9573
+ UsedModel Load (0.2ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 75], ["LIMIT", 1]]
9574
+  (0.1ms) SAVEPOINT active_record_1
9575
+ UsedModel Update (0.3ms) UPDATE "used_models" SET "name" = $1, "updated_at" = $2 WHERE "used_models"."id" = $3 [["name", "Dodge Ram"], ["updated_at", "2018-11-29 18:34:53.993634"], ["id", 75]]
9576
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9577
+  (0.1ms) SAVEPOINT active_record_1
9578
+ Apicasso::Key Load (0.1ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "44ae68b0-d9a4-4622-999f-879c701115d4"], ["LIMIT", 1]]
9579
+ Apicasso::Request Create (0.2ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "44ae68b0-d9a4-4622-999f-879c701115d4"], ["object", "{\"request\":{\"uuid\":\"f3ac0a07-9f00-4c51-ba33-084a74132a26\",\"url\":\"http://www.example.com/api/v1/used_model/75\",\"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=bd0905f1f4f84186b2fff86f6680bc5f\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":75,\"name\":\"Dodge Ram\",\"slug\":\"soluta\",\"account_id\":4,\"unit_id\":1,\"active\":false,\"brand\":\"Audi\",\"model\":\"Civic\",\"version\":\"6.7\",\"model_year\":2011,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5078.91\",\"price_value\":1036,\"price\":\"7524.09\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":32841362,\"km\":\"97067995\",\"plate\":\"9092\",\"color\":\"Black\",\"doors\":0,\"fuel\":5,\"fuel_text\":\"Electric\",\"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-29T17:08:39.419Z\",\"updated_at\":\"2018-11-29T18:34:53.993Z\"}}}"], ["created_at", "2018-11-29 18:34:53.996442"], ["updated_at", "2018-11-29 18:34:53.996442"]]
9580
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9581
+ Completed 200 OK in 8ms (Views: 0.1ms | ActiveRecord: 1.6ms)
9582
+  (0.1ms) ROLLBACK
9583
+  (0.1ms) BEGIN
9584
+ UsedModel Load (0.2ms) SELECT "used_models".* FROM "used_models"
9585
+  (0.9ms) SELECT COUNT(*) FROM "used_models"
9586
+ Started DELETE "/api/v1/used_model/64" for 127.0.0.1 at 2018-11-29 15:34:54 -0300
9587
+ Processing by Apicasso::CrudController#destroy as HTML
9588
+ Parameters: {"resource"=>"used_model", "id"=>"64"}
9589
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "bd0905f1f4f84186b2fff86f6680bc5f"], ["LIMIT", 1]]
9590
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "64"], ["LIMIT", 1]]
9591
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 64], ["LIMIT", 1]]
9592
+  (0.2ms) SAVEPOINT active_record_1
9593
+ UsedModel Destroy (0.4ms) DELETE FROM "used_models" WHERE "used_models"."id" = $1 [["id", 64]]
9594
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9595
+ 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", 64], ["record_type", "UsedModel"], ["name", "files"]]
9596
+ 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", 64], ["record_type", "UsedModel"], ["name", "file_highlighted"], ["LIMIT", 1]]
9597
+  (0.1ms) SAVEPOINT active_record_1
9598
+ Apicasso::Key Load (0.5ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "44ae68b0-d9a4-4622-999f-879c701115d4"], ["LIMIT", 1]]
9599
+ 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", "44ae68b0-d9a4-4622-999f-879c701115d4"], ["object", "{\"request\":{\"uuid\":\"6080d233-99a3-4312-97e9-bebafbcdc240\",\"url\":\"http://www.example.com/api/v1/used_model/64\",\"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=bd0905f1f4f84186b2fff86f6680bc5f\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":204,\"body\":\"\"}}"], ["created_at", "2018-11-29 18:34:54.018760"], ["updated_at", "2018-11-29 18:34:54.018760"]]
9600
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9601
+ Completed 204 No Content in 14ms (ActiveRecord: 3.8ms)
9602
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
9603
+  (0.1ms) ROLLBACK
9604
+  (0.1ms) BEGIN
9605
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-29 15:34:54 -0300
9606
+ Processing by Apicasso::CrudController#index as HTML
9607
+ Parameters: {"resource"=>"used_model"}
9608
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "c6517e2c10a64a8481caef413a6af069"], ["LIMIT", 1]]
9609
+ Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.2ms)
9610
+  (0.1ms) ROLLBACK
9611
+  (0.1ms) BEGIN
9612
+  (0.4ms) SELECT COUNT(*) FROM "used_models"
9613
+ Started POST "/api/v1/used_model/" for 127.0.0.1 at 2018-11-29 15:34:54 -0300
9614
+ Processing by Apicasso::CrudController#create as HTML
9615
+ Parameters: {"used_model"=>{"active"=>"false", "account_id"=>"3", "unit_id"=>"0", "brand"=>"Buick", "name"=>"Honda Accord", "model"=>"CR-V", "version"=>"8.1", "model_year"=>"2011", "production_year"=>"2013", "kind"=>"car", "new_vehicle"=>"true", "old_price"=>"2671.82", "price_value"=>"8862.55", "price"=>"8891.59", "category"=>"Wagon", "transmission"=>"CVT", "km_value"=>"22951726", "km"=>"61413648", "plate"=>"7087", "color"=>"Violet", "doors"=>"1", "fuel"=>"1", "fuel_text"=>"Gasoline Hybrid", "shielded"=>"true"}, "resource"=>"used_model"}
9616
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "c6517e2c10a64a8481caef413a6af069"], ["LIMIT", 1]]
9617
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.3ms)
9618
+  (2.3ms) SELECT COUNT(*) FROM "used_models"
9619
+  (0.5ms) ROLLBACK
9620
+  (0.2ms) BEGIN
9621
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models"
9622
+ Started PATCH "/api/v1/used_model/56" for 127.0.0.1 at 2018-11-29 15:34:54 -0300
9623
+ Processing by Apicasso::CrudController#update as HTML
9624
+ Parameters: {"used_model"=>{"name"=>"Audi A8"}, "resource"=>"used_model", "id"=>"56"}
9625
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "c6517e2c10a64a8481caef413a6af069"], ["LIMIT", 1]]
9626
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "56"], ["LIMIT", 1]]
9627
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 56], ["LIMIT", 1]]
9628
+ Completed 500 Internal Server Error in 5ms (ActiveRecord: 1.0ms)
9629
+  (0.7ms) ROLLBACK
9630
+  (0.1ms) BEGIN
9631
+ UsedModel Load (0.2ms) SELECT "used_models".* FROM "used_models"
9632
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
9633
+ Started DELETE "/api/v1/used_model/56" for 127.0.0.1 at 2018-11-29 15:34:54 -0300
9634
+ Processing by Apicasso::CrudController#destroy as HTML
9635
+ Parameters: {"resource"=>"used_model", "id"=>"56"}
9636
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "c6517e2c10a64a8481caef413a6af069"], ["LIMIT", 1]]
9637
+ UsedModel Load (0.2ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "56"], ["LIMIT", 1]]
9638
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 56], ["LIMIT", 1]]
9639
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.8ms)
9640
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
9641
+  (0.1ms) ROLLBACK
9642
+  (0.1ms) BEGIN
9643
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-29 15:34:54 -0300
9644
+ Processing by Apicasso::CrudController#index as HTML
9645
+ Parameters: {"resource"=>"used_model"}
9646
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "1b2615b9e3064196b9cd2f72bf876f78"], ["LIMIT", 1]]
9647
+ Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.3ms)
9648
+  (0.1ms) ROLLBACK
9649
+  (0.1ms) BEGIN
9650
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
9651
+ Started POST "/api/v1/used_model/" for 127.0.0.1 at 2018-11-29 15:34:54 -0300
9652
+ Processing by Apicasso::CrudController#create as HTML
9653
+ Parameters: {"used_model"=>{"active"=>"false", "account_id"=>"7", "unit_id"=>"0", "brand"=>"Buick", "name"=>"Nissan Altima", "model"=>"Verano", "version"=>"6.7", "model_year"=>"2012", "production_year"=>"2012", "kind"=>"car", "new_vehicle"=>"true", "old_price"=>"6415.16", "price_value"=>"1669.06", "price"=>"4457.14", "category"=>"Sedan", "transmission"=>"Automatic", "km_value"=>"61569158", "km"=>"49242161", "plate"=>"9930", "color"=>"Grey", "doors"=>"6", "fuel"=>"8", "fuel_text"=>"Gasoline", "shielded"=>"true"}, "resource"=>"used_model"}
9654
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "1b2615b9e3064196b9cd2f72bf876f78"], ["LIMIT", 1]]
9655
+  (0.6ms) SAVEPOINT active_record_1
9656
+ 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-altima"], ["LIMIT", 1]]
9657
+ UsedModel Create (0.5ms) INSERT INTO "used_models" ("active", "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", "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, $26, $27) RETURNING "id" [["active", false], ["account_id", 7], ["unit_id", 0], ["brand", "Buick"], ["name", "Nissan Altima"], ["slug", "nissan-altima"], ["model", "Verano"], ["version", "6.7"], ["model_year", 2012], ["production_year", "2012"], ["kind", "car"], ["new_vehicle", true], ["old_price", "6415.16"], ["price_value", 1669], ["price", "4457.14"], ["category", "Sedan"], ["transmission", "Automatic"], ["km_value", 61569158], ["km", "49242161"], ["plate", "9930"], ["color", "Grey"], ["doors", 6], ["fuel", 8], ["fuel_text", "Gasoline"], ["shielded", true], ["created_at", "2018-11-29 18:34:54.073359"], ["updated_at", "2018-11-29 18:34:54.073359"]]
9658
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9659
+  (0.2ms) SAVEPOINT active_record_1
9660
+ Apicasso::Key Load (0.1ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "0f64247f-8b3c-40cd-8ab4-c4e2e54d8f0d"], ["LIMIT", 1]]
9661
+ 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", "0f64247f-8b3c-40cd-8ab4-c4e2e54d8f0d"], ["object", "{\"request\":{\"uuid\":\"9f15c6bc-c708-4488-86ba-90f2c2ee351e\",\"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=1b2615b9e3064196b9cd2f72bf876f78\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":201,\"body\":{\"id\":82,\"active\":false,\"account_id\":7,\"unit_id\":0,\"brand\":\"Buick\",\"name\":\"Nissan Altima\",\"slug\":\"nissan-altima\",\"model\":\"Verano\",\"version\":\"6.7\",\"model_year\":2012,\"production_year\":\"2012\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"6415.16\",\"price_value\":1669,\"price\":\"4457.14\",\"category\":\"Sedan\",\"transmission\":\"Automatic\",\"km_value\":61569158,\"km\":\"49242161\",\"plate\":\"9930\",\"color\":\"Grey\",\"doors\":6,\"fuel\":8,\"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-29T18:34:54.073Z\",\"updated_at\":\"2018-11-29T18:34:54.073Z\"}}}"], ["created_at", "2018-11-29 18:34:54.079748"], ["updated_at", "2018-11-29 18:34:54.079748"]]
9662
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9663
+ Completed 201 Created in 16ms (Views: 0.2ms | ActiveRecord: 2.8ms)
9664
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
9665
+  (0.1ms) ROLLBACK
9666
+  (0.1ms) BEGIN
9667
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models"
9668
+ Started PATCH "/api/v1/used_model/10" for 127.0.0.1 at 2018-11-29 15:34:54 -0300
9669
+ Processing by Apicasso::CrudController#update as HTML
9670
+ Parameters: {"used_model"=>{"name"=>"Nissan Juke"}, "resource"=>"used_model", "id"=>"10"}
9671
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "1b2615b9e3064196b9cd2f72bf876f78"], ["LIMIT", 1]]
9672
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "10"], ["LIMIT", 1]]
9673
+ UsedModel Load (0.6ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]]
9674
+ Completed 500 Internal Server Error in 5ms (ActiveRecord: 1.3ms)
9675
+  (0.2ms) ROLLBACK
9676
+  (0.1ms) BEGIN
9677
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
9678
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
9679
+ Started DELETE "/api/v1/used_model/59" for 127.0.0.1 at 2018-11-29 15:34:54 -0300
9680
+ Processing by Apicasso::CrudController#destroy as HTML
9681
+ Parameters: {"resource"=>"used_model", "id"=>"59"}
9682
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "1b2615b9e3064196b9cd2f72bf876f78"], ["LIMIT", 1]]
9683
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "59"], ["LIMIT", 1]]
9684
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 59], ["LIMIT", 1]]
9685
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.9ms)
9686
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
9687
+  (0.1ms) ROLLBACK
9688
+  (0.1ms) BEGIN
9689
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-29 15:34:54 -0300
9690
+ Processing by Apicasso::CrudController#index as HTML
9691
+ Parameters: {"resource"=>"used_model"}
9692
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "07732a57ae484236848814102f334f10"], ["LIMIT", 1]]
9693
+ Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.2ms)
9694
+  (0.1ms) ROLLBACK
9695
+  (0.1ms) BEGIN
9696
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
9697
+ Started POST "/api/v1/used_model/" for 127.0.0.1 at 2018-11-29 15:34:54 -0300
9698
+ Processing by Apicasso::CrudController#create as HTML
9699
+ Parameters: {"used_model"=>{"active"=>"true", "account_id"=>"8", "unit_id"=>"9", "brand"=>"Honda", "name"=>"Honda Civic", "model"=>"MKX", "version"=>"1.4", "model_year"=>"2009", "production_year"=>"2005", "kind"=>"car", "new_vehicle"=>"true", "old_price"=>"7673.21", "price_value"=>"2775.62", "price"=>"8658.04", "category"=>"Passenger Van", "transmission"=>"Automanual", "km_value"=>"60789083", "km"=>"29663124", "plate"=>"4148", "color"=>"Yellow", "doors"=>"5", "fuel"=>"7", "fuel_text"=>"Compressed Natural Gas", "shielded"=>"true"}, "resource"=>"used_model"}
9700
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "07732a57ae484236848814102f334f10"], ["LIMIT", 1]]
9701
+ Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.3ms)
9702
+  (0.5ms) SELECT COUNT(*) FROM "used_models"
9703
+  (0.4ms) ROLLBACK
9704
+  (0.1ms) BEGIN
9705
+ UsedModel Load (0.2ms) SELECT "used_models".* FROM "used_models"
9706
+ Started PATCH "/api/v1/used_model/71" for 127.0.0.1 at 2018-11-29 15:34:54 -0300
9707
+ Processing by Apicasso::CrudController#update as HTML
9708
+ Parameters: {"used_model"=>{"name"=>"Buick Verano"}, "resource"=>"used_model", "id"=>"71"}
9709
+ Apicasso::Key Load (0.1ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "07732a57ae484236848814102f334f10"], ["LIMIT", 1]]
9710
+ UsedModel Load (0.2ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "71"], ["LIMIT", 1]]
9711
+ UsedModel Load (0.2ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 71], ["LIMIT", 1]]
9712
+  (0.1ms) SAVEPOINT active_record_1
9713
+ UsedModel Update (0.2ms) UPDATE "used_models" SET "name" = $1, "updated_at" = $2 WHERE "used_models"."id" = $3 [["name", "Buick Verano"], ["updated_at", "2018-11-29 18:34:54.127789"], ["id", 71]]
9714
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9715
+  (0.1ms) SAVEPOINT active_record_1
9716
+ Apicasso::Key Load (0.1ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "05d760c8-b420-4e0a-9808-95f7e5a3b166"], ["LIMIT", 1]]
9717
+ 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", "05d760c8-b420-4e0a-9808-95f7e5a3b166"], ["object", "{\"request\":{\"uuid\":\"4e228633-b5fb-4962-a38a-9f23208ca4c7\",\"url\":\"http://www.example.com/api/v1/used_model/71\",\"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=07732a57ae484236848814102f334f10\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":71,\"name\":\"Buick Verano\",\"slug\":\"corporis\",\"account_id\":9,\"unit_id\":4,\"active\":true,\"brand\":\"Lincoln\",\"model\":\"X3\",\"version\":\"3.2\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"5865.83\",\"price_value\":7997,\"price\":\"7773.78\",\"category\":\"Crew Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":43020803,\"km\":\"12848041\",\"plate\":\"8506\",\"color\":\"Yellow\",\"doors\":6,\"fuel\":1,\"fuel_text\":\"Electric\",\"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-29T16:53:44.672Z\",\"updated_at\":\"2018-11-29T18:34:54.127Z\"}}}"], ["created_at", "2018-11-29 18:34:54.130709"], ["updated_at", "2018-11-29 18:34:54.130709"]]
9718
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9719
+ Completed 200 OK in 10ms (Views: 0.1ms | ActiveRecord: 2.0ms)
9720
+  (0.3ms) ROLLBACK
9721
+  (0.4ms) BEGIN
9722
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models"
9723
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
9724
+ Started DELETE "/api/v1/used_model/75" for 127.0.0.1 at 2018-11-29 15:34:54 -0300
9725
+ Processing by Apicasso::CrudController#destroy as HTML
9726
+ Parameters: {"resource"=>"used_model", "id"=>"75"}
9727
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "07732a57ae484236848814102f334f10"], ["LIMIT", 1]]
9728
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "75"], ["LIMIT", 1]]
9729
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 75], ["LIMIT", 1]]
9730
+ Completed 500 Internal Server Error in 4ms (ActiveRecord: 1.3ms)
9731
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
9732
+  (0.1ms) ROLLBACK
9733
+  (0.1ms) BEGIN
9734
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-29 15:34:54 -0300
9735
+ Processing by Apicasso::CrudController#index as HTML
9736
+ Parameters: {"resource"=>"used_model"}
9737
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "f6e0b7854ee047e5b074bef583efb2bc"], ["LIMIT", 1]]
9738
+ Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.2ms)
9739
+  (0.2ms) ROLLBACK
9740
+  (0.1ms) BEGIN
9741
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
9742
+ Started POST "/api/v1/used_model/" for 127.0.0.1 at 2018-11-29 15:34:54 -0300
9743
+ Processing by Apicasso::CrudController#create as HTML
9744
+ Parameters: {"used_model"=>{"active"=>"false", "account_id"=>"1", "unit_id"=>"9", "brand"=>"Chevy", "name"=>"Lincoln MKS", "model"=>"MKX", "version"=>"7.0", "model_year"=>"2005", "production_year"=>"2011", "kind"=>"car", "new_vehicle"=>"false", "old_price"=>"6986.81", "price_value"=>"4619.31", "price"=>"5530.32", "category"=>"Regular Cab Pickup", "transmission"=>"Automanual", "km_value"=>"49530356", "km"=>"29900630", "plate"=>"7999", "color"=>"Beige", "doors"=>"3", "fuel"=>"8", "fuel_text"=>"Electric", "shielded"=>"false"}, "resource"=>"used_model"}
9745
+ Apicasso::Key Load (0.6ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "f6e0b7854ee047e5b074bef583efb2bc"], ["LIMIT", 1]]
9746
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.6ms)
9747
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
9748
+  (0.1ms) ROLLBACK
9749
+  (0.1ms) BEGIN
9750
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
9751
+ Started PATCH "/api/v1/used_model/75" for 127.0.0.1 at 2018-11-29 15:34:54 -0300
9752
+ Processing by Apicasso::CrudController#update as HTML
9753
+ Parameters: {"used_model"=>{"name"=>"Chevy Malibu"}, "resource"=>"used_model", "id"=>"75"}
9754
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "f6e0b7854ee047e5b074bef583efb2bc"], ["LIMIT", 1]]
9755
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "75"], ["LIMIT", 1]]
9756
+ UsedModel Load (0.2ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 75], ["LIMIT", 1]]
9757
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.6ms)
9758
+  (0.1ms) ROLLBACK
9759
+  (0.1ms) BEGIN
9760
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
9761
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
9762
+ Started DELETE "/api/v1/used_model/52" for 127.0.0.1 at 2018-11-29 15:34:54 -0300
9763
+ Processing by Apicasso::CrudController#destroy as HTML
9764
+ Parameters: {"resource"=>"used_model", "id"=>"52"}
9765
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "f6e0b7854ee047e5b074bef583efb2bc"], ["LIMIT", 1]]
9766
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "52"], ["LIMIT", 1]]
9767
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 52], ["LIMIT", 1]]
9768
+  (0.3ms) SAVEPOINT active_record_1
9769
+ UsedModel Destroy (0.4ms) DELETE FROM "used_models" WHERE "used_models"."id" = $1 [["id", 52]]
9770
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9771
+ 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", 52], ["record_type", "UsedModel"], ["name", "files"]]
9772
+ 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", 52], ["record_type", "UsedModel"], ["name", "file_highlighted"], ["LIMIT", 1]]
9773
+  (0.4ms) SAVEPOINT active_record_1
9774
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "bb1f995f-2d3d-4da5-8d9f-a7bd21c88f26"], ["LIMIT", 1]]
9775
+ 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", "bb1f995f-2d3d-4da5-8d9f-a7bd21c88f26"], ["object", "{\"request\":{\"uuid\":\"7a0d3f75-7c5a-4345-a81b-9afc492bc4b7\",\"url\":\"http://www.example.com/api/v1/used_model/52\",\"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=f6e0b7854ee047e5b074bef583efb2bc\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":204,\"body\":\"\"}}"], ["created_at", "2018-11-29 18:34:54.186452"], ["updated_at", "2018-11-29 18:34:54.186452"]]
9776
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9777
+ Completed 204 No Content in 16ms (ActiveRecord: 3.7ms)
9778
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
9779
+  (0.1ms) ROLLBACK
9780
+  (0.1ms) BEGIN
9781
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-29 15:34:54 -0300
9782
+ Processing by Apicasso::CrudController#index as HTML
9783
+ Parameters: {"resource"=>"used_model"}
9784
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "notavalidtoken"], ["LIMIT", 1]]
9785
+ Filter chain halted as :restrict_access rendered or redirected
9786
+ Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms)
9787
+  (0.1ms) ROLLBACK
9788
+  (0.1ms) BEGIN
9789
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-29 15:34:54 -0300
9790
+ Processing by Apicasso::CrudController#index as HTML
9791
+ Parameters: {"resource"=>"used_model"}
9792
+ Filter chain halted as :restrict_access rendered or redirected
9793
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
9794
+  (0.1ms) ROLLBACK
9795
+  (0.1ms) BEGIN
9796
+  (0.4ms) 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
9797
+  (0.1ms) COMMIT
9798
+  (1.7ms)  SELECT schemaname || '.' || tablename
9799
+ FROM pg_tables
9800
+ WHERE
9801
+ tablename !~ '_prt_' AND
9802
+ tablename <> 'schema_migrations' AND tablename <> 'ar_internal_metadata' AND
9803
+ schemaname = ANY (current_schemas(false))
9804
+ 
9805
+  (1.0ms) select table_name from information_schema.views where table_schema = 'used_models_test'
9806
+  (12.5ms) TRUNCATE TABLE "apicasso_keys" RESTART IDENTITY CASCADE;
9807
+  (0.1ms) BEGIN
9808
+  (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
9809
+  (0.1ms) COMMIT
9810
+  (0.2ms) BEGIN
9811
+ Apicasso::Key Exists (0.7ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "5c2c12ae6850401d823f243833e5006e"], ["LIMIT", 1]]
9812
+ Apicasso::Key Create (1.5ms) INSERT INTO "apicasso_keys" ("scope", "token", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["scope", "{\"manage\":{\"used_model\":true}}"], ["token", "5c2c12ae6850401d823f243833e5006e"], ["created_at", "2018-11-29 18:41:30.385022"], ["updated_at", "2018-11-29 18:41:30.385022"]]
9813
+  (11.0ms) COMMIT
9814
+  (0.1ms) BEGIN
9815
+ Apicasso::Key Exists (0.2ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "82678d3fbf5e45fa8e2292347fb349db"], ["LIMIT", 1]]
9816
+ 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", "82678d3fbf5e45fa8e2292347fb349db"], ["created_at", "2018-11-29 18:41:30.428879"], ["updated_at", "2018-11-29 18:41:30.428879"]]
9817
+  (1.8ms) COMMIT
9818
+  (0.5ms) SELECT COUNT(*) FROM "used_models"
9819
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models"
9820
+  (0.1ms) BEGIN
9821
+ Apicasso::Key Exists (0.3ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "b02a73f7d8354d99ae13db9da9b914b4"], ["LIMIT", 1]]
9822
+ 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", "b02a73f7d8354d99ae13db9da9b914b4"], ["created_at", "2018-11-29 18:41:30.902627"], ["updated_at", "2018-11-29 18:41:30.902627"]]
9823
+  (3.8ms) COMMIT
9824
+  (0.2ms) BEGIN
9825
+ Apicasso::Key Exists (0.3ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "3faafd4d089e41179dc0bad9de2ca705"], ["LIMIT", 1]]
9826
+ 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", "3faafd4d089e41179dc0bad9de2ca705"], ["created_at", "2018-11-29 18:41:30.911488"], ["updated_at", "2018-11-29 18:41:30.911488"]]
9827
+  (2.1ms) COMMIT
9828
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
9829
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
9830
+  (0.2ms) BEGIN
9831
+ Apicasso::Key Exists (0.3ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "761f937a12234a4690239867ea138939"], ["LIMIT", 1]]
9832
+ 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", "761f937a12234a4690239867ea138939"], ["created_at", "2018-11-29 18:41:30.923436"], ["updated_at", "2018-11-29 18:41:30.923436"]]
9833
+  (2.1ms) COMMIT
9834
+  (0.2ms) BEGIN
9835
+ Apicasso::Key Exists (0.3ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "394f4106ebac44a7bc3b5d95bafe9fb7"], ["LIMIT", 1]]
9836
+ Apicasso::Key Create (0.3ms) INSERT INTO "apicasso_keys" ("scope", "token", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["scope", "{\"read\":{\"used_model\":true}}"], ["token", "394f4106ebac44a7bc3b5d95bafe9fb7"], ["created_at", "2018-11-29 18:41:30.927950"], ["updated_at", "2018-11-29 18:41:30.927950"]]
9837
+  (2.1ms) COMMIT
9838
+  (0.1ms) BEGIN
9839
+ Apicasso::Key Exists (0.3ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "df75c269c78d4a0fb562f0275cc907f0"], ["LIMIT", 1]]
9840
+ Apicasso::Key Create (0.2ms) INSERT INTO "apicasso_keys" ("scope", "token", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["scope", "{\"create\":{\"used_model\":true}}"], ["token", "df75c269c78d4a0fb562f0275cc907f0"], ["created_at", "2018-11-29 18:41:30.932297"], ["updated_at", "2018-11-29 18:41:30.932297"]]
9841
+  (1.9ms) COMMIT
9842
+  (0.1ms) BEGIN
9843
+ Apicasso::Key Exists (0.2ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "d9016203f09d40ac84650dc467028922"], ["LIMIT", 1]]
9844
+ 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", "d9016203f09d40ac84650dc467028922"], ["created_at", "2018-11-29 18:41:30.936615"], ["updated_at", "2018-11-29 18:41:30.936615"]]
9845
+  (2.0ms) COMMIT
9846
+  (0.1ms) BEGIN
9847
+ Apicasso::Key Exists (0.2ms) SELECT 1 AS one FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "85d5d65d66e542378b7d7755c9ba5bb7"], ["LIMIT", 1]]
9848
+ 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", "85d5d65d66e542378b7d7755c9ba5bb7"], ["created_at", "2018-11-29 18:41:30.940912"], ["updated_at", "2018-11-29 18:41:30.940912"]]
9849
+  (2.1ms) COMMIT
9850
+  (0.1ms) BEGIN
9851
+ 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", "dodge-durango"], ["LIMIT", 1]]
9852
+  (0.1ms) ROLLBACK
9853
+  (0.1ms) BEGIN
9854
+  (0.2ms) SAVEPOINT active_record_1
9855
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
9856
+  (0.1ms) ROLLBACK
9857
+  (0.1ms) BEGIN
9858
+  (0.1ms) SAVEPOINT active_record_1
9859
+ 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", "bmw-m5"], ["LIMIT", 1]]
9860
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9861
+  (0.2ms) ROLLBACK
9862
+  (0.1ms) BEGIN
9863
+  (0.1ms) SAVEPOINT active_record_1
9864
+ 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", "ford-f150"], ["LIMIT", 1]]
9865
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
9866
+  (0.1ms) ROLLBACK
9867
+  (0.1ms) BEGIN
9868
+ 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-29 15:41:31 -0300
9869
+ Processing by Apicasso::CrudController#index as HTML
9870
+ Parameters: {"group"=>{"by"=>"brand", "calculate"=>"count", "fields"=>"'OR 1=1;"}, "resource"=>"used_models"}
9871
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "5c2c12ae6850401d823f243833e5006e"], ["LIMIT", 1]]
9872
+ Completed 400 Bad Request in 10ms (ActiveRecord: 0.5ms)
9873
+  (0.1ms) ROLLBACK
9874
+  (0.1ms) BEGIN
9875
+ Started GET "/api/v1/used_models?per_page=-1&sort=%27OR+1%3D1%3B" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
9876
+ Processing by Apicasso::CrudController#index as HTML
9877
+ Parameters: {"per_page"=>"-1", "sort"=>"'OR 1=1;", "resource"=>"used_models"}
9878
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "5c2c12ae6850401d823f243833e5006e"], ["LIMIT", 1]]
9879
+ Completed 400 Bad Request in 2ms (ActiveRecord: 0.2ms)
9880
+  (0.1ms) ROLLBACK
9881
+  (0.1ms) BEGIN
9882
+ Started GET "/api/v1/used_models?include=%27OR+1%3D1%3B" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
9883
+ Processing by Apicasso::CrudController#index as HTML
9884
+ Parameters: {"include"=>"'OR 1=1;", "resource"=>"used_models"}
9885
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "5c2c12ae6850401d823f243833e5006e"], ["LIMIT", 1]]
9886
+ Completed 400 Bad Request in 2ms (ActiveRecord: 0.2ms)
9887
+  (0.1ms) ROLLBACK
9888
+  (0.1ms) BEGIN
9889
+ Started GET "/api/v1/admins" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
9890
+ Processing by Apicasso::CrudController#index as HTML
9891
+ Parameters: {"resource"=>"admins"}
9892
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
9893
+  (0.1ms) ROLLBACK
9894
+  (0.1ms) BEGIN
9895
+ Started GET "/api/v1/used_models/1/admins" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
9896
+ Processing by Apicasso::CrudController#nested_index as HTML
9897
+ Parameters: {"resource"=>"used_models", "id"=>"1", "nested"=>"admins"}
9898
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
9899
+  (0.2ms) ROLLBACK
9900
+  (0.1ms) BEGIN
9901
+ Started GET "/api/v1/used_models?include=admins" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
9902
+ Processing by Apicasso::CrudController#index as HTML
9903
+ Parameters: {"include"=>"admins", "resource"=>"used_models"}
9904
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "5c2c12ae6850401d823f243833e5006e"], ["LIMIT", 1]]
9905
+ Completed 400 Bad Request in 2ms (ActiveRecord: 0.2ms)
9906
+  (0.1ms) ROLLBACK
9907
+ Started GET "/api/v1/used_models" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
9908
+ Processing by Apicasso::CrudController#index as HTML
9909
+ Parameters: {"resource"=>"used_models"}
9910
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "82678d3fbf5e45fa8e2292347fb349db"], ["LIMIT", 1]]
9911
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
9912
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
9913
+  (0.2ms) BEGIN
9914
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["LIMIT", 1]]
9915
+ 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", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["object", "{\"request\":{\"uuid\":\"769ac64f-03cb-4731-8ca9-a204e7c0e561\",\"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=82678d3fbf5e45fa8e2292347fb349db\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"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\":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\":76,\"active\":true,\"account_id\":2,\"unit_id\":0,\"brand\":\"Audi\",\"name\":\"Dodge Charger\",\"slug\":\"illo\",\"model\":\"Pathfiner\",\"version\":\"1.8\",\"model_year\":2007,\"production_year\":\"2014\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7832.64\",\"price_value\":7314,\"price\":\"5603.87\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":10657765,\"km\":\"66431231\",\"plate\":\"2845\",\"color\":\"Black\",\"doors\":0,\"fuel\":4,\"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-29T17:08:39.793Z\",\"updated_at\":\"2018-11-29T17:08:39.793Z\"},{\"id\":59,\"active\":false,\"account_id\":9,\"unit_id\":2,\"brand\":\"Lincoln\",\"name\":\"dicta\",\"slug\":\"fugiat\",\"model\":\"LaCrosse\",\"version\":\"7.1\",\"model_year\":2006,\"production_year\":\"2009\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2459.95\",\"price_value\":1433,\"price\":\"8153.31\",\"category\":\"Sedan\",\"transmission\":\"Automatic\",\"km_value\":58031163,\"km\":\"10576914\",\"plate\":\"9364\",\"color\":\"White\",\"doors\":5,\"fuel\":9,\"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-27T18:53:14.156Z\",\"updated_at\":\"2018-11-29T17:08:39.824Z\"},{\"id\":64,\"active\":false,\"account_id\":6,\"unit_id\":8,\"brand\":\"Dodge\",\"name\":\"Nissan Cube\",\"slug\":\"saepe\",\"model\":\"Camero\",\"version\":\"1.6\",\"model_year\":2008,\"production_year\":\"2012\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"4215.59\",\"price_value\":3922,\"price\":\"7202.17\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":35224957,\"km\":\"63053188\",\"plate\":\"8393\",\"color\":\"Beige\",\"doors\":3,\"fuel\":9,\"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-27T18:54:02.772Z\",\"updated_at\":\"2018-11-27T18:54:02.772Z\"},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"qui\",\"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-27T18:57:19.290Z\"},{\"id\":79,\"active\":true,\"account_id\":1,\"unit_id\":3,\"brand\":\"Dodge\",\"name\":\"Lincoln MKS\",\"slug\":\"esse\",\"model\":\"S5\",\"version\":\"8.6\",\"model_year\":2011,\"production_year\":\"2014\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"5580.68\",\"price_value\":5158,\"price\":\"9907.06\",\"category\":\"Regular Cab Pickup\",\"transmission\":\"Automanual\",\"km_value\":93695100,\"km\":\"71455621\",\"plate\":\"9994\",\"color\":\"Beige\",\"doors\":6,\"fuel\":3,\"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-29T18:34:53.622Z\",\"updated_at\":\"2018-11-29T18:34:53.622Z\"},{\"id\":71,\"active\":true,\"account_id\":9,\"unit_id\":4,\"brand\":\"Lincoln\",\"name\":\"Nissan Altima\",\"slug\":\"corporis\",\"model\":\"X3\",\"version\":\"3.2\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"5865.83\",\"price_value\":7997,\"price\":\"7773.78\",\"category\":\"Crew Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":43020803,\"km\":\"12848041\",\"plate\":\"8506\",\"color\":\"Yellow\",\"doors\":6,\"fuel\":1,\"fuel_text\":\"Electric\",\"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-29T16:53:44.672Z\",\"updated_at\":\"2018-11-29T16:53:44.672Z\"},{\"id\":80,\"active\":false,\"account_id\":9,\"unit_id\":7,\"brand\":\"Honda\",\"name\":\"Audi A4\",\"slug\":\"omnis\",\"model\":\"Juke\",\"version\":\"3.6\",\"model_year\":2012,\"production_year\":\"2018\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1789.96\",\"price_value\":5187,\"price\":\"3696.06\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":83716526,\"km\":\"71393622\",\"plate\":\"1397\",\"color\":\"Blue\",\"doors\":9,\"fuel\":8,\"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-29T18:34:53.867Z\",\"updated_at\":\"2018-11-29T18:34:53.867Z\"},{\"id\":75,\"active\":false,\"account_id\":4,\"unit_id\":1,\"brand\":\"Audi\",\"name\":\"fugit\",\"slug\":\"soluta\",\"model\":\"Civic\",\"version\":\"6.7\",\"model_year\":2011,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5078.91\",\"price_value\":1036,\"price\":\"7524.09\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":32841362,\"km\":\"97067995\",\"plate\":\"9092\",\"color\":\"Black\",\"doors\":0,\"fuel\":5,\"fuel_text\":\"Electric\",\"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-29T17:08:39.419Z\",\"updated_at\":\"2018-11-29T18:34:53.903Z\"}],\"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-29 18:41:31.370960"], ["updated_at", "2018-11-29 18:41:31.370960"]]
9916
+  (2.4ms) COMMIT
9917
+ Completed 200 OK in 46ms (Views: 1.8ms | ActiveRecord: 8.5ms)
9918
+  (0.1ms) BEGIN
9919
+  (0.2ms) ROLLBACK
9920
+  (0.2ms) BEGIN
9921
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
9922
+  (0.1ms) ROLLBACK
9923
+ Started GET "/api/v1/used_models?per_page=-1" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
9924
+ Processing by Apicasso::CrudController#index as HTML
9925
+ Parameters: {"per_page"=>"-1", "resource"=>"used_models"}
9926
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "82678d3fbf5e45fa8e2292347fb349db"], ["LIMIT", 1]]
9927
+ UsedModel Load (0.6ms) SELECT "used_models".* FROM "used_models"
9928
+  (0.2ms) BEGIN
9929
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["LIMIT", 1]]
9930
+ 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", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["object", "{\"request\":{\"uuid\":\"b698e6da-4a0d-4598-a041-feadc328ee6d\",\"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=82678d3fbf5e45fa8e2292347fb349db\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"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\":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\":76,\"active\":true,\"account_id\":2,\"unit_id\":0,\"brand\":\"Audi\",\"name\":\"Dodge Charger\",\"slug\":\"illo\",\"model\":\"Pathfiner\",\"version\":\"1.8\",\"model_year\":2007,\"production_year\":\"2014\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7832.64\",\"price_value\":7314,\"price\":\"5603.87\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":10657765,\"km\":\"66431231\",\"plate\":\"2845\",\"color\":\"Black\",\"doors\":0,\"fuel\":4,\"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-29T17:08:39.793Z\",\"updated_at\":\"2018-11-29T17:08:39.793Z\"},{\"id\":59,\"active\":false,\"account_id\":9,\"unit_id\":2,\"brand\":\"Lincoln\",\"name\":\"dicta\",\"slug\":\"fugiat\",\"model\":\"LaCrosse\",\"version\":\"7.1\",\"model_year\":2006,\"production_year\":\"2009\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2459.95\",\"price_value\":1433,\"price\":\"8153.31\",\"category\":\"Sedan\",\"transmission\":\"Automatic\",\"km_value\":58031163,\"km\":\"10576914\",\"plate\":\"9364\",\"color\":\"White\",\"doors\":5,\"fuel\":9,\"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-27T18:53:14.156Z\",\"updated_at\":\"2018-11-29T17:08:39.824Z\"},{\"id\":64,\"active\":false,\"account_id\":6,\"unit_id\":8,\"brand\":\"Dodge\",\"name\":\"Nissan Cube\",\"slug\":\"saepe\",\"model\":\"Camero\",\"version\":\"1.6\",\"model_year\":2008,\"production_year\":\"2012\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"4215.59\",\"price_value\":3922,\"price\":\"7202.17\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":35224957,\"km\":\"63053188\",\"plate\":\"8393\",\"color\":\"Beige\",\"doors\":3,\"fuel\":9,\"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-27T18:54:02.772Z\",\"updated_at\":\"2018-11-27T18:54:02.772Z\"},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"qui\",\"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-27T18:57:19.290Z\"},{\"id\":79,\"active\":true,\"account_id\":1,\"unit_id\":3,\"brand\":\"Dodge\",\"name\":\"Lincoln MKS\",\"slug\":\"esse\",\"model\":\"S5\",\"version\":\"8.6\",\"model_year\":2011,\"production_year\":\"2014\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"5580.68\",\"price_value\":5158,\"price\":\"9907.06\",\"category\":\"Regular Cab Pickup\",\"transmission\":\"Automanual\",\"km_value\":93695100,\"km\":\"71455621\",\"plate\":\"9994\",\"color\":\"Beige\",\"doors\":6,\"fuel\":3,\"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-29T18:34:53.622Z\",\"updated_at\":\"2018-11-29T18:34:53.622Z\"},{\"id\":71,\"active\":true,\"account_id\":9,\"unit_id\":4,\"brand\":\"Lincoln\",\"name\":\"Nissan Altima\",\"slug\":\"corporis\",\"model\":\"X3\",\"version\":\"3.2\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"5865.83\",\"price_value\":7997,\"price\":\"7773.78\",\"category\":\"Crew Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":43020803,\"km\":\"12848041\",\"plate\":\"8506\",\"color\":\"Yellow\",\"doors\":6,\"fuel\":1,\"fuel_text\":\"Electric\",\"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-29T16:53:44.672Z\",\"updated_at\":\"2018-11-29T16:53:44.672Z\"},{\"id\":80,\"active\":false,\"account_id\":9,\"unit_id\":7,\"brand\":\"Honda\",\"name\":\"Audi A4\",\"slug\":\"omnis\",\"model\":\"Juke\",\"version\":\"3.6\",\"model_year\":2012,\"production_year\":\"2018\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1789.96\",\"price_value\":5187,\"price\":\"3696.06\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":83716526,\"km\":\"71393622\",\"plate\":\"1397\",\"color\":\"Blue\",\"doors\":9,\"fuel\":8,\"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-29T18:34:53.867Z\",\"updated_at\":\"2018-11-29T18:34:53.867Z\"},{\"id\":75,\"active\":false,\"account_id\":4,\"unit_id\":1,\"brand\":\"Audi\",\"name\":\"fugit\",\"slug\":\"soluta\",\"model\":\"Civic\",\"version\":\"6.7\",\"model_year\":2011,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5078.91\",\"price_value\":1036,\"price\":\"7524.09\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":32841362,\"km\":\"97067995\",\"plate\":\"9092\",\"color\":\"Black\",\"doors\":0,\"fuel\":5,\"fuel_text\":\"Electric\",\"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-29T17:08:39.419Z\",\"updated_at\":\"2018-11-29T18:34:53.903Z\"}],\"total\":10}}}"], ["created_at", "2018-11-29 18:41:31.398720"], ["updated_at", "2018-11-29 18:41:31.398720"]]
9931
+  (2.5ms) COMMIT
9932
+ Completed 200 OK in 18ms (Views: 1.5ms | ActiveRecord: 4.4ms)
9933
+  (0.3ms) BEGIN
9934
+  (0.4ms) ROLLBACK
9935
+  (0.2ms) BEGIN
9936
+  (0.4ms) SELECT COUNT(*) FROM "used_models"
9937
+  (0.1ms) ROLLBACK
9938
+ Started GET "/api/v1/used_models?per_page=8&page=4" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
9939
+ Processing by Apicasso::CrudController#index as HTML
9940
+ Parameters: {"per_page"=>"8", "page"=>"4", "resource"=>"used_models"}
9941
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "82678d3fbf5e45fa8e2292347fb349db"], ["LIMIT", 1]]
9942
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 8], ["OFFSET", 24]]
9943
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
9944
+  (0.1ms) BEGIN
9945
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["LIMIT", 1]]
9946
+ 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", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["object", "{\"request\":{\"uuid\":\"a0f7f7f7-6d83-4896-a98b-ebb6c36515da\",\"url\":\"http://www.example.com/api/v1/used_models?per_page=8\\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=82678d3fbf5e45fa8e2292347fb349db\",\"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=8\\u0026page=3\",\"next_page\":\"http://www.example.com/api/v1/used_models?per_page=8\\u0026page\",\"out_of_bounds\":true,\"offset\":24}}}"], ["created_at", "2018-11-29 18:41:31.424033"], ["updated_at", "2018-11-29 18:41:31.424033"]]
9947
+  (1.7ms) COMMIT
9948
+ Completed 200 OK in 9ms (Views: 0.1ms | ActiveRecord: 3.4ms)
9949
+  (0.1ms) BEGIN
9950
+  (0.1ms) ROLLBACK
9951
+  (0.1ms) BEGIN
9952
+  (0.1ms) ROLLBACK
9953
+ Started GET "/api/v1/used_models?q%5Bbrand_matches%5D=Dodge" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
9954
+ Processing by Apicasso::CrudController#index as HTML
9955
+ Parameters: {"q"=>{"brand_matches"=>"Dodge"}, "resource"=>"used_models"}
9956
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "82678d3fbf5e45fa8e2292347fb349db"], ["LIMIT", 1]]
9957
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."brand" ILIKE 'Dodge' LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
9958
+  (0.4ms) SELECT COUNT(*) FROM "used_models" WHERE "used_models"."brand" ILIKE 'Dodge'
9959
+  (0.1ms) BEGIN
9960
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["LIMIT", 1]]
9961
+ 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", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["object", "{\"request\":{\"uuid\":\"04b4e58a-dea0-4119-a2b2-e672d7bb95fd\",\"url\":\"http://www.example.com/api/v1/used_models?q%5Bbrand_matches%5D=Dodge\",\"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=82678d3fbf5e45fa8e2292347fb349db\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"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\":64,\"active\":false,\"account_id\":6,\"unit_id\":8,\"brand\":\"Dodge\",\"name\":\"Nissan Cube\",\"slug\":\"saepe\",\"model\":\"Camero\",\"version\":\"1.6\",\"model_year\":2008,\"production_year\":\"2012\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"4215.59\",\"price_value\":3922,\"price\":\"7202.17\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":35224957,\"km\":\"63053188\",\"plate\":\"8393\",\"color\":\"Beige\",\"doors\":3,\"fuel\":9,\"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-27T18:54:02.772Z\",\"updated_at\":\"2018-11-27T18:54:02.772Z\"},{\"id\":79,\"active\":true,\"account_id\":1,\"unit_id\":3,\"brand\":\"Dodge\",\"name\":\"Lincoln MKS\",\"slug\":\"esse\",\"model\":\"S5\",\"version\":\"8.6\",\"model_year\":2011,\"production_year\":\"2014\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"5580.68\",\"price_value\":5158,\"price\":\"9907.06\",\"category\":\"Regular Cab Pickup\",\"transmission\":\"Automanual\",\"km_value\":93695100,\"km\":\"71455621\",\"plate\":\"9994\",\"color\":\"Beige\",\"doors\":6,\"fuel\":3,\"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-29T18:34:53.622Z\",\"updated_at\":\"2018-11-29T18:34:53.622Z\"}],\"total\":3,\"total_pages\":1,\"last_page\":true,\"previous_page\":\"http://www.example.com/api/v1/used_models?q%5Bbrand_matches%5D=Dodge\\u0026page\",\"next_page\":\"http://www.example.com/api/v1/used_models?q%5Bbrand_matches%5D=Dodge\\u0026page\",\"out_of_bounds\":false,\"offset\":0}}}"], ["created_at", "2018-11-29 18:41:31.440765"], ["updated_at", "2018-11-29 18:41:31.440765"]]
9962
+  (2.0ms) COMMIT
9963
+ Completed 200 OK in 16ms (Views: 1.5ms | ActiveRecord: 3.9ms)
9964
+  (0.1ms) BEGIN
9965
+  (0.2ms) ROLLBACK
9966
+  (0.1ms) BEGIN
9967
+  (0.1ms) ROLLBACK
9968
+ Started GET "/api/v1/used_models?group%5Bby%5D=category&group%5Bcalculate%5D=count&group%5Bfields%5D=version" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
9969
+ Processing by Apicasso::CrudController#index as HTML
9970
+ Parameters: {"group"=>{"by"=>"category", "calculate"=>"count", "fields"=>"version"}, "resource"=>"used_models"}
9971
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "82678d3fbf5e45fa8e2292347fb349db"], ["LIMIT", 1]]
9972
+  (0.4ms) SELECT COUNT(*) AS count_all, "used_models"."category" AS used_models_category FROM "used_models" GROUP BY "used_models"."category"
9973
+  (0.1ms) BEGIN
9974
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["LIMIT", 1]]
9975
+ 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", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["object", "{\"request\":{\"uuid\":\"f789dd41-3642-4015-b869-4190a4cf0fb4\",\"url\":\"http://www.example.com/api/v1/used_models?group%5Bby%5D=category\\u0026group%5Bcalculate%5D=count\\u0026group%5Bfields%5D=version\",\"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=82678d3fbf5e45fa8e2292347fb349db\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"Cargo Van\":4,\"Regular Cab Pickup\":1,\"Crew Cab Pickup\":1,\"Sedan\":1,\"Minivan\":1,\"Passenger Van\":1,\"Extended Cab Pickup\":1}}}"], ["created_at", "2018-11-29 18:41:31.460364"], ["updated_at", "2018-11-29 18:41:31.460364"]]
9976
+  (2.1ms) COMMIT
9977
+ Completed 200 OK in 7ms (Views: 0.1ms | ActiveRecord: 3.2ms)
9978
+  (0.1ms) BEGIN
9979
+  (0.1ms) ROLLBACK
9980
+  (0.1ms) BEGIN
9981
+  (0.5ms) SELECT COUNT(*) AS count_all, "used_models"."category" AS used_models_category FROM "used_models" WHERE (version is NOT NULL) GROUP BY "used_models"."category"
9982
+  (0.3ms) ROLLBACK
9983
+ Started GET "/api/v1/used_models?per_page=-1&sort=%2Bbrand%2C%2Bmodel" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
9984
+ Processing by Apicasso::CrudController#index as HTML
9985
+ Parameters: {"per_page"=>"-1", "sort"=>"+brand,+model", "resource"=>"used_models"}
9986
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "82678d3fbf5e45fa8e2292347fb349db"], ["LIMIT", 1]]
9987
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" ORDER BY "used_models"."brand" ASC, "used_models"."model" ASC
9988
+  (0.2ms) BEGIN
9989
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["LIMIT", 1]]
9990
+ 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", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["object", "{\"request\":{\"uuid\":\"17a6ddd4-b07a-4813-95c1-6967d6a75304\",\"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=82678d3fbf5e45fa8e2292347fb349db\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":75,\"active\":false,\"account_id\":4,\"unit_id\":1,\"brand\":\"Audi\",\"name\":\"fugit\",\"slug\":\"soluta\",\"model\":\"Civic\",\"version\":\"6.7\",\"model_year\":2011,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5078.91\",\"price_value\":1036,\"price\":\"7524.09\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":32841362,\"km\":\"97067995\",\"plate\":\"9092\",\"color\":\"Black\",\"doors\":0,\"fuel\":5,\"fuel_text\":\"Electric\",\"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-29T17:08:39.419Z\",\"updated_at\":\"2018-11-29T18:34:53.903Z\"},{\"id\":76,\"active\":true,\"account_id\":2,\"unit_id\":0,\"brand\":\"Audi\",\"name\":\"Dodge Charger\",\"slug\":\"illo\",\"model\":\"Pathfiner\",\"version\":\"1.8\",\"model_year\":2007,\"production_year\":\"2014\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7832.64\",\"price_value\":7314,\"price\":\"5603.87\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":10657765,\"km\":\"66431231\",\"plate\":\"2845\",\"color\":\"Black\",\"doors\":0,\"fuel\":4,\"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-29T17:08:39.793Z\",\"updated_at\":\"2018-11-29T17:08:39.793Z\"},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"qui\",\"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-27T18:57:19.290Z\"},{\"id\":64,\"active\":false,\"account_id\":6,\"unit_id\":8,\"brand\":\"Dodge\",\"name\":\"Nissan Cube\",\"slug\":\"saepe\",\"model\":\"Camero\",\"version\":\"1.6\",\"model_year\":2008,\"production_year\":\"2012\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"4215.59\",\"price_value\":3922,\"price\":\"7202.17\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":35224957,\"km\":\"63053188\",\"plate\":\"8393\",\"color\":\"Beige\",\"doors\":3,\"fuel\":9,\"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-27T18:54:02.772Z\",\"updated_at\":\"2018-11-27T18:54:02.772Z\"},{\"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\":79,\"active\":true,\"account_id\":1,\"unit_id\":3,\"brand\":\"Dodge\",\"name\":\"Lincoln MKS\",\"slug\":\"esse\",\"model\":\"S5\",\"version\":\"8.6\",\"model_year\":2011,\"production_year\":\"2014\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"5580.68\",\"price_value\":5158,\"price\":\"9907.06\",\"category\":\"Regular Cab Pickup\",\"transmission\":\"Automanual\",\"km_value\":93695100,\"km\":\"71455621\",\"plate\":\"9994\",\"color\":\"Beige\",\"doors\":6,\"fuel\":3,\"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-29T18:34:53.622Z\",\"updated_at\":\"2018-11-29T18:34:53.622Z\"},{\"id\":80,\"active\":false,\"account_id\":9,\"unit_id\":7,\"brand\":\"Honda\",\"name\":\"Audi A4\",\"slug\":\"omnis\",\"model\":\"Juke\",\"version\":\"3.6\",\"model_year\":2012,\"production_year\":\"2018\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1789.96\",\"price_value\":5187,\"price\":\"3696.06\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":83716526,\"km\":\"71393622\",\"plate\":\"1397\",\"color\":\"Blue\",\"doors\":9,\"fuel\":8,\"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-29T18:34:53.867Z\",\"updated_at\":\"2018-11-29T18:34:53.867Z\"},{\"id\":59,\"active\":false,\"account_id\":9,\"unit_id\":2,\"brand\":\"Lincoln\",\"name\":\"dicta\",\"slug\":\"fugiat\",\"model\":\"LaCrosse\",\"version\":\"7.1\",\"model_year\":2006,\"production_year\":\"2009\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2459.95\",\"price_value\":1433,\"price\":\"8153.31\",\"category\":\"Sedan\",\"transmission\":\"Automatic\",\"km_value\":58031163,\"km\":\"10576914\",\"plate\":\"9364\",\"color\":\"White\",\"doors\":5,\"fuel\":9,\"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-27T18:53:14.156Z\",\"updated_at\":\"2018-11-29T17:08:39.824Z\"},{\"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\":71,\"active\":true,\"account_id\":9,\"unit_id\":4,\"brand\":\"Lincoln\",\"name\":\"Nissan Altima\",\"slug\":\"corporis\",\"model\":\"X3\",\"version\":\"3.2\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"5865.83\",\"price_value\":7997,\"price\":\"7773.78\",\"category\":\"Crew Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":43020803,\"km\":\"12848041\",\"plate\":\"8506\",\"color\":\"Yellow\",\"doors\":6,\"fuel\":1,\"fuel_text\":\"Electric\",\"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-29T16:53:44.672Z\",\"updated_at\":\"2018-11-29T16:53:44.672Z\"}],\"total\":10}}}"], ["created_at", "2018-11-29 18:41:31.479058"], ["updated_at", "2018-11-29 18:41:31.479058"]]
9991
+  (2.2ms) COMMIT
9992
+ Completed 200 OK in 19ms (Views: 2.9ms | ActiveRecord: 4.1ms)
9993
+  (0.1ms) BEGIN
9994
+  (0.1ms) ROLLBACK
9995
+  (0.1ms) BEGIN
9996
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" ORDER BY "used_models"."brand" ASC, "used_models"."model" ASC
9997
+  (0.1ms) ROLLBACK
9998
+ Started GET "/api/v1/used_models?select=kind" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
9999
+ Processing by Apicasso::CrudController#index as HTML
10000
+ Parameters: {"select"=>"kind", "resource"=>"used_models"}
10001
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "82678d3fbf5e45fa8e2292347fb349db"], ["LIMIT", 1]]
10002
+ UsedModel Load (0.4ms) SELECT "used_models"."kind" FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
10003
+  (0.3ms) SELECT COUNT("used_models"."kind") FROM "used_models"
10004
+  (0.1ms) BEGIN
10005
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["LIMIT", 1]]
10006
+ 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", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["object", "{\"request\":{\"uuid\":\"675c5702-46fa-4d6d-88ec-d8f5c45bf61e\",\"url\":\"http://www.example.com/api/v1/used_models?select=kind\",\"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=82678d3fbf5e45fa8e2292347fb349db\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":null,\"kind\":\"car\"},{\"id\":null,\"kind\":\"car\"},{\"id\":null,\"kind\":\"car\"},{\"id\":null,\"kind\":\"car\"},{\"id\":null,\"kind\":\"car\"},{\"id\":null,\"kind\":\"car\"},{\"id\":null,\"kind\":\"car\"},{\"id\":null,\"kind\":\"car\"},{\"id\":null,\"kind\":\"car\"},{\"id\":null,\"kind\":\"car\"}],\"total\":10,\"total_pages\":1,\"last_page\":true,\"previous_page\":\"http://www.example.com/api/v1/used_models?select=kind\\u0026page\",\"next_page\":\"http://www.example.com/api/v1/used_models?select=kind\\u0026page\",\"out_of_bounds\":false,\"offset\":0}}}"], ["created_at", "2018-11-29 18:41:31.499398"], ["updated_at", "2018-11-29 18:41:31.499398"]]
10007
+  (2.1ms) COMMIT
10008
+ Completed 200 OK in 11ms (Views: 0.4ms | ActiveRecord: 3.7ms)
10009
+  (0.1ms) BEGIN
10010
+  (0.1ms) ROLLBACK
10011
+  (0.1ms) BEGIN
10012
+  (0.1ms) ROLLBACK
10013
+ Started GET "/api/v1/used_models?include=files_blobs%2Cfiles_url" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
10014
+ Processing by Apicasso::CrudController#index as HTML
10015
+ Parameters: {"include"=>"files_blobs,files_url", "resource"=>"used_models"}
10016
+ Apicasso::Key Load (0.1ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "82678d3fbf5e45fa8e2292347fb349db"], ["LIMIT", 1]]
10017
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
10018
+ 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", 56], ["record_id", 52], ["record_id", 76], ["record_id", 59], ["record_id", 64], ["record_id", 10], ["record_id", 79], ["record_id", 71], ["record_id", 80], ["record_id", 75]]
10019
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
10020
+  (0.1ms) BEGIN
10021
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["LIMIT", 1]]
10022
+ 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", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["object", "{\"request\":{\"uuid\":\"883c691e-ffd2-4bd4-a9ba-441b177132ab\",\"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=82678d3fbf5e45fa8e2292347fb349db\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"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\",\"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\":76,\"active\":true,\"account_id\":2,\"unit_id\":0,\"brand\":\"Audi\",\"name\":\"Dodge Charger\",\"slug\":\"illo\",\"model\":\"Pathfiner\",\"version\":\"1.8\",\"model_year\":2007,\"production_year\":\"2014\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7832.64\",\"price_value\":7314,\"price\":\"5603.87\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":10657765,\"km\":\"66431231\",\"plate\":\"2845\",\"color\":\"Black\",\"doors\":0,\"fuel\":4,\"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-29T17:08:39.793Z\",\"updated_at\":\"2018-11-29T17:08:39.793Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":59,\"active\":false,\"account_id\":9,\"unit_id\":2,\"brand\":\"Lincoln\",\"name\":\"dicta\",\"slug\":\"fugiat\",\"model\":\"LaCrosse\",\"version\":\"7.1\",\"model_year\":2006,\"production_year\":\"2009\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2459.95\",\"price_value\":1433,\"price\":\"8153.31\",\"category\":\"Sedan\",\"transmission\":\"Automatic\",\"km_value\":58031163,\"km\":\"10576914\",\"plate\":\"9364\",\"color\":\"White\",\"doors\":5,\"fuel\":9,\"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-27T18:53:14.156Z\",\"updated_at\":\"2018-11-29T17:08:39.824Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":64,\"active\":false,\"account_id\":6,\"unit_id\":8,\"brand\":\"Dodge\",\"name\":\"Nissan Cube\",\"slug\":\"saepe\",\"model\":\"Camero\",\"version\":\"1.6\",\"model_year\":2008,\"production_year\":\"2012\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"4215.59\",\"price_value\":3922,\"price\":\"7202.17\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":35224957,\"km\":\"63053188\",\"plate\":\"8393\",\"color\":\"Beige\",\"doors\":3,\"fuel\":9,\"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-27T18:54:02.772Z\",\"updated_at\":\"2018-11-27T18:54:02.772Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"qui\",\"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-27T18:57:19.290Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":79,\"active\":true,\"account_id\":1,\"unit_id\":3,\"brand\":\"Dodge\",\"name\":\"Lincoln MKS\",\"slug\":\"esse\",\"model\":\"S5\",\"version\":\"8.6\",\"model_year\":2011,\"production_year\":\"2014\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"5580.68\",\"price_value\":5158,\"price\":\"9907.06\",\"category\":\"Regular Cab Pickup\",\"transmission\":\"Automanual\",\"km_value\":93695100,\"km\":\"71455621\",\"plate\":\"9994\",\"color\":\"Beige\",\"doors\":6,\"fuel\":3,\"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-29T18:34:53.622Z\",\"updated_at\":\"2018-11-29T18:34:53.622Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":71,\"active\":true,\"account_id\":9,\"unit_id\":4,\"brand\":\"Lincoln\",\"name\":\"Nissan Altima\",\"slug\":\"corporis\",\"model\":\"X3\",\"version\":\"3.2\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"5865.83\",\"price_value\":7997,\"price\":\"7773.78\",\"category\":\"Crew Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":43020803,\"km\":\"12848041\",\"plate\":\"8506\",\"color\":\"Yellow\",\"doors\":6,\"fuel\":1,\"fuel_text\":\"Electric\",\"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-29T16:53:44.672Z\",\"updated_at\":\"2018-11-29T16:53:44.672Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":80,\"active\":false,\"account_id\":9,\"unit_id\":7,\"brand\":\"Honda\",\"name\":\"Audi A4\",\"slug\":\"omnis\",\"model\":\"Juke\",\"version\":\"3.6\",\"model_year\":2012,\"production_year\":\"2018\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1789.96\",\"price_value\":5187,\"price\":\"3696.06\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":83716526,\"km\":\"71393622\",\"plate\":\"1397\",\"color\":\"Blue\",\"doors\":9,\"fuel\":8,\"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-29T18:34:53.867Z\",\"updated_at\":\"2018-11-29T18:34:53.867Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":75,\"active\":false,\"account_id\":4,\"unit_id\":1,\"brand\":\"Audi\",\"name\":\"fugit\",\"slug\":\"soluta\",\"model\":\"Civic\",\"version\":\"6.7\",\"model_year\":2011,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5078.91\",\"price_value\":1036,\"price\":\"7524.09\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":32841362,\"km\":\"97067995\",\"plate\":\"9092\",\"color\":\"Black\",\"doors\":0,\"fuel\":5,\"fuel_text\":\"Electric\",\"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-29T17:08:39.419Z\",\"updated_at\":\"2018-11-29T18:34:53.903Z\",\"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-29 18:41:31.578052"], ["updated_at", "2018-11-29 18:41:31.578052"]]
10023
+  (2.0ms) COMMIT
10024
+ Completed 200 OK in 78ms (Views: 1.6ms | ActiveRecord: 5.5ms)
10025
+  (0.1ms) BEGIN
10026
+  (0.1ms) ROLLBACK
10027
+  (0.1ms) BEGIN
10028
+  (0.2ms) ROLLBACK
10029
+  (0.1ms) BEGIN
10030
+ Started GET "/api/v1/used_models?include=filess%2Cfilee" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
10031
+ Processing by Apicasso::CrudController#index as HTML
10032
+ Parameters: {"include"=>"filess,filee", "resource"=>"used_models"}
10033
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "82678d3fbf5e45fa8e2292347fb349db"], ["LIMIT", 1]]
10034
+ Completed 400 Bad Request in 2ms (ActiveRecord: 0.2ms)
10035
+  (0.1ms) ROLLBACK
10036
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
10037
+ Started GET "/api/v1/used_models/10" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
10038
+ Processing by Apicasso::CrudController#show as HTML
10039
+ Parameters: {"resource"=>"used_models", "id"=>"10"}
10040
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "82678d3fbf5e45fa8e2292347fb349db"], ["LIMIT", 1]]
10041
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "10"], ["LIMIT", 1]]
10042
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]]
10043
+  (0.1ms) BEGIN
10044
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["LIMIT", 1]]
10045
+ 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", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["object", "{\"request\":{\"uuid\":\"41e6dcdc-5f66-4ab2-920a-40f51f02ddb2\",\"url\":\"http://www.example.com/api/v1/used_models/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=82678d3fbf5e45fa8e2292347fb349db\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"qui\",\"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-27T18:57:19.290Z\"}}}"], ["created_at", "2018-11-29 18:41:31.602794"], ["updated_at", "2018-11-29 18:41:31.602794"]]
10046
+  (2.2ms) COMMIT
10047
+ Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 3.8ms)
10048
+  (0.1ms) BEGIN
10049
+  (0.1ms) ROLLBACK
10050
+  (0.1ms) BEGIN
10051
+  (0.1ms) ROLLBACK
10052
+  (0.1ms) BEGIN
10053
+ UsedModel Load (0.8ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]]
10054
+  (0.1ms) ROLLBACK
10055
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
10056
+ Started GET "/api/v1/used_models/80?select=name" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
10057
+ Processing by Apicasso::CrudController#show as HTML
10058
+ Parameters: {"select"=>"name", "resource"=>"used_models", "id"=>"80"}
10059
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "82678d3fbf5e45fa8e2292347fb349db"], ["LIMIT", 1]]
10060
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "80"], ["LIMIT", 1]]
10061
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 80], ["LIMIT", 1]]
10062
+  (0.1ms) BEGIN
10063
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["LIMIT", 1]]
10064
+ 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", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["object", "{\"request\":{\"uuid\":\"63e11b6d-4d90-4da5-b410-08232c3c4df4\",\"url\":\"http://www.example.com/api/v1/used_models/80?select=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=82678d3fbf5e45fa8e2292347fb349db\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"name\":\"Audi A4\"}}}"], ["created_at", "2018-11-29 18:41:31.621111"], ["updated_at", "2018-11-29 18:41:31.621111"]]
10065
+  (1.9ms) COMMIT
10066
+ Completed 200 OK in 10ms (Views: 0.2ms | ActiveRecord: 3.6ms)
10067
+  (0.1ms) BEGIN
10068
+  (0.1ms) ROLLBACK
10069
+  (0.1ms) BEGIN
10070
+  (0.1ms) ROLLBACK
10071
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
10072
+ Started GET "/api/v1/used_models/59?include=files_blobs%2Cfiles_url" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
10073
+ Processing by Apicasso::CrudController#show as HTML
10074
+ Parameters: {"include"=>"files_blobs,files_url", "resource"=>"used_models", "id"=>"59"}
10075
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "82678d3fbf5e45fa8e2292347fb349db"], ["LIMIT", 1]]
10076
+ UsedModel Load (0.6ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "59"], ["LIMIT", 1]]
10077
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 59], ["LIMIT", 1]]
10078
+ 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", 59], ["record_type", "UsedModel"], ["name", "files"]]
10079
+ ActiveStorage::Blob Load (0.9ms) 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", 59], ["record_type", "UsedModel"], ["name", "files"]]
10080
+  (0.1ms) BEGIN
10081
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["LIMIT", 1]]
10082
+ 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", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["object", "{\"request\":{\"uuid\":\"24109299-dc7e-49fb-a9cd-d4815c217630\",\"url\":\"http://www.example.com/api/v1/used_models/59?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=82678d3fbf5e45fa8e2292347fb349db\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":59,\"active\":false,\"account_id\":9,\"unit_id\":2,\"brand\":\"Lincoln\",\"name\":\"dicta\",\"slug\":\"fugiat\",\"model\":\"LaCrosse\",\"version\":\"7.1\",\"model_year\":2006,\"production_year\":\"2009\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2459.95\",\"price_value\":1433,\"price\":\"8153.31\",\"category\":\"Sedan\",\"transmission\":\"Automatic\",\"km_value\":58031163,\"km\":\"10576914\",\"plate\":\"9364\",\"color\":\"White\",\"doors\":5,\"fuel\":9,\"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-27T18:53:14.156Z\",\"updated_at\":\"2018-11-29T17:08:39.824Z\",\"files_url\":[],\"files_blobs\":[]}}}"], ["created_at", "2018-11-29 18:41:31.647182"], ["updated_at", "2018-11-29 18:41:31.647182"]]
10083
+  (2.2ms) COMMIT
10084
+ Completed 200 OK in 23ms (Views: 0.5ms | ActiveRecord: 7.9ms)
10085
+  (0.1ms) BEGIN
10086
+  (0.1ms) ROLLBACK
10087
+  (0.1ms) BEGIN
10088
+  (0.1ms) ROLLBACK
10089
+  (0.1ms) BEGIN
10090
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
10091
+ Started GET "/api/v1/used_models/75?include=filess%2Cfilee" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
10092
+ Processing by Apicasso::CrudController#show as HTML
10093
+ Parameters: {"include"=>"filess,filee", "resource"=>"used_models", "id"=>"75"}
10094
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "82678d3fbf5e45fa8e2292347fb349db"], ["LIMIT", 1]]
10095
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "75"], ["LIMIT", 1]]
10096
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 75], ["LIMIT", 1]]
10097
+ Completed 400 Bad Request in 3ms (ActiveRecord: 0.8ms)
10098
+  (0.1ms) ROLLBACK
10099
+ UsedModel Load (0.2ms) SELECT "used_models".* FROM "used_models"
10100
+ Started GET "/api/v1/used_models/saepe" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
10101
+ Processing by Apicasso::CrudController#show as HTML
10102
+ Parameters: {"resource"=>"used_models", "id"=>"saepe"}
10103
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "82678d3fbf5e45fa8e2292347fb349db"], ["LIMIT", 1]]
10104
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "saepe"], ["LIMIT", 1]]
10105
+  (0.1ms) BEGIN
10106
+ Apicasso::Key Load (0.1ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["LIMIT", 1]]
10107
+ 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", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["object", "{\"request\":{\"uuid\":\"7792a896-42aa-463a-832f-9ec9d32d6e6e\",\"url\":\"http://www.example.com/api/v1/used_models/saepe\",\"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=82678d3fbf5e45fa8e2292347fb349db\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":64,\"active\":false,\"account_id\":6,\"unit_id\":8,\"brand\":\"Dodge\",\"name\":\"Nissan Cube\",\"slug\":\"saepe\",\"model\":\"Camero\",\"version\":\"1.6\",\"model_year\":2008,\"production_year\":\"2012\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"4215.59\",\"price_value\":3922,\"price\":\"7202.17\",\"category\":\"Cargo Van\",\"transmission\":\"Automatic\",\"km_value\":35224957,\"km\":\"63053188\",\"plate\":\"8393\",\"color\":\"Beige\",\"doors\":3,\"fuel\":9,\"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-27T18:54:02.772Z\",\"updated_at\":\"2018-11-27T18:54:02.772Z\"}}}"], ["created_at", "2018-11-29 18:41:31.669601"], ["updated_at", "2018-11-29 18:41:31.669601"]]
10108
+  (2.2ms) COMMIT
10109
+ Completed 200 OK in 9ms (Views: 0.3ms | ActiveRecord: 3.4ms)
10110
+  (0.1ms) BEGIN
10111
+  (0.1ms) ROLLBACK
10112
+  (0.1ms) BEGIN
10113
+  (0.1ms) ROLLBACK
10114
+  (0.1ms) BEGIN
10115
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "saepe"], ["LIMIT", 1]]
10116
+  (0.2ms) ROLLBACK
10117
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
10118
+ Started POST "/api/v1/used_models/" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
10119
+ Processing by Apicasso::CrudController#create as HTML
10120
+ Parameters: {"used_model"=>{"active"=>"false", "account_id"=>"9", "unit_id"=>"3", "brand"=>"Ford", "name"=>"Buick Enclave", "model"=>"Regal", "slug"=>"nam", "version"=>"8.6", "model_year"=>"2013", "production_year"=>"2010", "kind"=>"car", "new_vehicle"=>"true", "old_price"=>"6964.08", "price_value"=>"7778.79", "price"=>"3253.01", "category"=>"SUV", "transmission"=>"CVT", "km_value"=>"20121906", "km"=>"15637429", "plate"=>"7470", "color"=>"Grey", "doors"=>"8", "fuel"=>"8", "fuel_text"=>"Compressed Natural Gas", "shielded"=>"true"}, "resource"=>"used_models"}
10121
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "82678d3fbf5e45fa8e2292347fb349db"], ["LIMIT", 1]]
10122
+  (0.1ms) BEGIN
10123
+ UsedModel Create (0.4ms) INSERT INTO "used_models" ("active", "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", "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, $26, $27) RETURNING "id" [["active", false], ["account_id", 9], ["unit_id", 3], ["brand", "Ford"], ["name", "Buick Enclave"], ["slug", "nam"], ["model", "Regal"], ["version", "8.6"], ["model_year", 2013], ["production_year", "2010"], ["kind", "car"], ["new_vehicle", true], ["old_price", "6964.08"], ["price_value", 7778], ["price", "3253.01"], ["category", "SUV"], ["transmission", "CVT"], ["km_value", 20121906], ["km", "15637429"], ["plate", "7470"], ["color", "Grey"], ["doors", 8], ["fuel", 8], ["fuel_text", "Compressed Natural Gas"], ["shielded", true], ["created_at", "2018-11-29 18:41:31.693389"], ["updated_at", "2018-11-29 18:41:31.693389"]]
10124
+  (2.0ms) COMMIT
10125
+  (0.1ms) BEGIN
10126
+ Apicasso::Key Load (0.1ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["LIMIT", 1]]
10127
+ 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", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["object", "{\"request\":{\"uuid\":\"cdbe757c-acda-4e28-a6c9-1d491ce8bee4\",\"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=82678d3fbf5e45fa8e2292347fb349db\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":201,\"body\":{\"id\":83,\"active\":false,\"account_id\":9,\"unit_id\":3,\"brand\":\"Ford\",\"name\":\"Buick Enclave\",\"slug\":\"nam\",\"model\":\"Regal\",\"version\":\"8.6\",\"model_year\":2013,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"6964.08\",\"price_value\":7778,\"price\":\"3253.01\",\"category\":\"SUV\",\"transmission\":\"CVT\",\"km_value\":20121906,\"km\":\"15637429\",\"plate\":\"7470\",\"color\":\"Grey\",\"doors\":8,\"fuel\":8,\"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-29T18:41:31.693Z\",\"updated_at\":\"2018-11-29T18:41:31.693Z\"}}}"], ["created_at", "2018-11-29 18:41:31.698568"], ["updated_at", "2018-11-29 18:41:31.698568"]]
10128
+  (2.2ms) COMMIT
10129
+ Completed 201 Created in 12ms (Views: 0.1ms | ActiveRecord: 5.5ms)
10130
+  (0.1ms) BEGIN
10131
+  (0.2ms) ROLLBACK
10132
+  (0.1ms) BEGIN
10133
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
10134
+  (0.1ms) ROLLBACK
10135
+  (0.1ms) BEGIN
10136
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "nam"], ["LIMIT", 1]]
10137
+  (0.1ms) ROLLBACK
10138
+  (0.1ms) BEGIN
10139
+ Started POST "/api/v1/used_models/" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
10140
+ Processing by Apicasso::CrudController#create as HTML
10141
+ Parameters: {"used_model"=>{"slug"=>"cr-v"}, "resource"=>"used_models"}
10142
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "82678d3fbf5e45fa8e2292347fb349db"], ["LIMIT", 1]]
10143
+  (0.1ms) SAVEPOINT active_record_1
10144
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
10145
+  (0.1ms) SAVEPOINT active_record_1
10146
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["LIMIT", 1]]
10147
+ 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", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["object", "{\"request\":{\"uuid\":\"b5c6a8fb-0ccf-469b-a988-2e2a5d9d7c4b\",\"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=82678d3fbf5e45fa8e2292347fb349db\",\"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-29 18:41:31.715595"], ["updated_at", "2018-11-29 18:41:31.715595"]]
10148
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10149
+ Completed 422 Unprocessable Entity in 6ms (Views: 0.1ms | ActiveRecord: 1.3ms)
10150
+  (0.2ms) ROLLBACK
10151
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
10152
+ Started PATCH "/api/v1/used_models/79" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
10153
+ Processing by Apicasso::CrudController#update as HTML
10154
+ Parameters: {"used_model"=>{"name"=>"velit"}, "resource"=>"used_models", "id"=>"79"}
10155
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "82678d3fbf5e45fa8e2292347fb349db"], ["LIMIT", 1]]
10156
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "79"], ["LIMIT", 1]]
10157
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 79], ["LIMIT", 1]]
10158
+  (0.1ms) BEGIN
10159
+ UsedModel Update (0.4ms) UPDATE "used_models" SET "name" = $1, "updated_at" = $2 WHERE "used_models"."id" = $3 [["name", "velit"], ["updated_at", "2018-11-29 18:41:31.724838"], ["id", 79]]
10160
+  (2.0ms) COMMIT
10161
+  (0.1ms) BEGIN
10162
+ Apicasso::Key Load (0.1ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["LIMIT", 1]]
10163
+ 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", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["object", "{\"request\":{\"uuid\":\"afec1c28-c567-401c-841b-88421837abe9\",\"url\":\"http://www.example.com/api/v1/used_models/79\",\"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=82678d3fbf5e45fa8e2292347fb349db\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":79,\"name\":\"velit\",\"slug\":\"esse\",\"account_id\":1,\"unit_id\":3,\"active\":true,\"brand\":\"Dodge\",\"model\":\"S5\",\"version\":\"8.6\",\"model_year\":2011,\"production_year\":\"2014\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"5580.68\",\"price_value\":5158,\"price\":\"9907.06\",\"category\":\"Regular Cab Pickup\",\"transmission\":\"Automanual\",\"km_value\":93695100,\"km\":\"71455621\",\"plate\":\"9994\",\"color\":\"Beige\",\"doors\":6,\"fuel\":3,\"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-29T18:34:53.622Z\",\"updated_at\":\"2018-11-29T18:41:31.724Z\"}}}"], ["created_at", "2018-11-29 18:41:31.730073"], ["updated_at", "2018-11-29 18:41:31.730073"]]
10164
+  (2.0ms) COMMIT
10165
+ Completed 200 OK in 13ms (Views: 0.1ms | ActiveRecord: 5.8ms)
10166
+  (0.1ms) BEGIN
10167
+  (0.1ms) ROLLBACK
10168
+  (0.1ms) BEGIN
10169
+ UsedModel Load (0.2ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 79], ["LIMIT", 1]]
10170
+  (0.1ms) ROLLBACK
10171
+  (0.1ms) BEGIN
10172
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
10173
+ Started PATCH "/api/v1/used_models/83" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
10174
+ Processing by Apicasso::CrudController#update as HTML
10175
+ Parameters: {"used_model"=>{"unit_id"=>nil}, "resource"=>"used_models", "id"=>"83"}
10176
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "82678d3fbf5e45fa8e2292347fb349db"], ["LIMIT", 1]]
10177
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "83"], ["LIMIT", 1]]
10178
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 83], ["LIMIT", 1]]
10179
+  (0.1ms) SAVEPOINT active_record_1
10180
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
10181
+  (0.2ms) SAVEPOINT active_record_1
10182
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["LIMIT", 1]]
10183
+ 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", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["object", "{\"request\":{\"uuid\":\"e6328e6b-75ef-4a71-85e7-4d1fa19986af\",\"url\":\"http://www.example.com/api/v1/used_models/83\",\"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=82678d3fbf5e45fa8e2292347fb349db\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":422,\"body\":{\"unit_id\":[\"can't be blank\"]}}}"], ["created_at", "2018-11-29 18:41:31.747950"], ["updated_at", "2018-11-29 18:41:31.747950"]]
10184
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10185
+ Completed 422 Unprocessable Entity in 10ms (Views: 0.3ms | ActiveRecord: 2.3ms)
10186
+  (0.1ms) ROLLBACK
10187
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
10188
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
10189
+ Started DELETE "/api/v1/used_models/64" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
10190
+ Processing by Apicasso::CrudController#destroy as HTML
10191
+ Parameters: {"resource"=>"used_models", "id"=>"64"}
10192
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "82678d3fbf5e45fa8e2292347fb349db"], ["LIMIT", 1]]
10193
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "64"], ["LIMIT", 1]]
10194
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 64], ["LIMIT", 1]]
10195
+  (0.2ms) BEGIN
10196
+ UsedModel Destroy (0.4ms) DELETE FROM "used_models" WHERE "used_models"."id" = $1 [["id", 64]]
10197
+  (2.1ms) COMMIT
10198
+ 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", 64], ["record_type", "UsedModel"], ["name", "files"]]
10199
+ 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", 64], ["record_type", "UsedModel"], ["name", "file_highlighted"], ["LIMIT", 1]]
10200
+  (0.1ms) BEGIN
10201
+ Apicasso::Key Load (0.1ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["LIMIT", 1]]
10202
+ 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", "b37c8167-b9db-4dcd-8c31-b7c63f950084"], ["object", "{\"request\":{\"uuid\":\"3dbd790a-cf05-4dc7-8b56-180becf732c0\",\"url\":\"http://www.example.com/api/v1/used_models/64\",\"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=82678d3fbf5e45fa8e2292347fb349db\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":204,\"body\":\"\"}}"], ["created_at", "2018-11-29 18:41:31.766486"], ["updated_at", "2018-11-29 18:41:31.766486"]]
10203
+  (1.9ms) COMMIT
10204
+ Completed 204 No Content in 16ms (ActiveRecord: 6.4ms)
10205
+  (0.1ms) BEGIN
10206
+  (0.1ms) ROLLBACK
10207
+  (0.1ms) BEGIN
10208
+  (0.4ms) SELECT COUNT(*) FROM "used_models"
10209
+  (0.1ms) ROLLBACK
10210
+  (0.1ms) BEGIN
10211
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 64], ["LIMIT", 1]]
10212
+  (0.1ms) ROLLBACK
10213
+  (0.1ms) BEGIN
10214
+ 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-29 15:41:31 -0300
10215
+ Processing by Apicasso::CrudController#index as HTML
10216
+ Parameters: {"group"=>{"by"=>"brand", "calculate"=>"count", "fields"=>"'OR 1=1;"}, "resource"=>"used_model"}
10217
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "b02a73f7d8354d99ae13db9da9b914b4"], ["LIMIT", 1]]
10218
+ Completed 400 Bad Request in 2ms (ActiveRecord: 0.3ms)
10219
+  (0.1ms) ROLLBACK
10220
+  (0.1ms) BEGIN
10221
+ Started GET "/api/v1/used_model?per_page=-1&sort=%27OR+1%3D1%3B" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
10222
+ Processing by Apicasso::CrudController#index as HTML
10223
+ Parameters: {"per_page"=>"-1", "sort"=>"'OR 1=1;", "resource"=>"used_model"}
10224
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "b02a73f7d8354d99ae13db9da9b914b4"], ["LIMIT", 1]]
10225
+ Completed 400 Bad Request in 3ms (ActiveRecord: 0.4ms)
10226
+  (0.2ms) ROLLBACK
10227
+  (0.1ms) BEGIN
10228
+ Started GET "/api/v1/used_model?include=%27OR+1%3D1%3B" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
10229
+ Processing by Apicasso::CrudController#index as HTML
10230
+ Parameters: {"include"=>"'OR 1=1;", "resource"=>"used_model"}
10231
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "b02a73f7d8354d99ae13db9da9b914b4"], ["LIMIT", 1]]
10232
+ Completed 400 Bad Request in 2ms (ActiveRecord: 0.4ms)
10233
+  (0.2ms) ROLLBACK
10234
+  (0.1ms) BEGIN
10235
+ Started GET "/api/v1/admins" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
10236
+ Processing by Apicasso::CrudController#index as HTML
10237
+ Parameters: {"resource"=>"admins"}
10238
+ Completed 400 Bad Request in 4ms (ActiveRecord: 0.0ms)
10239
+  (0.1ms) ROLLBACK
10240
+  (0.1ms) BEGIN
10241
+ Started GET "/api/v1/used_model/1/admins" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
10242
+ Processing by Apicasso::CrudController#nested_index as HTML
10243
+ Parameters: {"resource"=>"used_model", "id"=>"1", "nested"=>"admins"}
10244
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
10245
+  (0.2ms) ROLLBACK
10246
+  (0.1ms) BEGIN
10247
+ Started GET "/api/v1/used_model?include=admins" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
10248
+ Processing by Apicasso::CrudController#index as HTML
10249
+ Parameters: {"include"=>"admins", "resource"=>"used_model"}
10250
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "b02a73f7d8354d99ae13db9da9b914b4"], ["LIMIT", 1]]
10251
+ Completed 400 Bad Request in 2ms (ActiveRecord: 0.3ms)
10252
+  (0.2ms) ROLLBACK
10253
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
10254
+ Processing by Apicasso::CrudController#index as HTML
10255
+ Parameters: {"resource"=>"used_model"}
10256
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "3faafd4d089e41179dc0bad9de2ca705"], ["LIMIT", 1]]
10257
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
10258
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
10259
+  (0.2ms) BEGIN
10260
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["LIMIT", 1]]
10261
+ 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", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["object", "{\"request\":{\"uuid\":\"403e9882-578c-4e3f-b3bb-5117766a38bc\",\"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=3faafd4d089e41179dc0bad9de2ca705\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"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\":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\":76,\"active\":true,\"account_id\":2,\"unit_id\":0,\"brand\":\"Audi\",\"name\":\"Dodge Charger\",\"slug\":\"illo\",\"model\":\"Pathfiner\",\"version\":\"1.8\",\"model_year\":2007,\"production_year\":\"2014\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7832.64\",\"price_value\":7314,\"price\":\"5603.87\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":10657765,\"km\":\"66431231\",\"plate\":\"2845\",\"color\":\"Black\",\"doors\":0,\"fuel\":4,\"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-29T17:08:39.793Z\",\"updated_at\":\"2018-11-29T17:08:39.793Z\"},{\"id\":59,\"active\":false,\"account_id\":9,\"unit_id\":2,\"brand\":\"Lincoln\",\"name\":\"dicta\",\"slug\":\"fugiat\",\"model\":\"LaCrosse\",\"version\":\"7.1\",\"model_year\":2006,\"production_year\":\"2009\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2459.95\",\"price_value\":1433,\"price\":\"8153.31\",\"category\":\"Sedan\",\"transmission\":\"Automatic\",\"km_value\":58031163,\"km\":\"10576914\",\"plate\":\"9364\",\"color\":\"White\",\"doors\":5,\"fuel\":9,\"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-27T18:53:14.156Z\",\"updated_at\":\"2018-11-29T17:08:39.824Z\"},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"qui\",\"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-27T18:57:19.290Z\"},{\"id\":71,\"active\":true,\"account_id\":9,\"unit_id\":4,\"brand\":\"Lincoln\",\"name\":\"Nissan Altima\",\"slug\":\"corporis\",\"model\":\"X3\",\"version\":\"3.2\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"5865.83\",\"price_value\":7997,\"price\":\"7773.78\",\"category\":\"Crew Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":43020803,\"km\":\"12848041\",\"plate\":\"8506\",\"color\":\"Yellow\",\"doors\":6,\"fuel\":1,\"fuel_text\":\"Electric\",\"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-29T16:53:44.672Z\",\"updated_at\":\"2018-11-29T16:53:44.672Z\"},{\"id\":80,\"active\":false,\"account_id\":9,\"unit_id\":7,\"brand\":\"Honda\",\"name\":\"Audi A4\",\"slug\":\"omnis\",\"model\":\"Juke\",\"version\":\"3.6\",\"model_year\":2012,\"production_year\":\"2018\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1789.96\",\"price_value\":5187,\"price\":\"3696.06\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":83716526,\"km\":\"71393622\",\"plate\":\"1397\",\"color\":\"Blue\",\"doors\":9,\"fuel\":8,\"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-29T18:34:53.867Z\",\"updated_at\":\"2018-11-29T18:34:53.867Z\"},{\"id\":75,\"active\":false,\"account_id\":4,\"unit_id\":1,\"brand\":\"Audi\",\"name\":\"fugit\",\"slug\":\"soluta\",\"model\":\"Civic\",\"version\":\"6.7\",\"model_year\":2011,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5078.91\",\"price_value\":1036,\"price\":\"7524.09\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":32841362,\"km\":\"97067995\",\"plate\":\"9092\",\"color\":\"Black\",\"doors\":0,\"fuel\":5,\"fuel_text\":\"Electric\",\"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-29T17:08:39.419Z\",\"updated_at\":\"2018-11-29T18:34:53.903Z\"},{\"id\":83,\"active\":false,\"account_id\":9,\"unit_id\":3,\"brand\":\"Ford\",\"name\":\"Buick Enclave\",\"slug\":\"nam\",\"model\":\"Regal\",\"version\":\"8.6\",\"model_year\":2013,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"6964.08\",\"price_value\":7778,\"price\":\"3253.01\",\"category\":\"SUV\",\"transmission\":\"CVT\",\"km_value\":20121906,\"km\":\"15637429\",\"plate\":\"7470\",\"color\":\"Grey\",\"doors\":8,\"fuel\":8,\"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-29T18:41:31.693Z\",\"updated_at\":\"2018-11-29T18:41:31.693Z\"},{\"id\":79,\"active\":true,\"account_id\":1,\"unit_id\":3,\"brand\":\"Dodge\",\"name\":\"velit\",\"slug\":\"esse\",\"model\":\"S5\",\"version\":\"8.6\",\"model_year\":2011,\"production_year\":\"2014\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"5580.68\",\"price_value\":5158,\"price\":\"9907.06\",\"category\":\"Regular Cab Pickup\",\"transmission\":\"Automanual\",\"km_value\":93695100,\"km\":\"71455621\",\"plate\":\"9994\",\"color\":\"Beige\",\"doors\":6,\"fuel\":3,\"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-29T18:34:53.622Z\",\"updated_at\":\"2018-11-29T18:41:31.724Z\"}],\"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-29 18:41:31.818566"], ["updated_at", "2018-11-29 18:41:31.818566"]]
10262
+  (2.0ms) COMMIT
10263
+ Completed 200 OK in 18ms (Views: 1.5ms | ActiveRecord: 3.9ms)
10264
+  (0.1ms) BEGIN
10265
+  (0.1ms) ROLLBACK
10266
+  (0.1ms) BEGIN
10267
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
10268
+  (0.1ms) ROLLBACK
10269
+ Started GET "/api/v1/used_model?per_page=-1" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
10270
+ Processing by Apicasso::CrudController#index as HTML
10271
+ Parameters: {"per_page"=>"-1", "resource"=>"used_model"}
10272
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "3faafd4d089e41179dc0bad9de2ca705"], ["LIMIT", 1]]
10273
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models"
10274
+  (0.1ms) BEGIN
10275
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["LIMIT", 1]]
10276
+ 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", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["object", "{\"request\":{\"uuid\":\"4ce5efef-a57f-45ea-920b-d295cb388699\",\"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=3faafd4d089e41179dc0bad9de2ca705\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"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\":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\":76,\"active\":true,\"account_id\":2,\"unit_id\":0,\"brand\":\"Audi\",\"name\":\"Dodge Charger\",\"slug\":\"illo\",\"model\":\"Pathfiner\",\"version\":\"1.8\",\"model_year\":2007,\"production_year\":\"2014\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7832.64\",\"price_value\":7314,\"price\":\"5603.87\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":10657765,\"km\":\"66431231\",\"plate\":\"2845\",\"color\":\"Black\",\"doors\":0,\"fuel\":4,\"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-29T17:08:39.793Z\",\"updated_at\":\"2018-11-29T17:08:39.793Z\"},{\"id\":59,\"active\":false,\"account_id\":9,\"unit_id\":2,\"brand\":\"Lincoln\",\"name\":\"dicta\",\"slug\":\"fugiat\",\"model\":\"LaCrosse\",\"version\":\"7.1\",\"model_year\":2006,\"production_year\":\"2009\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2459.95\",\"price_value\":1433,\"price\":\"8153.31\",\"category\":\"Sedan\",\"transmission\":\"Automatic\",\"km_value\":58031163,\"km\":\"10576914\",\"plate\":\"9364\",\"color\":\"White\",\"doors\":5,\"fuel\":9,\"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-27T18:53:14.156Z\",\"updated_at\":\"2018-11-29T17:08:39.824Z\"},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"qui\",\"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-27T18:57:19.290Z\"},{\"id\":71,\"active\":true,\"account_id\":9,\"unit_id\":4,\"brand\":\"Lincoln\",\"name\":\"Nissan Altima\",\"slug\":\"corporis\",\"model\":\"X3\",\"version\":\"3.2\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"5865.83\",\"price_value\":7997,\"price\":\"7773.78\",\"category\":\"Crew Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":43020803,\"km\":\"12848041\",\"plate\":\"8506\",\"color\":\"Yellow\",\"doors\":6,\"fuel\":1,\"fuel_text\":\"Electric\",\"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-29T16:53:44.672Z\",\"updated_at\":\"2018-11-29T16:53:44.672Z\"},{\"id\":80,\"active\":false,\"account_id\":9,\"unit_id\":7,\"brand\":\"Honda\",\"name\":\"Audi A4\",\"slug\":\"omnis\",\"model\":\"Juke\",\"version\":\"3.6\",\"model_year\":2012,\"production_year\":\"2018\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1789.96\",\"price_value\":5187,\"price\":\"3696.06\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":83716526,\"km\":\"71393622\",\"plate\":\"1397\",\"color\":\"Blue\",\"doors\":9,\"fuel\":8,\"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-29T18:34:53.867Z\",\"updated_at\":\"2018-11-29T18:34:53.867Z\"},{\"id\":75,\"active\":false,\"account_id\":4,\"unit_id\":1,\"brand\":\"Audi\",\"name\":\"fugit\",\"slug\":\"soluta\",\"model\":\"Civic\",\"version\":\"6.7\",\"model_year\":2011,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5078.91\",\"price_value\":1036,\"price\":\"7524.09\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":32841362,\"km\":\"97067995\",\"plate\":\"9092\",\"color\":\"Black\",\"doors\":0,\"fuel\":5,\"fuel_text\":\"Electric\",\"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-29T17:08:39.419Z\",\"updated_at\":\"2018-11-29T18:34:53.903Z\"},{\"id\":83,\"active\":false,\"account_id\":9,\"unit_id\":3,\"brand\":\"Ford\",\"name\":\"Buick Enclave\",\"slug\":\"nam\",\"model\":\"Regal\",\"version\":\"8.6\",\"model_year\":2013,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"6964.08\",\"price_value\":7778,\"price\":\"3253.01\",\"category\":\"SUV\",\"transmission\":\"CVT\",\"km_value\":20121906,\"km\":\"15637429\",\"plate\":\"7470\",\"color\":\"Grey\",\"doors\":8,\"fuel\":8,\"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-29T18:41:31.693Z\",\"updated_at\":\"2018-11-29T18:41:31.693Z\"},{\"id\":79,\"active\":true,\"account_id\":1,\"unit_id\":3,\"brand\":\"Dodge\",\"name\":\"velit\",\"slug\":\"esse\",\"model\":\"S5\",\"version\":\"8.6\",\"model_year\":2011,\"production_year\":\"2014\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"5580.68\",\"price_value\":5158,\"price\":\"9907.06\",\"category\":\"Regular Cab Pickup\",\"transmission\":\"Automanual\",\"km_value\":93695100,\"km\":\"71455621\",\"plate\":\"9994\",\"color\":\"Beige\",\"doors\":6,\"fuel\":3,\"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-29T18:34:53.622Z\",\"updated_at\":\"2018-11-29T18:41:31.724Z\"}],\"total\":10}}}"], ["created_at", "2018-11-29 18:41:31.839118"], ["updated_at", "2018-11-29 18:41:31.839118"]]
10277
+  (2.0ms) COMMIT
10278
+ Completed 200 OK in 17ms (Views: 2.7ms | ActiveRecord: 3.5ms)
10279
+  (0.1ms) BEGIN
10280
+  (0.1ms) ROLLBACK
10281
+  (0.1ms) BEGIN
10282
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
10283
+  (0.1ms) ROLLBACK
10284
+ Started GET "/api/v1/used_model?per_page=9&page=5" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
10285
+ Processing by Apicasso::CrudController#index as HTML
10286
+ Parameters: {"per_page"=>"9", "page"=>"5", "resource"=>"used_model"}
10287
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "3faafd4d089e41179dc0bad9de2ca705"], ["LIMIT", 1]]
10288
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 9], ["OFFSET", 36]]
10289
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
10290
+  (0.1ms) BEGIN
10291
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["LIMIT", 1]]
10292
+ 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", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["object", "{\"request\":{\"uuid\":\"770b5d62-cacf-4880-9b86-616770e60189\",\"url\":\"http://www.example.com/api/v1/used_model?per_page=9\\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=3faafd4d089e41179dc0bad9de2ca705\",\"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_model?per_page=9\\u0026page=4\",\"next_page\":\"http://www.example.com/api/v1/used_model?per_page=9\\u0026page\",\"out_of_bounds\":true,\"offset\":36}}}"], ["created_at", "2018-11-29 18:41:31.857080"], ["updated_at", "2018-11-29 18:41:31.857080"]]
10293
+  (1.9ms) COMMIT
10294
+ Completed 200 OK in 10ms (Views: 0.1ms | ActiveRecord: 3.6ms)
10295
+  (0.1ms) BEGIN
10296
+  (0.1ms) ROLLBACK
10297
+  (0.1ms) BEGIN
10298
+  (0.1ms) ROLLBACK
10299
+ Started GET "/api/v1/used_model?q%5Bbrand_matches%5D=Lincoln" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
10300
+ Processing by Apicasso::CrudController#index as HTML
10301
+ Parameters: {"q"=>{"brand_matches"=>"Lincoln"}, "resource"=>"used_model"}
10302
+ Apicasso::Key Load (0.1ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "3faafd4d089e41179dc0bad9de2ca705"], ["LIMIT", 1]]
10303
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."brand" ILIKE 'Lincoln' LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
10304
+  (0.3ms) SELECT COUNT(*) FROM "used_models" WHERE "used_models"."brand" ILIKE 'Lincoln'
10305
+  (0.2ms) BEGIN
10306
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["LIMIT", 1]]
10307
+ 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", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["object", "{\"request\":{\"uuid\":\"bb660c8a-7f2c-4f75-bf4e-cd38c99fe0c1\",\"url\":\"http://www.example.com/api/v1/used_model?q%5Bbrand_matches%5D=Lincoln\",\"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=3faafd4d089e41179dc0bad9de2ca705\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"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\":59,\"active\":false,\"account_id\":9,\"unit_id\":2,\"brand\":\"Lincoln\",\"name\":\"dicta\",\"slug\":\"fugiat\",\"model\":\"LaCrosse\",\"version\":\"7.1\",\"model_year\":2006,\"production_year\":\"2009\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2459.95\",\"price_value\":1433,\"price\":\"8153.31\",\"category\":\"Sedan\",\"transmission\":\"Automatic\",\"km_value\":58031163,\"km\":\"10576914\",\"plate\":\"9364\",\"color\":\"White\",\"doors\":5,\"fuel\":9,\"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-27T18:53:14.156Z\",\"updated_at\":\"2018-11-29T17:08:39.824Z\"},{\"id\":71,\"active\":true,\"account_id\":9,\"unit_id\":4,\"brand\":\"Lincoln\",\"name\":\"Nissan Altima\",\"slug\":\"corporis\",\"model\":\"X3\",\"version\":\"3.2\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"5865.83\",\"price_value\":7997,\"price\":\"7773.78\",\"category\":\"Crew Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":43020803,\"km\":\"12848041\",\"plate\":\"8506\",\"color\":\"Yellow\",\"doors\":6,\"fuel\":1,\"fuel_text\":\"Electric\",\"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-29T16:53:44.672Z\",\"updated_at\":\"2018-11-29T16:53:44.672Z\"}],\"total\":3,\"total_pages\":1,\"last_page\":true,\"previous_page\":\"http://www.example.com/api/v1/used_model?q%5Bbrand_matches%5D=Lincoln\\u0026page\",\"next_page\":\"http://www.example.com/api/v1/used_model?q%5Bbrand_matches%5D=Lincoln\\u0026page\",\"out_of_bounds\":false,\"offset\":0}}}"], ["created_at", "2018-11-29 18:41:31.871748"], ["updated_at", "2018-11-29 18:41:31.871748"]]
10308
+  (1.9ms) COMMIT
10309
+ Completed 200 OK in 12ms (Views: 0.7ms | ActiveRecord: 3.6ms)
10310
+  (0.1ms) BEGIN
10311
+  (0.1ms) ROLLBACK
10312
+  (0.1ms) BEGIN
10313
+  (0.1ms) ROLLBACK
10314
+ Started GET "/api/v1/used_model?group%5Bby%5D=slug&group%5Bcalculate%5D=count&group%5Bfields%5D=model" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
10315
+ Processing by Apicasso::CrudController#index as HTML
10316
+ Parameters: {"group"=>{"by"=>"slug", "calculate"=>"count", "fields"=>"model"}, "resource"=>"used_model"}
10317
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "3faafd4d089e41179dc0bad9de2ca705"], ["LIMIT", 1]]
10318
+  (0.4ms) SELECT COUNT(*) AS count_all, "used_models"."slug" AS used_models_slug FROM "used_models" GROUP BY "used_models"."slug"
10319
+  (0.1ms) BEGIN
10320
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["LIMIT", 1]]
10321
+ 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", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["object", "{\"request\":{\"uuid\":\"8d0779d1-5a02-4c13-8b91-3ed00200a285\",\"url\":\"http://www.example.com/api/v1/used_model?group%5Bby%5D=slug\\u0026group%5Bcalculate%5D=count\\u0026group%5Bfields%5D=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=3faafd4d089e41179dc0bad9de2ca705\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"omnis\":1,\"corporis\":1,\"soluta\":1,\"illo\":1,\"esse\":1,\"fugiat\":1,\"voluptatum\":1,\"cr-v\":1,\"architecto\":1,\"nam\":1}}}"], ["created_at", "2018-11-29 18:41:31.886356"], ["updated_at", "2018-11-29 18:41:31.886356"]]
10322
+  (2.0ms) COMMIT
10323
+ Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 3.2ms)
10324
+  (0.1ms) BEGIN
10325
+  (0.1ms) ROLLBACK
10326
+  (0.1ms) BEGIN
10327
+  (0.3ms) SELECT COUNT(*) AS count_all, "used_models"."slug" AS used_models_slug FROM "used_models" WHERE (model is NOT NULL) GROUP BY "used_models"."slug"
10328
+  (0.1ms) ROLLBACK
10329
+ Started GET "/api/v1/used_model?per_page=-1&sort=%2Bbrand%2C%2Bmodel" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
10330
+ Processing by Apicasso::CrudController#index as HTML
10331
+ Parameters: {"per_page"=>"-1", "sort"=>"+brand,+model", "resource"=>"used_model"}
10332
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "3faafd4d089e41179dc0bad9de2ca705"], ["LIMIT", 1]]
10333
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" ORDER BY "used_models"."brand" ASC, "used_models"."model" ASC
10334
+  (0.2ms) BEGIN
10335
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["LIMIT", 1]]
10336
+ 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", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["object", "{\"request\":{\"uuid\":\"ed28799f-bfee-4ecd-8d54-4bb7ccf708b2\",\"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=3faafd4d089e41179dc0bad9de2ca705\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":75,\"active\":false,\"account_id\":4,\"unit_id\":1,\"brand\":\"Audi\",\"name\":\"fugit\",\"slug\":\"soluta\",\"model\":\"Civic\",\"version\":\"6.7\",\"model_year\":2011,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5078.91\",\"price_value\":1036,\"price\":\"7524.09\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":32841362,\"km\":\"97067995\",\"plate\":\"9092\",\"color\":\"Black\",\"doors\":0,\"fuel\":5,\"fuel_text\":\"Electric\",\"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-29T17:08:39.419Z\",\"updated_at\":\"2018-11-29T18:34:53.903Z\"},{\"id\":76,\"active\":true,\"account_id\":2,\"unit_id\":0,\"brand\":\"Audi\",\"name\":\"Dodge Charger\",\"slug\":\"illo\",\"model\":\"Pathfiner\",\"version\":\"1.8\",\"model_year\":2007,\"production_year\":\"2014\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7832.64\",\"price_value\":7314,\"price\":\"5603.87\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":10657765,\"km\":\"66431231\",\"plate\":\"2845\",\"color\":\"Black\",\"doors\":0,\"fuel\":4,\"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-29T17:08:39.793Z\",\"updated_at\":\"2018-11-29T17:08:39.793Z\"},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"qui\",\"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-27T18:57:19.290Z\"},{\"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\":79,\"active\":true,\"account_id\":1,\"unit_id\":3,\"brand\":\"Dodge\",\"name\":\"velit\",\"slug\":\"esse\",\"model\":\"S5\",\"version\":\"8.6\",\"model_year\":2011,\"production_year\":\"2014\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"5580.68\",\"price_value\":5158,\"price\":\"9907.06\",\"category\":\"Regular Cab Pickup\",\"transmission\":\"Automanual\",\"km_value\":93695100,\"km\":\"71455621\",\"plate\":\"9994\",\"color\":\"Beige\",\"doors\":6,\"fuel\":3,\"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-29T18:34:53.622Z\",\"updated_at\":\"2018-11-29T18:41:31.724Z\"},{\"id\":83,\"active\":false,\"account_id\":9,\"unit_id\":3,\"brand\":\"Ford\",\"name\":\"Buick Enclave\",\"slug\":\"nam\",\"model\":\"Regal\",\"version\":\"8.6\",\"model_year\":2013,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"6964.08\",\"price_value\":7778,\"price\":\"3253.01\",\"category\":\"SUV\",\"transmission\":\"CVT\",\"km_value\":20121906,\"km\":\"15637429\",\"plate\":\"7470\",\"color\":\"Grey\",\"doors\":8,\"fuel\":8,\"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-29T18:41:31.693Z\",\"updated_at\":\"2018-11-29T18:41:31.693Z\"},{\"id\":80,\"active\":false,\"account_id\":9,\"unit_id\":7,\"brand\":\"Honda\",\"name\":\"Audi A4\",\"slug\":\"omnis\",\"model\":\"Juke\",\"version\":\"3.6\",\"model_year\":2012,\"production_year\":\"2018\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1789.96\",\"price_value\":5187,\"price\":\"3696.06\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":83716526,\"km\":\"71393622\",\"plate\":\"1397\",\"color\":\"Blue\",\"doors\":9,\"fuel\":8,\"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-29T18:34:53.867Z\",\"updated_at\":\"2018-11-29T18:34:53.867Z\"},{\"id\":59,\"active\":false,\"account_id\":9,\"unit_id\":2,\"brand\":\"Lincoln\",\"name\":\"dicta\",\"slug\":\"fugiat\",\"model\":\"LaCrosse\",\"version\":\"7.1\",\"model_year\":2006,\"production_year\":\"2009\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2459.95\",\"price_value\":1433,\"price\":\"8153.31\",\"category\":\"Sedan\",\"transmission\":\"Automatic\",\"km_value\":58031163,\"km\":\"10576914\",\"plate\":\"9364\",\"color\":\"White\",\"doors\":5,\"fuel\":9,\"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-27T18:53:14.156Z\",\"updated_at\":\"2018-11-29T17:08:39.824Z\"},{\"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\":71,\"active\":true,\"account_id\":9,\"unit_id\":4,\"brand\":\"Lincoln\",\"name\":\"Nissan Altima\",\"slug\":\"corporis\",\"model\":\"X3\",\"version\":\"3.2\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"5865.83\",\"price_value\":7997,\"price\":\"7773.78\",\"category\":\"Crew Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":43020803,\"km\":\"12848041\",\"plate\":\"8506\",\"color\":\"Yellow\",\"doors\":6,\"fuel\":1,\"fuel_text\":\"Electric\",\"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-29T16:53:44.672Z\",\"updated_at\":\"2018-11-29T16:53:44.672Z\"}],\"total\":10}}}"], ["created_at", "2018-11-29 18:41:31.902421"], ["updated_at", "2018-11-29 18:41:31.902421"]]
10337
+  (2.2ms) COMMIT
10338
+ Completed 200 OK in 16ms (Views: 1.5ms | ActiveRecord: 3.6ms)
10339
+  (0.1ms) BEGIN
10340
+  (0.1ms) ROLLBACK
10341
+  (0.1ms) BEGIN
10342
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" ORDER BY "used_models"."brand" ASC, "used_models"."model" ASC
10343
+  (0.2ms) ROLLBACK
10344
+ Started GET "/api/v1/used_model?select=category" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
10345
+ Processing by Apicasso::CrudController#index as HTML
10346
+ Parameters: {"select"=>"category", "resource"=>"used_model"}
10347
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "3faafd4d089e41179dc0bad9de2ca705"], ["LIMIT", 1]]
10348
+ UsedModel Load (0.3ms) SELECT "used_models"."category" FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
10349
+  (0.3ms) SELECT COUNT("used_models"."category") FROM "used_models"
10350
+  (0.1ms) BEGIN
10351
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["LIMIT", 1]]
10352
+ 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", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["object", "{\"request\":{\"uuid\":\"60ead742-c242-42f1-bc31-454e25ebb46d\",\"url\":\"http://www.example.com/api/v1/used_model?select=category\",\"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=3faafd4d089e41179dc0bad9de2ca705\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"id\":null,\"category\":\"Extended Cab Pickup\"},{\"id\":null,\"category\":\"Minivan\"},{\"id\":null,\"category\":\"Cargo Van\"},{\"id\":null,\"category\":\"Sedan\"},{\"id\":null,\"category\":\"Cargo Van\"},{\"id\":null,\"category\":\"Crew Cab Pickup\"},{\"id\":null,\"category\":\"Passenger Van\"},{\"id\":null,\"category\":\"Cargo Van\"},{\"id\":null,\"category\":\"SUV\"},{\"id\":null,\"category\":\"Regular Cab Pickup\"}],\"total\":10,\"total_pages\":1,\"last_page\":true,\"previous_page\":\"http://www.example.com/api/v1/used_model?select=category\\u0026page\",\"next_page\":\"http://www.example.com/api/v1/used_model?select=category\\u0026page\",\"out_of_bounds\":false,\"offset\":0}}}"], ["created_at", "2018-11-29 18:41:31.923219"], ["updated_at", "2018-11-29 18:41:31.923219"]]
10353
+  (1.9ms) COMMIT
10354
+ Completed 200 OK in 11ms (Views: 0.2ms | ActiveRecord: 3.3ms)
10355
+  (0.1ms) BEGIN
10356
+  (0.1ms) ROLLBACK
10357
+  (0.1ms) BEGIN
10358
+  (0.1ms) ROLLBACK
10359
+ Started GET "/api/v1/used_model?include=files_blobs%2Cfiles_url" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
10360
+ Processing by Apicasso::CrudController#index as HTML
10361
+ Parameters: {"include"=>"files_blobs,files_url", "resource"=>"used_model"}
10362
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "3faafd4d089e41179dc0bad9de2ca705"], ["LIMIT", 1]]
10363
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
10364
+ 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", 56], ["record_id", 52], ["record_id", 76], ["record_id", 59], ["record_id", 10], ["record_id", 71], ["record_id", 80], ["record_id", 75], ["record_id", 83], ["record_id", 79]]
10365
+  (0.4ms) SELECT COUNT(*) FROM "used_models"
10366
+  (0.1ms) BEGIN
10367
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["LIMIT", 1]]
10368
+ 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", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["object", "{\"request\":{\"uuid\":\"6b128565-292d-433e-a98e-9dd8f629a261\",\"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=3faafd4d089e41179dc0bad9de2ca705\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"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\",\"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\":76,\"active\":true,\"account_id\":2,\"unit_id\":0,\"brand\":\"Audi\",\"name\":\"Dodge Charger\",\"slug\":\"illo\",\"model\":\"Pathfiner\",\"version\":\"1.8\",\"model_year\":2007,\"production_year\":\"2014\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7832.64\",\"price_value\":7314,\"price\":\"5603.87\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":10657765,\"km\":\"66431231\",\"plate\":\"2845\",\"color\":\"Black\",\"doors\":0,\"fuel\":4,\"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-29T17:08:39.793Z\",\"updated_at\":\"2018-11-29T17:08:39.793Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":59,\"active\":false,\"account_id\":9,\"unit_id\":2,\"brand\":\"Lincoln\",\"name\":\"dicta\",\"slug\":\"fugiat\",\"model\":\"LaCrosse\",\"version\":\"7.1\",\"model_year\":2006,\"production_year\":\"2009\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2459.95\",\"price_value\":1433,\"price\":\"8153.31\",\"category\":\"Sedan\",\"transmission\":\"Automatic\",\"km_value\":58031163,\"km\":\"10576914\",\"plate\":\"9364\",\"color\":\"White\",\"doors\":5,\"fuel\":9,\"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-27T18:53:14.156Z\",\"updated_at\":\"2018-11-29T17:08:39.824Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"qui\",\"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-27T18:57:19.290Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":71,\"active\":true,\"account_id\":9,\"unit_id\":4,\"brand\":\"Lincoln\",\"name\":\"Nissan Altima\",\"slug\":\"corporis\",\"model\":\"X3\",\"version\":\"3.2\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"5865.83\",\"price_value\":7997,\"price\":\"7773.78\",\"category\":\"Crew Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":43020803,\"km\":\"12848041\",\"plate\":\"8506\",\"color\":\"Yellow\",\"doors\":6,\"fuel\":1,\"fuel_text\":\"Electric\",\"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-29T16:53:44.672Z\",\"updated_at\":\"2018-11-29T16:53:44.672Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":80,\"active\":false,\"account_id\":9,\"unit_id\":7,\"brand\":\"Honda\",\"name\":\"Audi A4\",\"slug\":\"omnis\",\"model\":\"Juke\",\"version\":\"3.6\",\"model_year\":2012,\"production_year\":\"2018\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1789.96\",\"price_value\":5187,\"price\":\"3696.06\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":83716526,\"km\":\"71393622\",\"plate\":\"1397\",\"color\":\"Blue\",\"doors\":9,\"fuel\":8,\"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-29T18:34:53.867Z\",\"updated_at\":\"2018-11-29T18:34:53.867Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":75,\"active\":false,\"account_id\":4,\"unit_id\":1,\"brand\":\"Audi\",\"name\":\"fugit\",\"slug\":\"soluta\",\"model\":\"Civic\",\"version\":\"6.7\",\"model_year\":2011,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5078.91\",\"price_value\":1036,\"price\":\"7524.09\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":32841362,\"km\":\"97067995\",\"plate\":\"9092\",\"color\":\"Black\",\"doors\":0,\"fuel\":5,\"fuel_text\":\"Electric\",\"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-29T17:08:39.419Z\",\"updated_at\":\"2018-11-29T18:34:53.903Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":83,\"active\":false,\"account_id\":9,\"unit_id\":3,\"brand\":\"Ford\",\"name\":\"Buick Enclave\",\"slug\":\"nam\",\"model\":\"Regal\",\"version\":\"8.6\",\"model_year\":2013,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"6964.08\",\"price_value\":7778,\"price\":\"3253.01\",\"category\":\"SUV\",\"transmission\":\"CVT\",\"km_value\":20121906,\"km\":\"15637429\",\"plate\":\"7470\",\"color\":\"Grey\",\"doors\":8,\"fuel\":8,\"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-29T18:41:31.693Z\",\"updated_at\":\"2018-11-29T18:41:31.693Z\",\"files_url\":[],\"files_blobs\":[]},{\"id\":79,\"active\":true,\"account_id\":1,\"unit_id\":3,\"brand\":\"Dodge\",\"name\":\"velit\",\"slug\":\"esse\",\"model\":\"S5\",\"version\":\"8.6\",\"model_year\":2011,\"production_year\":\"2014\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"5580.68\",\"price_value\":5158,\"price\":\"9907.06\",\"category\":\"Regular Cab Pickup\",\"transmission\":\"Automanual\",\"km_value\":93695100,\"km\":\"71455621\",\"plate\":\"9994\",\"color\":\"Beige\",\"doors\":6,\"fuel\":3,\"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-29T18:34:53.622Z\",\"updated_at\":\"2018-11-29T18:41:31.724Z\",\"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-29 18:41:31.945003"], ["updated_at", "2018-11-29 18:41:31.945003"]]
10369
+  (2.1ms) COMMIT
10370
+ Completed 200 OK in 26ms (Views: 2.5ms | ActiveRecord: 4.5ms)
10371
+  (0.1ms) BEGIN
10372
+  (0.1ms) ROLLBACK
10373
+  (0.1ms) BEGIN
10374
+  (0.1ms) ROLLBACK
10375
+  (0.1ms) BEGIN
10376
+ Started GET "/api/v1/used_model?include=filess%2Cfilee" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
10377
+ Processing by Apicasso::CrudController#index as HTML
10378
+ Parameters: {"include"=>"filess,filee", "resource"=>"used_model"}
10379
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "3faafd4d089e41179dc0bad9de2ca705"], ["LIMIT", 1]]
10380
+ Completed 400 Bad Request in 2ms (ActiveRecord: 0.2ms)
10381
+  (0.1ms) ROLLBACK
10382
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
10383
+ Started GET "/api/v1/used_model/10" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
10384
+ Processing by Apicasso::CrudController#show as HTML
10385
+ Parameters: {"resource"=>"used_model", "id"=>"10"}
10386
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "3faafd4d089e41179dc0bad9de2ca705"], ["LIMIT", 1]]
10387
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "10"], ["LIMIT", 1]]
10388
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]]
10389
+  (0.1ms) BEGIN
10390
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["LIMIT", 1]]
10391
+ 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", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["object", "{\"request\":{\"uuid\":\"22bea1de-92f0-4e84-bd8e-a77e4b0637ec\",\"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=3faafd4d089e41179dc0bad9de2ca705\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"qui\",\"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-27T18:57:19.290Z\"}}}"], ["created_at", "2018-11-29 18:41:31.973517"], ["updated_at", "2018-11-29 18:41:31.973517"]]
10392
+  (2.0ms) COMMIT
10393
+ Completed 200 OK in 14ms (Views: 0.3ms | ActiveRecord: 4.0ms)
10394
+  (0.1ms) BEGIN
10395
+  (0.1ms) ROLLBACK
10396
+  (0.1ms) BEGIN
10397
+  (0.1ms) ROLLBACK
10398
+  (0.2ms) BEGIN
10399
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]]
10400
+  (0.2ms) ROLLBACK
10401
+ UsedModel Load (0.2ms) SELECT "used_models".* FROM "used_models"
10402
+ Started GET "/api/v1/used_model/75?select=active" for 127.0.0.1 at 2018-11-29 15:41:31 -0300
10403
+ Processing by Apicasso::CrudController#show as HTML
10404
+ Parameters: {"select"=>"active", "resource"=>"used_model", "id"=>"75"}
10405
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "3faafd4d089e41179dc0bad9de2ca705"], ["LIMIT", 1]]
10406
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "75"], ["LIMIT", 1]]
10407
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 75], ["LIMIT", 1]]
10408
+  (0.1ms) BEGIN
10409
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["LIMIT", 1]]
10410
+ 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", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["object", "{\"request\":{\"uuid\":\"11ae7d03-42ca-48e0-8d1d-bb9ed08e7121\",\"url\":\"http://www.example.com/api/v1/used_model/75?select=active\",\"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=3faafd4d089e41179dc0bad9de2ca705\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"active\":false}}}"], ["created_at", "2018-11-29 18:41:31.998975"], ["updated_at", "2018-11-29 18:41:31.998975"]]
10411
+  (2.4ms) COMMIT
10412
+ Completed 200 OK in 12ms (Views: 0.1ms | ActiveRecord: 4.1ms)
10413
+  (0.1ms) BEGIN
10414
+  (0.1ms) ROLLBACK
10415
+  (0.1ms) BEGIN
10416
+  (0.1ms) ROLLBACK
10417
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
10418
+ Started GET "/api/v1/used_model/79?include=files_blobs%2Cfiles_url" for 127.0.0.1 at 2018-11-29 15:41:32 -0300
10419
+ Processing by Apicasso::CrudController#show as HTML
10420
+ Parameters: {"include"=>"files_blobs,files_url", "resource"=>"used_model", "id"=>"79"}
10421
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "3faafd4d089e41179dc0bad9de2ca705"], ["LIMIT", 1]]
10422
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "79"], ["LIMIT", 1]]
10423
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 79], ["LIMIT", 1]]
10424
+ 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", 79], ["record_type", "UsedModel"], ["name", "files"]]
10425
+ ActiveStorage::Blob Load (0.4ms) 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", 79], ["record_type", "UsedModel"], ["name", "files"]]
10426
+  (0.1ms) BEGIN
10427
+ Apicasso::Key Load (0.1ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["LIMIT", 1]]
10428
+ 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", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["object", "{\"request\":{\"uuid\":\"13e02842-701f-40b2-b3dd-5558944fd21e\",\"url\":\"http://www.example.com/api/v1/used_model/79?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=3faafd4d089e41179dc0bad9de2ca705\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":79,\"active\":true,\"account_id\":1,\"unit_id\":3,\"brand\":\"Dodge\",\"name\":\"velit\",\"slug\":\"esse\",\"model\":\"S5\",\"version\":\"8.6\",\"model_year\":2011,\"production_year\":\"2014\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"5580.68\",\"price_value\":5158,\"price\":\"9907.06\",\"category\":\"Regular Cab Pickup\",\"transmission\":\"Automanual\",\"km_value\":93695100,\"km\":\"71455621\",\"plate\":\"9994\",\"color\":\"Beige\",\"doors\":6,\"fuel\":3,\"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-29T18:34:53.622Z\",\"updated_at\":\"2018-11-29T18:41:31.724Z\",\"files_url\":[],\"files_blobs\":[]}}}"], ["created_at", "2018-11-29 18:41:32.016825"], ["updated_at", "2018-11-29 18:41:32.016825"]]
10429
+  (2.0ms) COMMIT
10430
+ Completed 200 OK in 12ms (Views: 0.3ms | ActiveRecord: 4.0ms)
10431
+  (0.1ms) BEGIN
10432
+  (0.1ms) ROLLBACK
10433
+  (0.1ms) BEGIN
10434
+  (0.1ms) ROLLBACK
10435
+  (0.1ms) BEGIN
10436
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
10437
+ Started GET "/api/v1/used_model/83?include=filess%2Cfilee" for 127.0.0.1 at 2018-11-29 15:41:32 -0300
10438
+ Processing by Apicasso::CrudController#show as HTML
10439
+ Parameters: {"include"=>"filess,filee", "resource"=>"used_model", "id"=>"83"}
10440
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "3faafd4d089e41179dc0bad9de2ca705"], ["LIMIT", 1]]
10441
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "83"], ["LIMIT", 1]]
10442
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 83], ["LIMIT", 1]]
10443
+ Completed 400 Bad Request in 3ms (ActiveRecord: 0.7ms)
10444
+  (0.1ms) ROLLBACK
10445
+ UsedModel Load (0.2ms) SELECT "used_models".* FROM "used_models"
10446
+ Started GET "/api/v1/used_model/cr-v" for 127.0.0.1 at 2018-11-29 15:41:32 -0300
10447
+ Processing by Apicasso::CrudController#show as HTML
10448
+ Parameters: {"resource"=>"used_model", "id"=>"cr-v"}
10449
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "3faafd4d089e41179dc0bad9de2ca705"], ["LIMIT", 1]]
10450
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "cr-v"], ["LIMIT", 1]]
10451
+  (0.1ms) BEGIN
10452
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["LIMIT", 1]]
10453
+ 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", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["object", "{\"request\":{\"uuid\":\"c1afaef8-2286-48d6-97d4-01ee6989255e\",\"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=3faafd4d089e41179dc0bad9de2ca705\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"qui\",\"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-27T18:57:19.290Z\"}}}"], ["created_at", "2018-11-29 18:41:32.036617"], ["updated_at", "2018-11-29 18:41:32.036617"]]
10454
+  (1.9ms) COMMIT
10455
+ Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 3.2ms)
10456
+  (0.1ms) BEGIN
10457
+  (0.1ms) ROLLBACK
10458
+  (0.1ms) BEGIN
10459
+  (0.2ms) ROLLBACK
10460
+  (0.1ms) BEGIN
10461
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "cr-v"], ["LIMIT", 1]]
10462
+  (0.1ms) ROLLBACK
10463
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
10464
+ Started POST "/api/v1/used_model/" for 127.0.0.1 at 2018-11-29 15:41:32 -0300
10465
+ Processing by Apicasso::CrudController#create as HTML
10466
+ Parameters: {"used_model"=>{"active"=>"true", "account_id"=>"1", "unit_id"=>"1", "brand"=>"Ford", "name"=>"BMW X1", "model"=>"X5", "slug"=>"voluptatem", "version"=>"8.3", "model_year"=>"2006", "production_year"=>"2017", "kind"=>"car", "new_vehicle"=>"false", "old_price"=>"6638.03", "price_value"=>"6110.75", "price"=>"5516.81", "category"=>"Crew Cab Pickup", "transmission"=>"Manual", "km_value"=>"10302610", "km"=>"89281900", "plate"=>"4563", "color"=>"Grey", "doors"=>"4", "fuel"=>"7", "fuel_text"=>"Diesel", "shielded"=>"true"}, "resource"=>"used_model"}
10467
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "3faafd4d089e41179dc0bad9de2ca705"], ["LIMIT", 1]]
10468
+  (0.1ms) BEGIN
10469
+ UsedModel Create (0.3ms) 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", 1], ["unit_id", 1], ["brand", "Ford"], ["name", "BMW X1"], ["slug", "voluptatem"], ["model", "X5"], ["version", "8.3"], ["model_year", 2006], ["production_year", "2017"], ["kind", "car"], ["old_price", "6638.03"], ["price_value", 6110], ["price", "5516.81"], ["category", "Crew Cab Pickup"], ["transmission", "Manual"], ["km_value", 10302610], ["km", "89281900"], ["plate", "4563"], ["color", "Grey"], ["doors", 4], ["fuel", 7], ["fuel_text", "Diesel"], ["shielded", true], ["created_at", "2018-11-29 18:41:32.052178"], ["updated_at", "2018-11-29 18:41:32.052178"]]
10470
+  (2.0ms) COMMIT
10471
+  (0.2ms) BEGIN
10472
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["LIMIT", 1]]
10473
+ 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", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["object", "{\"request\":{\"uuid\":\"289c218f-9510-4c1c-83c4-d160d72112da\",\"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=3faafd4d089e41179dc0bad9de2ca705\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":201,\"body\":{\"id\":84,\"active\":true,\"account_id\":1,\"unit_id\":1,\"brand\":\"Ford\",\"name\":\"BMW X1\",\"slug\":\"voluptatem\",\"model\":\"X5\",\"version\":\"8.3\",\"model_year\":2006,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"6638.03\",\"price_value\":6110,\"price\":\"5516.81\",\"category\":\"Crew Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":10302610,\"km\":\"89281900\",\"plate\":\"4563\",\"color\":\"Grey\",\"doors\":4,\"fuel\":7,\"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-29T18:41:32.052Z\",\"updated_at\":\"2018-11-29T18:41:32.052Z\"}}}"], ["created_at", "2018-11-29 18:41:32.058044"], ["updated_at", "2018-11-29 18:41:32.058044"]]
10474
+  (1.9ms) COMMIT
10475
+ Completed 201 Created in 13ms (Views: 0.1ms | ActiveRecord: 5.3ms)
10476
+  (0.1ms) BEGIN
10477
+  (0.1ms) ROLLBACK
10478
+  (0.1ms) BEGIN
10479
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
10480
+  (0.1ms) ROLLBACK
10481
+  (0.1ms) BEGIN
10482
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "voluptatem"], ["LIMIT", 1]]
10483
+  (0.1ms) ROLLBACK
10484
+  (0.1ms) BEGIN
10485
+ Started POST "/api/v1/used_model/" for 127.0.0.1 at 2018-11-29 15:41:32 -0300
10486
+ Processing by Apicasso::CrudController#create as HTML
10487
+ Parameters: {"used_model"=>{"slug"=>"cr-v"}, "resource"=>"used_model"}
10488
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "3faafd4d089e41179dc0bad9de2ca705"], ["LIMIT", 1]]
10489
+  (0.2ms) SAVEPOINT active_record_1
10490
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
10491
+  (0.1ms) SAVEPOINT active_record_1
10492
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["LIMIT", 1]]
10493
+ 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", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["object", "{\"request\":{\"uuid\":\"467b60eb-9f6c-44e7-aa83-4bb2b3bb6e3e\",\"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=3faafd4d089e41179dc0bad9de2ca705\",\"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-29 18:41:32.075997"], ["updated_at", "2018-11-29 18:41:32.075997"]]
10494
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10495
+ Completed 422 Unprocessable Entity in 12ms (Views: 0.2ms | ActiveRecord: 1.9ms)
10496
+  (0.2ms) ROLLBACK
10497
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
10498
+ Started PATCH "/api/v1/used_model/59" for 127.0.0.1 at 2018-11-29 15:41:32 -0300
10499
+ Processing by Apicasso::CrudController#update as HTML
10500
+ Parameters: {"used_model"=>{"name"=>"illum"}, "resource"=>"used_model", "id"=>"59"}
10501
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "3faafd4d089e41179dc0bad9de2ca705"], ["LIMIT", 1]]
10502
+ UsedModel Load (1.0ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "59"], ["LIMIT", 1]]
10503
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 59], ["LIMIT", 1]]
10504
+  (0.2ms) BEGIN
10505
+ UsedModel Update (0.3ms) UPDATE "used_models" SET "name" = $1, "updated_at" = $2 WHERE "used_models"."id" = $3 [["name", "illum"], ["updated_at", "2018-11-29 18:41:32.089868"], ["id", 59]]
10506
+  (1.8ms) COMMIT
10507
+  (0.1ms) BEGIN
10508
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["LIMIT", 1]]
10509
+ Apicasso::Request Create (0.2ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["object", "{\"request\":{\"uuid\":\"ebecc7c5-f6d3-4557-80b1-e9cfe15abe6d\",\"url\":\"http://www.example.com/api/v1/used_model/59\",\"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=3faafd4d089e41179dc0bad9de2ca705\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":59,\"name\":\"illum\",\"slug\":\"fugiat\",\"account_id\":9,\"unit_id\":2,\"active\":false,\"brand\":\"Lincoln\",\"model\":\"LaCrosse\",\"version\":\"7.1\",\"model_year\":2006,\"production_year\":\"2009\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2459.95\",\"price_value\":1433,\"price\":\"8153.31\",\"category\":\"Sedan\",\"transmission\":\"Automatic\",\"km_value\":58031163,\"km\":\"10576914\",\"plate\":\"9364\",\"color\":\"White\",\"doors\":5,\"fuel\":9,\"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-27T18:53:14.156Z\",\"updated_at\":\"2018-11-29T18:41:32.089Z\"}}}"], ["created_at", "2018-11-29 18:41:32.094893"], ["updated_at", "2018-11-29 18:41:32.094893"]]
10510
+  (1.8ms) COMMIT
10511
+ Completed 200 OK in 16ms (Views: 0.1ms | ActiveRecord: 6.4ms)
10512
+  (0.1ms) BEGIN
10513
+  (0.1ms) ROLLBACK
10514
+  (0.1ms) BEGIN
10515
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 59], ["LIMIT", 1]]
10516
+  (0.1ms) ROLLBACK
10517
+  (0.1ms) BEGIN
10518
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
10519
+ Started PATCH "/api/v1/used_model/79" for 127.0.0.1 at 2018-11-29 15:41:32 -0300
10520
+ Processing by Apicasso::CrudController#update as HTML
10521
+ Parameters: {"used_model"=>{"unit_id"=>nil}, "resource"=>"used_model", "id"=>"79"}
10522
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "3faafd4d089e41179dc0bad9de2ca705"], ["LIMIT", 1]]
10523
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "79"], ["LIMIT", 1]]
10524
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 79], ["LIMIT", 1]]
10525
+  (0.2ms) SAVEPOINT active_record_1
10526
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
10527
+  (0.1ms) SAVEPOINT active_record_1
10528
+ Apicasso::Key Load (0.1ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["LIMIT", 1]]
10529
+ Apicasso::Request Create (0.2ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["object", "{\"request\":{\"uuid\":\"fa42d56d-5c24-4783-8ea1-d105fb5282ae\",\"url\":\"http://www.example.com/api/v1/used_model/79\",\"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=3faafd4d089e41179dc0bad9de2ca705\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":422,\"body\":{\"unit_id\":[\"can't be blank\"]}}}"], ["created_at", "2018-11-29 18:41:32.111684"], ["updated_at", "2018-11-29 18:41:32.111684"]]
10530
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10531
+ Completed 422 Unprocessable Entity in 8ms (Views: 0.1ms | ActiveRecord: 1.7ms)
10532
+  (0.1ms) ROLLBACK
10533
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
10534
+ UsedModel Load (0.2ms) SELECT "used_models".* FROM "used_models"
10535
+ Started DELETE "/api/v1/used_model/79" for 127.0.0.1 at 2018-11-29 15:41:32 -0300
10536
+ Processing by Apicasso::CrudController#destroy as HTML
10537
+ Parameters: {"resource"=>"used_model", "id"=>"79"}
10538
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "3faafd4d089e41179dc0bad9de2ca705"], ["LIMIT", 1]]
10539
+ UsedModel Load (0.8ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "79"], ["LIMIT", 1]]
10540
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 79], ["LIMIT", 1]]
10541
+  (0.1ms) BEGIN
10542
+ UsedModel Destroy (0.2ms) DELETE FROM "used_models" WHERE "used_models"."id" = $1 [["id", 79]]
10543
+  (1.8ms) COMMIT
10544
+ 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", 79], ["record_type", "UsedModel"], ["name", "files"]]
10545
+ 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", 79], ["record_type", "UsedModel"], ["name", "file_highlighted"], ["LIMIT", 1]]
10546
+  (0.1ms) BEGIN
10547
+ Apicasso::Key Load (0.1ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["LIMIT", 1]]
10548
+ Apicasso::Request Create (0.2ms) INSERT INTO "apicasso_requests" ("api_key_id", "object", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["api_key_id", "fea0b67a-5221-4f63-a6aa-cbc1de138283"], ["object", "{\"request\":{\"uuid\":\"de0f2f85-8e44-4442-b5ec-6dc4b93d3e9b\",\"url\":\"http://www.example.com/api/v1/used_model/79\",\"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=3faafd4d089e41179dc0bad9de2ca705\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":204,\"body\":\"\"}}"], ["created_at", "2018-11-29 18:41:32.128354"], ["updated_at", "2018-11-29 18:41:32.128354"]]
10549
+  (1.8ms) COMMIT
10550
+ Completed 204 No Content in 15ms (ActiveRecord: 6.3ms)
10551
+  (0.1ms) BEGIN
10552
+  (0.2ms) ROLLBACK
10553
+  (0.1ms) BEGIN
10554
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
10555
+  (0.2ms) ROLLBACK
10556
+  (0.1ms) BEGIN
10557
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 79], ["LIMIT", 1]]
10558
+  (0.1ms) ROLLBACK
10559
+  (0.1ms) BEGIN
10560
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-29 15:41:32 -0300
10561
+ Processing by Apicasso::CrudController#index as HTML
10562
+ Parameters: {"resource"=>"used_model"}
10563
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "761f937a12234a4690239867ea138939"], ["LIMIT", 1]]
10564
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
10565
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
10566
+  (0.1ms) SAVEPOINT active_record_1
10567
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "47109fcd-7686-48e8-946d-cb3473997324"], ["LIMIT", 1]]
10568
+ 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", "47109fcd-7686-48e8-946d-cb3473997324"], ["object", "{\"request\":{\"uuid\":\"ba8de3c7-ad90-4cb7-8400-cc30e7c94250\",\"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=761f937a12234a4690239867ea138939\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"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\":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\":76,\"active\":true,\"account_id\":2,\"unit_id\":0,\"brand\":\"Audi\",\"name\":\"Dodge Charger\",\"slug\":\"illo\",\"model\":\"Pathfiner\",\"version\":\"1.8\",\"model_year\":2007,\"production_year\":\"2014\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7832.64\",\"price_value\":7314,\"price\":\"5603.87\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":10657765,\"km\":\"66431231\",\"plate\":\"2845\",\"color\":\"Black\",\"doors\":0,\"fuel\":4,\"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-29T17:08:39.793Z\",\"updated_at\":\"2018-11-29T17:08:39.793Z\"},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"qui\",\"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-27T18:57:19.290Z\"},{\"id\":71,\"active\":true,\"account_id\":9,\"unit_id\":4,\"brand\":\"Lincoln\",\"name\":\"Nissan Altima\",\"slug\":\"corporis\",\"model\":\"X3\",\"version\":\"3.2\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"5865.83\",\"price_value\":7997,\"price\":\"7773.78\",\"category\":\"Crew Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":43020803,\"km\":\"12848041\",\"plate\":\"8506\",\"color\":\"Yellow\",\"doors\":6,\"fuel\":1,\"fuel_text\":\"Electric\",\"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-29T16:53:44.672Z\",\"updated_at\":\"2018-11-29T16:53:44.672Z\"},{\"id\":80,\"active\":false,\"account_id\":9,\"unit_id\":7,\"brand\":\"Honda\",\"name\":\"Audi A4\",\"slug\":\"omnis\",\"model\":\"Juke\",\"version\":\"3.6\",\"model_year\":2012,\"production_year\":\"2018\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1789.96\",\"price_value\":5187,\"price\":\"3696.06\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":83716526,\"km\":\"71393622\",\"plate\":\"1397\",\"color\":\"Blue\",\"doors\":9,\"fuel\":8,\"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-29T18:34:53.867Z\",\"updated_at\":\"2018-11-29T18:34:53.867Z\"},{\"id\":75,\"active\":false,\"account_id\":4,\"unit_id\":1,\"brand\":\"Audi\",\"name\":\"fugit\",\"slug\":\"soluta\",\"model\":\"Civic\",\"version\":\"6.7\",\"model_year\":2011,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5078.91\",\"price_value\":1036,\"price\":\"7524.09\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":32841362,\"km\":\"97067995\",\"plate\":\"9092\",\"color\":\"Black\",\"doors\":0,\"fuel\":5,\"fuel_text\":\"Electric\",\"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-29T17:08:39.419Z\",\"updated_at\":\"2018-11-29T18:34:53.903Z\"},{\"id\":83,\"active\":false,\"account_id\":9,\"unit_id\":3,\"brand\":\"Ford\",\"name\":\"Buick Enclave\",\"slug\":\"nam\",\"model\":\"Regal\",\"version\":\"8.6\",\"model_year\":2013,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"6964.08\",\"price_value\":7778,\"price\":\"3253.01\",\"category\":\"SUV\",\"transmission\":\"CVT\",\"km_value\":20121906,\"km\":\"15637429\",\"plate\":\"7470\",\"color\":\"Grey\",\"doors\":8,\"fuel\":8,\"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-29T18:41:31.693Z\",\"updated_at\":\"2018-11-29T18:41:31.693Z\"},{\"id\":84,\"active\":true,\"account_id\":1,\"unit_id\":1,\"brand\":\"Ford\",\"name\":\"BMW X1\",\"slug\":\"voluptatem\",\"model\":\"X5\",\"version\":\"8.3\",\"model_year\":2006,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"6638.03\",\"price_value\":6110,\"price\":\"5516.81\",\"category\":\"Crew Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":10302610,\"km\":\"89281900\",\"plate\":\"4563\",\"color\":\"Grey\",\"doors\":4,\"fuel\":7,\"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-29T18:41:32.052Z\",\"updated_at\":\"2018-11-29T18:41:32.052Z\"},{\"id\":59,\"active\":false,\"account_id\":9,\"unit_id\":2,\"brand\":\"Lincoln\",\"name\":\"illum\",\"slug\":\"fugiat\",\"model\":\"LaCrosse\",\"version\":\"7.1\",\"model_year\":2006,\"production_year\":\"2009\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2459.95\",\"price_value\":1433,\"price\":\"8153.31\",\"category\":\"Sedan\",\"transmission\":\"Automatic\",\"km_value\":58031163,\"km\":\"10576914\",\"plate\":\"9364\",\"color\":\"White\",\"doors\":5,\"fuel\":9,\"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-27T18:53:14.156Z\",\"updated_at\":\"2018-11-29T18:41:32.089Z\"}],\"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-29 18:41:32.149271"], ["updated_at", "2018-11-29 18:41:32.149271"]]
10569
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10570
+ Completed 200 OK in 16ms (Views: 1.5ms | ActiveRecord: 2.1ms)
10571
+  (0.2ms) ROLLBACK
10572
+  (0.1ms) BEGIN
10573
+  (0.4ms) SELECT COUNT(*) FROM "used_models"
10574
+ Started POST "/api/v1/used_model/" for 127.0.0.1 at 2018-11-29 15:41:32 -0300
10575
+ Processing by Apicasso::CrudController#create as HTML
10576
+ Parameters: {"used_model"=>{"active"=>"true", "account_id"=>"0", "unit_id"=>"1", "brand"=>"Nissan", "name"=>"Nissan Pathfiner", "model"=>"Camry", "version"=>"8.0", "model_year"=>"2012", "production_year"=>"2017", "kind"=>"car", "new_vehicle"=>"true", "old_price"=>"2760.33", "price_value"=>"2550.13", "price"=>"6093.94", "category"=>"Wagon", "transmission"=>"Manual", "km_value"=>"45592119", "km"=>"40112424", "plate"=>"6877", "color"=>"White", "doors"=>"5", "fuel"=>"8", "fuel_text"=>"Gasoline", "shielded"=>"false"}, "resource"=>"used_model"}
10577
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "761f937a12234a4690239867ea138939"], ["LIMIT", 1]]
10578
+  (0.1ms) SAVEPOINT active_record_1
10579
+ 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", "nissan-pathfiner"], ["LIMIT", 1]]
10580
+ 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", 0], ["unit_id", 1], ["brand", "Nissan"], ["name", "Nissan Pathfiner"], ["slug", "nissan-pathfiner"], ["model", "Camry"], ["version", "8.0"], ["model_year", 2012], ["production_year", "2017"], ["kind", "car"], ["new_vehicle", true], ["old_price", "2760.33"], ["price_value", 2550], ["price", "6093.94"], ["category", "Wagon"], ["transmission", "Manual"], ["km_value", 45592119], ["km", "40112424"], ["plate", "6877"], ["color", "White"], ["doors", 5], ["fuel", 8], ["fuel_text", "Gasoline"], ["created_at", "2018-11-29 18:41:32.163404"], ["updated_at", "2018-11-29 18:41:32.163404"]]
10581
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10582
+  (0.1ms) SAVEPOINT active_record_1
10583
+ Apicasso::Key Load (0.1ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "47109fcd-7686-48e8-946d-cb3473997324"], ["LIMIT", 1]]
10584
+ 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", "47109fcd-7686-48e8-946d-cb3473997324"], ["object", "{\"request\":{\"uuid\":\"23a0939f-0de6-47de-88de-afe843f698cb\",\"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=761f937a12234a4690239867ea138939\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":201,\"body\":{\"id\":85,\"active\":true,\"account_id\":0,\"unit_id\":1,\"brand\":\"Nissan\",\"name\":\"Nissan Pathfiner\",\"slug\":\"nissan-pathfiner\",\"model\":\"Camry\",\"version\":\"8.0\",\"model_year\":2012,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2760.33\",\"price_value\":2550,\"price\":\"6093.94\",\"category\":\"Wagon\",\"transmission\":\"Manual\",\"km_value\":45592119,\"km\":\"40112424\",\"plate\":\"6877\",\"color\":\"White\",\"doors\":5,\"fuel\":8,\"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-29T18:41:32.163Z\",\"updated_at\":\"2018-11-29T18:41:32.163Z\"}}}"], ["created_at", "2018-11-29 18:41:32.166384"], ["updated_at", "2018-11-29 18:41:32.166384"]]
10585
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10586
+ Completed 201 Created in 8ms (Views: 0.1ms | ActiveRecord: 1.7ms)
10587
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
10588
+  (0.1ms) ROLLBACK
10589
+  (0.1ms) BEGIN
10590
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
10591
+ Started PATCH "/api/v1/used_model/52" for 127.0.0.1 at 2018-11-29 15:41:32 -0300
10592
+ Processing by Apicasso::CrudController#update as HTML
10593
+ Parameters: {"used_model"=>{"name"=>"Lincoln MKX"}, "resource"=>"used_model", "id"=>"52"}
10594
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "761f937a12234a4690239867ea138939"], ["LIMIT", 1]]
10595
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "52"], ["LIMIT", 1]]
10596
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 52], ["LIMIT", 1]]
10597
+  (0.1ms) SAVEPOINT active_record_1
10598
+ UsedModel Update (0.4ms) UPDATE "used_models" SET "name" = $1, "updated_at" = $2 WHERE "used_models"."id" = $3 [["name", "Lincoln MKX"], ["updated_at", "2018-11-29 18:41:32.179114"], ["id", 52]]
10599
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10600
+  (0.1ms) SAVEPOINT active_record_1
10601
+ Apicasso::Key Load (0.1ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "47109fcd-7686-48e8-946d-cb3473997324"], ["LIMIT", 1]]
10602
+ 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", "47109fcd-7686-48e8-946d-cb3473997324"], ["object", "{\"request\":{\"uuid\":\"5f9301eb-e99a-4f11-be7c-101d1c15da50\",\"url\":\"http://www.example.com/api/v1/used_model/52\",\"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=761f937a12234a4690239867ea138939\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":52,\"name\":\"Lincoln MKX\",\"slug\":\"voluptatum\",\"account_id\":9,\"unit_id\":7,\"active\":true,\"brand\":\"Lincoln\",\"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-29T18:41:32.179Z\"}}}"], ["created_at", "2018-11-29 18:41:32.182959"], ["updated_at", "2018-11-29 18:41:32.182959"]]
10603
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10604
+ Completed 200 OK in 13ms (Views: 0.1ms | ActiveRecord: 2.6ms)
10605
+  (0.1ms) ROLLBACK
10606
+  (0.1ms) BEGIN
10607
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
10608
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
10609
+ Started DELETE "/api/v1/used_model/80" for 127.0.0.1 at 2018-11-29 15:41:32 -0300
10610
+ Processing by Apicasso::CrudController#destroy as HTML
10611
+ Parameters: {"resource"=>"used_model", "id"=>"80"}
10612
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "761f937a12234a4690239867ea138939"], ["LIMIT", 1]]
10613
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "80"], ["LIMIT", 1]]
10614
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 80], ["LIMIT", 1]]
10615
+  (0.1ms) SAVEPOINT active_record_1
10616
+ UsedModel Destroy (0.2ms) DELETE FROM "used_models" WHERE "used_models"."id" = $1 [["id", 80]]
10617
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10618
+ 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", 80], ["record_type", "UsedModel"], ["name", "files"]]
10619
+ 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", 80], ["record_type", "UsedModel"], ["name", "file_highlighted"], ["LIMIT", 1]]
10620
+  (0.1ms) SAVEPOINT active_record_1
10621
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "47109fcd-7686-48e8-946d-cb3473997324"], ["LIMIT", 1]]
10622
+ 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", "47109fcd-7686-48e8-946d-cb3473997324"], ["object", "{\"request\":{\"uuid\":\"46af2b46-2d2c-43f3-9e87-45ab3b74abed\",\"url\":\"http://www.example.com/api/v1/used_model/80\",\"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=761f937a12234a4690239867ea138939\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":204,\"body\":\"\"}}"], ["created_at", "2018-11-29 18:41:32.195794"], ["updated_at", "2018-11-29 18:41:32.195794"]]
10623
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10624
+ Completed 204 No Content in 8ms (ActiveRecord: 2.4ms)
10625
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
10626
+  (0.2ms) ROLLBACK
10627
+  (0.1ms) BEGIN
10628
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-29 15:41:32 -0300
10629
+ Processing by Apicasso::CrudController#index as HTML
10630
+ Parameters: {"resource"=>"used_model"}
10631
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "394f4106ebac44a7bc3b5d95bafe9fb7"], ["LIMIT", 1]]
10632
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
10633
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
10634
+  (0.1ms) SAVEPOINT active_record_1
10635
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "ce1aee9f-e4b0-4a59-a5ca-5a26d5f83039"], ["LIMIT", 1]]
10636
+ 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", "ce1aee9f-e4b0-4a59-a5ca-5a26d5f83039"], ["object", "{\"request\":{\"uuid\":\"f3047f12-4319-455f-8b7c-5ba27b2e6141\",\"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=394f4106ebac44a7bc3b5d95bafe9fb7\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"entries\":[{\"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\":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\":76,\"active\":true,\"account_id\":2,\"unit_id\":0,\"brand\":\"Audi\",\"name\":\"Dodge Charger\",\"slug\":\"illo\",\"model\":\"Pathfiner\",\"version\":\"1.8\",\"model_year\":2007,\"production_year\":\"2014\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"7832.64\",\"price_value\":7314,\"price\":\"5603.87\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":10657765,\"km\":\"66431231\",\"plate\":\"2845\",\"color\":\"Black\",\"doors\":0,\"fuel\":4,\"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-29T17:08:39.793Z\",\"updated_at\":\"2018-11-29T17:08:39.793Z\"},{\"id\":10,\"active\":true,\"account_id\":8,\"unit_id\":4,\"brand\":\"Chevy\",\"name\":\"qui\",\"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-27T18:57:19.290Z\"},{\"id\":71,\"active\":true,\"account_id\":9,\"unit_id\":4,\"brand\":\"Lincoln\",\"name\":\"Nissan Altima\",\"slug\":\"corporis\",\"model\":\"X3\",\"version\":\"3.2\",\"model_year\":2014,\"production_year\":\"2016\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"5865.83\",\"price_value\":7997,\"price\":\"7773.78\",\"category\":\"Crew Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":43020803,\"km\":\"12848041\",\"plate\":\"8506\",\"color\":\"Yellow\",\"doors\":6,\"fuel\":1,\"fuel_text\":\"Electric\",\"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-29T16:53:44.672Z\",\"updated_at\":\"2018-11-29T16:53:44.672Z\"},{\"id\":80,\"active\":false,\"account_id\":9,\"unit_id\":7,\"brand\":\"Honda\",\"name\":\"Audi A4\",\"slug\":\"omnis\",\"model\":\"Juke\",\"version\":\"3.6\",\"model_year\":2012,\"production_year\":\"2018\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"1789.96\",\"price_value\":5187,\"price\":\"3696.06\",\"category\":\"Passenger Van\",\"transmission\":\"Automanual\",\"km_value\":83716526,\"km\":\"71393622\",\"plate\":\"1397\",\"color\":\"Blue\",\"doors\":9,\"fuel\":8,\"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-29T18:34:53.867Z\",\"updated_at\":\"2018-11-29T18:34:53.867Z\"},{\"id\":75,\"active\":false,\"account_id\":4,\"unit_id\":1,\"brand\":\"Audi\",\"name\":\"fugit\",\"slug\":\"soluta\",\"model\":\"Civic\",\"version\":\"6.7\",\"model_year\":2011,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5078.91\",\"price_value\":1036,\"price\":\"7524.09\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":32841362,\"km\":\"97067995\",\"plate\":\"9092\",\"color\":\"Black\",\"doors\":0,\"fuel\":5,\"fuel_text\":\"Electric\",\"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-29T17:08:39.419Z\",\"updated_at\":\"2018-11-29T18:34:53.903Z\"},{\"id\":83,\"active\":false,\"account_id\":9,\"unit_id\":3,\"brand\":\"Ford\",\"name\":\"Buick Enclave\",\"slug\":\"nam\",\"model\":\"Regal\",\"version\":\"8.6\",\"model_year\":2013,\"production_year\":\"2010\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"6964.08\",\"price_value\":7778,\"price\":\"3253.01\",\"category\":\"SUV\",\"transmission\":\"CVT\",\"km_value\":20121906,\"km\":\"15637429\",\"plate\":\"7470\",\"color\":\"Grey\",\"doors\":8,\"fuel\":8,\"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-29T18:41:31.693Z\",\"updated_at\":\"2018-11-29T18:41:31.693Z\"},{\"id\":84,\"active\":true,\"account_id\":1,\"unit_id\":1,\"brand\":\"Ford\",\"name\":\"BMW X1\",\"slug\":\"voluptatem\",\"model\":\"X5\",\"version\":\"8.3\",\"model_year\":2006,\"production_year\":\"2017\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"6638.03\",\"price_value\":6110,\"price\":\"5516.81\",\"category\":\"Crew Cab Pickup\",\"transmission\":\"Manual\",\"km_value\":10302610,\"km\":\"89281900\",\"plate\":\"4563\",\"color\":\"Grey\",\"doors\":4,\"fuel\":7,\"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-29T18:41:32.052Z\",\"updated_at\":\"2018-11-29T18:41:32.052Z\"},{\"id\":59,\"active\":false,\"account_id\":9,\"unit_id\":2,\"brand\":\"Lincoln\",\"name\":\"illum\",\"slug\":\"fugiat\",\"model\":\"LaCrosse\",\"version\":\"7.1\",\"model_year\":2006,\"production_year\":\"2009\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"2459.95\",\"price_value\":1433,\"price\":\"8153.31\",\"category\":\"Sedan\",\"transmission\":\"Automatic\",\"km_value\":58031163,\"km\":\"10576914\",\"plate\":\"9364\",\"color\":\"White\",\"doors\":5,\"fuel\":9,\"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-27T18:53:14.156Z\",\"updated_at\":\"2018-11-29T18:41:32.089Z\"}],\"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-29 18:41:32.209098"], ["updated_at", "2018-11-29 18:41:32.209098"]]
10637
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10638
+ Completed 200 OK in 17ms (Views: 1.5ms | ActiveRecord: 2.0ms)
10639
+  (0.2ms) ROLLBACK
10640
+  (0.1ms) BEGIN
10641
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
10642
+ Started POST "/api/v1/used_model/" for 127.0.0.1 at 2018-11-29 15:41:32 -0300
10643
+ Processing by Apicasso::CrudController#create as HTML
10644
+ Parameters: {"used_model"=>{"active"=>"true", "account_id"=>"3", "unit_id"=>"3", "brand"=>"Buick", "name"=>"Buick Encore", "model"=>"X5", "version"=>"9.4", "model_year"=>"2013", "production_year"=>"2005", "kind"=>"car", "new_vehicle"=>"false", "old_price"=>"7945.95", "price_value"=>"2206.86", "price"=>"5172.96", "category"=>"Sedan", "transmission"=>"Automatic", "km_value"=>"36333423", "km"=>"50633880", "plate"=>"8266", "color"=>"Grey", "doors"=>"5", "fuel"=>"3", "fuel_text"=>"Diesel", "shielded"=>"true"}, "resource"=>"used_model"}
10645
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "394f4106ebac44a7bc3b5d95bafe9fb7"], ["LIMIT", 1]]
10646
+ Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.3ms)
10647
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
10648
+  (0.1ms) ROLLBACK
10649
+  (0.1ms) BEGIN
10650
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
10651
+ Started PATCH "/api/v1/used_model/10" for 127.0.0.1 at 2018-11-29 15:41:32 -0300
10652
+ Processing by Apicasso::CrudController#update as HTML
10653
+ Parameters: {"used_model"=>{"name"=>"Dodge Charger"}, "resource"=>"used_model", "id"=>"10"}
10654
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "394f4106ebac44a7bc3b5d95bafe9fb7"], ["LIMIT", 1]]
10655
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "10"], ["LIMIT", 1]]
10656
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]]
10657
+ Completed 500 Internal Server Error in 4ms (ActiveRecord: 1.0ms)
10658
+  (0.2ms) ROLLBACK
10659
+  (0.1ms) BEGIN
10660
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models"
10661
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
10662
+ Started DELETE "/api/v1/used_model/75" for 127.0.0.1 at 2018-11-29 15:41:32 -0300
10663
+ Processing by Apicasso::CrudController#destroy as HTML
10664
+ Parameters: {"resource"=>"used_model", "id"=>"75"}
10665
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "394f4106ebac44a7bc3b5d95bafe9fb7"], ["LIMIT", 1]]
10666
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "75"], ["LIMIT", 1]]
10667
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 75], ["LIMIT", 1]]
10668
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.9ms)
10669
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
10670
+  (0.1ms) ROLLBACK
10671
+  (0.1ms) BEGIN
10672
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-29 15:41:32 -0300
10673
+ Processing by Apicasso::CrudController#index as HTML
10674
+ Parameters: {"resource"=>"used_model"}
10675
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "df75c269c78d4a0fb562f0275cc907f0"], ["LIMIT", 1]]
10676
+ Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.3ms)
10677
+  (0.2ms) ROLLBACK
10678
+  (0.1ms) BEGIN
10679
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
10680
+ Started POST "/api/v1/used_model/" for 127.0.0.1 at 2018-11-29 15:41:32 -0300
10681
+ Processing by Apicasso::CrudController#create as HTML
10682
+ Parameters: {"used_model"=>{"active"=>"true", "account_id"=>"4", "unit_id"=>"2", "brand"=>"Ford", "name"=>"BMW M3", "model"=>"Ram", "version"=>"9.7", "model_year"=>"2007", "production_year"=>"2018", "kind"=>"car", "new_vehicle"=>"false", "old_price"=>"9411.91", "price_value"=>"2295.26", "price"=>"9892.63", "category"=>"Regular Cab Pickup", "transmission"=>"Automanual", "km_value"=>"71255832", "km"=>"11818172", "plate"=>"6356", "color"=>"Grey", "doors"=>"6", "fuel"=>"4", "fuel_text"=>"Gasoline Hybrid", "shielded"=>"false"}, "resource"=>"used_model"}
10683
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "df75c269c78d4a0fb562f0275cc907f0"], ["LIMIT", 1]]
10684
+  (0.1ms) SAVEPOINT active_record_1
10685
+ 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", "bmw-m3"], ["LIMIT", 1]]
10686
+ UsedModel Create (0.3ms) 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", 4], ["unit_id", 2], ["brand", "Ford"], ["name", "BMW M3"], ["slug", "bmw-m3"], ["model", "Ram"], ["version", "9.7"], ["model_year", 2007], ["production_year", "2018"], ["kind", "car"], ["old_price", "9411.91"], ["price_value", 2295], ["price", "9892.63"], ["category", "Regular Cab Pickup"], ["transmission", "Automanual"], ["km_value", 71255832], ["km", "11818172"], ["plate", "6356"], ["color", "Grey"], ["doors", 6], ["fuel", 4], ["fuel_text", "Gasoline Hybrid"], ["created_at", "2018-11-29 18:41:32.254133"], ["updated_at", "2018-11-29 18:41:32.254133"]]
10687
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10688
+  (0.1ms) SAVEPOINT active_record_1
10689
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "39bf0421-ca92-4750-8763-9a650d31b1c6"], ["LIMIT", 1]]
10690
+ 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", "39bf0421-ca92-4750-8763-9a650d31b1c6"], ["object", "{\"request\":{\"uuid\":\"92eb1d41-4dfb-4536-a286-aac73f006b84\",\"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=df75c269c78d4a0fb562f0275cc907f0\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":201,\"body\":{\"id\":86,\"active\":true,\"account_id\":4,\"unit_id\":2,\"brand\":\"Ford\",\"name\":\"BMW M3\",\"slug\":\"bmw-m3\",\"model\":\"Ram\",\"version\":\"9.7\",\"model_year\":2007,\"production_year\":\"2018\",\"kind\":\"car\",\"new_vehicle\":false,\"old_price\":\"9411.91\",\"price_value\":2295,\"price\":\"9892.63\",\"category\":\"Regular Cab Pickup\",\"transmission\":\"Automanual\",\"km_value\":71255832,\"km\":\"11818172\",\"plate\":\"6356\",\"color\":\"Grey\",\"doors\":6,\"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-29T18:41:32.254Z\",\"updated_at\":\"2018-11-29T18:41:32.254Z\"}}}"], ["created_at", "2018-11-29 18:41:32.257827"], ["updated_at", "2018-11-29 18:41:32.257827"]]
10691
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10692
+ Completed 201 Created in 11ms (Views: 0.1ms | ActiveRecord: 2.2ms)
10693
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
10694
+  (0.2ms) ROLLBACK
10695
+  (0.1ms) BEGIN
10696
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
10697
+ Started PATCH "/api/v1/used_model/10" for 127.0.0.1 at 2018-11-29 15:41:32 -0300
10698
+ Processing by Apicasso::CrudController#update as HTML
10699
+ Parameters: {"used_model"=>{"name"=>"Buick Verano"}, "resource"=>"used_model", "id"=>"10"}
10700
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "df75c269c78d4a0fb562f0275cc907f0"], ["LIMIT", 1]]
10701
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "10"], ["LIMIT", 1]]
10702
+ UsedModel Load (0.6ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]]
10703
+ Completed 500 Internal Server Error in 4ms (ActiveRecord: 1.1ms)
10704
+  (0.2ms) ROLLBACK
10705
+  (0.1ms) BEGIN
10706
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
10707
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
10708
+ Started DELETE "/api/v1/used_model/80" for 127.0.0.1 at 2018-11-29 15:41:32 -0300
10709
+ Processing by Apicasso::CrudController#destroy as HTML
10710
+ Parameters: {"resource"=>"used_model", "id"=>"80"}
10711
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "df75c269c78d4a0fb562f0275cc907f0"], ["LIMIT", 1]]
10712
+ UsedModel Load (0.6ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "80"], ["LIMIT", 1]]
10713
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 80], ["LIMIT", 1]]
10714
+ Completed 500 Internal Server Error in 5ms (ActiveRecord: 1.4ms)
10715
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
10716
+  (0.2ms) ROLLBACK
10717
+  (0.1ms) BEGIN
10718
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-29 15:41:32 -0300
10719
+ Processing by Apicasso::CrudController#index as HTML
10720
+ Parameters: {"resource"=>"used_model"}
10721
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "d9016203f09d40ac84650dc467028922"], ["LIMIT", 1]]
10722
+ Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.3ms)
10723
+  (0.2ms) ROLLBACK
10724
+  (0.1ms) BEGIN
10725
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
10726
+ Started POST "/api/v1/used_model/" for 127.0.0.1 at 2018-11-29 15:41:32 -0300
10727
+ Processing by Apicasso::CrudController#create as HTML
10728
+ Parameters: {"used_model"=>{"active"=>"false", "account_id"=>"3", "unit_id"=>"4", "brand"=>"Honda", "name"=>"Toyota Camry", "model"=>"Corolla", "version"=>"2.6", "model_year"=>"2015", "production_year"=>"2014", "kind"=>"car", "new_vehicle"=>"false", "old_price"=>"5370.97", "price_value"=>"3822.34", "price"=>"7877.24", "category"=>"Minivan", "transmission"=>"Manual", "km_value"=>"10523612", "km"=>"66968613", "plate"=>"6574", "color"=>"Blue", "doors"=>"8", "fuel"=>"3", "fuel_text"=>"Compressed Natural Gas", "shielded"=>"false"}, "resource"=>"used_model"}
10729
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "d9016203f09d40ac84650dc467028922"], ["LIMIT", 1]]
10730
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.4ms)
10731
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
10732
+  (0.2ms) ROLLBACK
10733
+  (0.1ms) BEGIN
10734
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
10735
+ Started PATCH "/api/v1/used_model/75" for 127.0.0.1 at 2018-11-29 15:41:32 -0300
10736
+ Processing by Apicasso::CrudController#update as HTML
10737
+ Parameters: {"used_model"=>{"name"=>"Lincoln MKX"}, "resource"=>"used_model", "id"=>"75"}
10738
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "d9016203f09d40ac84650dc467028922"], ["LIMIT", 1]]
10739
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "75"], ["LIMIT", 1]]
10740
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 75], ["LIMIT", 1]]
10741
+  (0.2ms) SAVEPOINT active_record_1
10742
+ UsedModel Update (0.3ms) UPDATE "used_models" SET "name" = $1, "updated_at" = $2 WHERE "used_models"."id" = $3 [["name", "Lincoln MKX"], ["updated_at", "2018-11-29 18:41:32.300868"], ["id", 75]]
10743
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10744
+  (0.1ms) SAVEPOINT active_record_1
10745
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "07acc695-4afe-415f-b4ae-67099ee8696d"], ["LIMIT", 1]]
10746
+ 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", "07acc695-4afe-415f-b4ae-67099ee8696d"], ["object", "{\"request\":{\"uuid\":\"7233254a-236b-4d05-b4c5-21be46bb8631\",\"url\":\"http://www.example.com/api/v1/used_model/75\",\"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=d9016203f09d40ac84650dc467028922\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":200,\"body\":{\"id\":75,\"name\":\"Lincoln MKX\",\"slug\":\"soluta\",\"account_id\":4,\"unit_id\":1,\"active\":false,\"brand\":\"Audi\",\"model\":\"Civic\",\"version\":\"6.7\",\"model_year\":2011,\"production_year\":\"2011\",\"kind\":\"car\",\"new_vehicle\":true,\"old_price\":\"5078.91\",\"price_value\":1036,\"price\":\"7524.09\",\"category\":\"Cargo Van\",\"transmission\":\"Automanual\",\"km_value\":32841362,\"km\":\"97067995\",\"plate\":\"9092\",\"color\":\"Black\",\"doors\":0,\"fuel\":5,\"fuel_text\":\"Electric\",\"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-29T17:08:39.419Z\",\"updated_at\":\"2018-11-29T18:41:32.300Z\"}}}"], ["created_at", "2018-11-29 18:41:32.304630"], ["updated_at", "2018-11-29 18:41:32.304630"]]
10747
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10748
+ Completed 200 OK in 10ms (Views: 0.1ms | ActiveRecord: 2.4ms)
10749
+  (0.2ms) ROLLBACK
10750
+  (0.1ms) BEGIN
10751
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
10752
+  (0.2ms) SELECT COUNT(*) FROM "used_models"
10753
+ Started DELETE "/api/v1/used_model/80" for 127.0.0.1 at 2018-11-29 15:41:32 -0300
10754
+ Processing by Apicasso::CrudController#destroy as HTML
10755
+ Parameters: {"resource"=>"used_model", "id"=>"80"}
10756
+ Apicasso::Key Load (0.4ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "d9016203f09d40ac84650dc467028922"], ["LIMIT", 1]]
10757
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "80"], ["LIMIT", 1]]
10758
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 80], ["LIMIT", 1]]
10759
+ Completed 500 Internal Server Error in 4ms (ActiveRecord: 1.1ms)
10760
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
10761
+  (0.1ms) ROLLBACK
10762
+  (0.3ms) BEGIN
10763
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-29 15:41:32 -0300
10764
+ Processing by Apicasso::CrudController#index as HTML
10765
+ Parameters: {"resource"=>"used_model"}
10766
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "85d5d65d66e542378b7d7755c9ba5bb7"], ["LIMIT", 1]]
10767
+ Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.3ms)
10768
+  (0.2ms) ROLLBACK
10769
+  (0.1ms) BEGIN
10770
+  (0.5ms) SELECT COUNT(*) FROM "used_models"
10771
+ Started POST "/api/v1/used_model/" for 127.0.0.1 at 2018-11-29 15:41:32 -0300
10772
+ Processing by Apicasso::CrudController#create as HTML
10773
+ Parameters: {"used_model"=>{"active"=>"false", "account_id"=>"8", "unit_id"=>"2", "brand"=>"Audi", "name"=>"Chevy Malibu", "model"=>"Altima", "version"=>"1.6", "model_year"=>"2014", "production_year"=>"2012", "kind"=>"car", "new_vehicle"=>"false", "old_price"=>"6046.31", "price_value"=>"7115.87", "price"=>"6745.91", "category"=>"Coupe", "transmission"=>"CVT", "km_value"=>"94040233", "km"=>"58373396", "plate"=>"4662", "color"=>"Orange", "doors"=>"0", "fuel"=>"6", "fuel_text"=>"Diesel", "shielded"=>"false"}, "resource"=>"used_model"}
10774
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "85d5d65d66e542378b7d7755c9ba5bb7"], ["LIMIT", 1]]
10775
+ Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.3ms)
10776
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
10777
+  (0.1ms) ROLLBACK
10778
+  (0.1ms) BEGIN
10779
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models"
10780
+ Started PATCH "/api/v1/used_model/52" for 127.0.0.1 at 2018-11-29 15:41:32 -0300
10781
+ Processing by Apicasso::CrudController#update as HTML
10782
+ Parameters: {"used_model"=>{"name"=>"Chevy Camero"}, "resource"=>"used_model", "id"=>"52"}
10783
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "85d5d65d66e542378b7d7755c9ba5bb7"], ["LIMIT", 1]]
10784
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "52"], ["LIMIT", 1]]
10785
+ UsedModel Load (0.3ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 52], ["LIMIT", 1]]
10786
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.9ms)
10787
+  (0.2ms) ROLLBACK
10788
+  (0.1ms) BEGIN
10789
+ UsedModel Load (0.5ms) SELECT "used_models".* FROM "used_models"
10790
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
10791
+ Started DELETE "/api/v1/used_model/84" for 127.0.0.1 at 2018-11-29 15:41:32 -0300
10792
+ Processing by Apicasso::CrudController#destroy as HTML
10793
+ Parameters: {"resource"=>"used_model", "id"=>"84"}
10794
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "85d5d65d66e542378b7d7755c9ba5bb7"], ["LIMIT", 1]]
10795
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."slug" = $1 LIMIT $2 [["slug", "84"], ["LIMIT", 1]]
10796
+ UsedModel Load (0.4ms) SELECT "used_models".* FROM "used_models" WHERE "used_models"."id" = $1 LIMIT $2 [["id", 84], ["LIMIT", 1]]
10797
+  (0.1ms) SAVEPOINT active_record_1
10798
+ UsedModel Destroy (0.3ms) DELETE FROM "used_models" WHERE "used_models"."id" = $1 [["id", 84]]
10799
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10800
+ 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", 84], ["record_type", "UsedModel"], ["name", "files"]]
10801
+ 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", 84], ["record_type", "UsedModel"], ["name", "file_highlighted"], ["LIMIT", 1]]
10802
+  (0.1ms) SAVEPOINT active_record_1
10803
+ Apicasso::Key Load (0.2ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."id" = $1 LIMIT $2 [["id", "1d5c6d2c-108a-4dc1-9928-0d6498a37089"], ["LIMIT", 1]]
10804
+ 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", "1d5c6d2c-108a-4dc1-9928-0d6498a37089"], ["object", "{\"request\":{\"uuid\":\"fa88028f-3d7a-4ce5-aab7-64eda5839dd5\",\"url\":\"http://www.example.com/api/v1/used_model/84\",\"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=85d5d65d66e542378b7d7755c9ba5bb7\",\"HTTP_COOKIE\":\"\"},\"ip\":\"127.0.0.1\"},\"response\":{\"status\":204,\"body\":\"\"}}"], ["created_at", "2018-11-29 18:41:32.349226"], ["updated_at", "2018-11-29 18:41:32.349226"]]
10805
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10806
+ Completed 204 No Content in 10ms (ActiveRecord: 3.1ms)
10807
+  (0.3ms) SELECT COUNT(*) FROM "used_models"
10808
+  (0.1ms) ROLLBACK
10809
+  (0.1ms) BEGIN
10810
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-29 15:41:32 -0300
10811
+ Processing by Apicasso::CrudController#index as HTML
10812
+ Parameters: {"resource"=>"used_model"}
10813
+ Apicasso::Key Load (0.3ms) SELECT "apicasso_keys".* FROM "apicasso_keys" WHERE "apicasso_keys"."token" = $1 LIMIT $2 [["token", "notavalidtoken"], ["LIMIT", 1]]
10814
+ Filter chain halted as :restrict_access rendered or redirected
10815
+ Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.3ms)
10816
+  (0.2ms) ROLLBACK
10817
+  (0.1ms) BEGIN
10818
+ Started GET "/api/v1/used_model" for 127.0.0.1 at 2018-11-29 15:41:32 -0300
10819
+ Processing by Apicasso::CrudController#index as HTML
10820
+ Parameters: {"resource"=>"used_model"}
10821
+ Filter chain halted as :restrict_access rendered or redirected
10822
+ Completed 401 Unauthorized in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
10823
+  (0.2ms) ROLLBACK
10824
+  (0.1ms) BEGIN
10825
+  (0.4ms) 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
10826
+  (0.1ms) COMMIT
10827
+  (1.4ms)  SELECT schemaname || '.' || tablename
10828
+ FROM pg_tables
10829
+ WHERE
10830
+ tablename !~ '_prt_' AND
10831
+ tablename <> 'schema_migrations' AND tablename <> 'ar_internal_metadata' AND
10832
+ schemaname = ANY (current_schemas(false))
10833
+ 
10834
+  (0.9ms) select table_name from information_schema.views where table_schema = 'used_models_test'
10835
+  (11.1ms) TRUNCATE TABLE "apicasso_keys" RESTART IDENTITY CASCADE;
10836
+  (0.1ms) BEGIN
10837
+  (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
10838
+  (0.1ms) COMMIT