Browse Source

Add '; charset=utf-8' to 'Content-Type' header

Maurits van der Schee 4 years ago
parent
commit
227066ee2a
100 changed files with 239 additions and 239 deletions
  1. 1
    1
      tests/functional/001_records/001_list_posts.log
  2. 1
    1
      tests/functional/001_records/002_list_post_columns.log
  3. 1
    1
      tests/functional/001_records/003_read_post.log
  4. 1
    1
      tests/functional/001_records/004_read_posts.log
  5. 1
    1
      tests/functional/001_records/005_read_post_columns.log
  6. 2
    2
      tests/functional/001_records/006_add_post.log
  7. 2
    2
      tests/functional/001_records/007_edit_post.log
  8. 2
    2
      tests/functional/001_records/008_edit_post_columns_missing_field.log
  9. 2
    2
      tests/functional/001_records/009_edit_post_columns_extra_field.log
  10. 2
    2
      tests/functional/001_records/010_edit_post_with_utf8_content.log
  11. 2
    2
      tests/functional/001_records/011_edit_post_with_utf8_content_with_post.log
  12. 2
    2
      tests/functional/001_records/012_delete_post.log
  13. 1
    1
      tests/functional/001_records/013_add_post_with_post.log
  14. 2
    2
      tests/functional/001_records/014_edit_post_with_post.log
  15. 2
    2
      tests/functional/001_records/015_delete_post_ignore_columns.log
  16. 11
    11
      tests/functional/001_records/016_list_with_paginate.log
  17. 2
    2
      tests/functional/001_records/017_edit_post_primary_key.log
  18. 2
    2
      tests/functional/001_records/018_add_post_missing_field.log
  19. 1
    1
      tests/functional/001_records/019_list_with_paginate_in_multiple_order.log
  20. 1
    1
      tests/functional/001_records/020_list_with_paginate_in_descending_order.log
  21. 1
    1
      tests/functional/001_records/021_list_with_size.log
  22. 1
    1
      tests/functional/001_records/022_list_with_zero_page_size.log
  23. 1
    1
      tests/functional/001_records/023_list_with_zero_size.log
  24. 1
    1
      tests/functional/001_records/024_list_with_paginate_last_page.log
  25. 1
    1
      tests/functional/001_records/025_list_example_from_readme_full_record.log
  26. 1
    1
      tests/functional/001_records/026_list_example_from_readme_with_exclude.log
  27. 1
    1
      tests/functional/001_records/027_list_example_from_readme_users_only.log
  28. 1
    1
      tests/functional/001_records/028_read_example_from_readme_users_only.log
  29. 1
    1
      tests/functional/001_records/029_list_example_from_readme_comments_only.log
  30. 1
    1
      tests/functional/001_records/030_list_example_from_readme_tags_only.log
  31. 1
    1
      tests/functional/001_records/031_list_example_from_readme_tags_with_join_path.log
  32. 1
    1
      tests/functional/001_records/032_list_example_from_readme.log
  33. 1
    1
      tests/functional/001_records/033_list_example_from_readme_tag_name_only.log
  34. 1
    1
      tests/functional/001_records/034_list_example_from_readme_with_transform_with_exclude.log
  35. 2
    2
      tests/functional/001_records/035_edit_category_with_binary_content.log
  36. 4
    4
      tests/functional/001_records/036_edit_category_with_null.log
  37. 2
    2
      tests/functional/001_records/037_edit_category_with_binary_content_with_post.log
  38. 1
    1
      tests/functional/001_records/038_list_categories_with_binary_content.log
  39. 2
    2
      tests/functional/001_records/039_edit_category_with_null_with_post.log
  40. 1
    1
      tests/functional/001_records/040_add_post_failure.log
  41. 1
    1
      tests/functional/001_records/042_cors_headers.log
  42. 2
    2
      tests/functional/001_records/043_error_on_invalid_json.log
  43. 2
    2
      tests/functional/001_records/044_error_on_duplicate_unique_key.log
  44. 1
    1
      tests/functional/001_records/045_error_on_failing_foreign_key_constraint.log
  45. 1
    1
      tests/functional/001_records/046_error_on_non_existing_table.log
  46. 1
    1
      tests/functional/001_records/047_error_on_invalid_path.log
  47. 1
    1
      tests/functional/001_records/048_error_on_invalid_argument_count.log
  48. 1
    1
      tests/functional/001_records/049_error_on_invalid_argument_count.log
  49. 1
    1
      tests/functional/001_records/050_no_error_on_argument_count_one.log
  50. 1
    1
      tests/functional/001_records/051_error_on_invalid_argument_count.log
  51. 2
    2
      tests/functional/001_records/052_edit_user_location.log
  52. 1
    1
      tests/functional/001_records/053_list_user_locations.log
  53. 2
    2
      tests/functional/001_records/054_edit_user_with_id.log
  54. 2
    2
      tests/functional/001_records/055_filter_category_on_null_icon.log
  55. 1
    1
      tests/functional/001_records/056_filter_category_on_not_null_icon.log
  56. 3
    3
      tests/functional/001_records/057_filter_on_and.log
  57. 1
    1
      tests/functional/001_records/058_filter_on_or.log
  58. 1
    1
      tests/functional/001_records/059_filter_on_and_plus_or.log
  59. 1
    1
      tests/functional/001_records/060_filter_on_or_plus_and.log
  60. 1
    1
      tests/functional/001_records/061_get_post_content_with_included_tag_names.log
  61. 2
    2
      tests/functional/001_records/062_read_kunsthandvaerk.log
  62. 1
    1
      tests/functional/001_records/063_list_kunsthandvaerk.log
  63. 1
    1
      tests/functional/001_records/064_add_kunsthandvaerk.log
  64. 1
    1
      tests/functional/001_records/065_edit_kunsthandvaerk.log
  65. 1
    1
      tests/functional/001_records/066_delete_kunsthandvaerk.log
  66. 1
    1
      tests/functional/001_records/067_edit_comment_with_validation.log
  67. 2
    2
      tests/functional/001_records/068_add_comment_with_sanitation.log
  68. 7
    7
      tests/functional/001_records/069_increment_event_visitors.log
  69. 1
    1
      tests/functional/001_records/070_list_invisibles.log
  70. 2
    2
      tests/functional/001_records/071_add_comment_with_invisible_record.log
  71. 1
    1
      tests/functional/001_records/072_list_nopk.log
  72. 6
    6
      tests/functional/001_records/073_multi_tenancy_kunsthandvaerk.log
  73. 2
    2
      tests/functional/001_records/074_custom_kunsthandvaerk.log
  74. 2
    2
      tests/functional/001_records/075_list_tag_usage.log
  75. 1
    1
      tests/functional/001_records/076_list_user_locations_within_geometry.log
  76. 4
    4
      tests/functional/001_records/077_list_posts_with_page_limits.log
  77. 5
    5
      tests/functional/001_records/078_edit_event_with_nullable_bigint.log
  78. 4
    4
      tests/functional/001_records/079_read_post_with_categories.log
  79. 5
    5
      tests/functional/001_records/080_add_barcode_with_ip_address.log
  80. 9
    9
      tests/functional/001_records/081_read_countries_as_geojson.log
  81. 2
    2
      tests/functional/001_records/082_read_users_as_geojson.log
  82. 5
    5
      tests/functional/001_records/083_list_users_as_geojson.log
  83. 5
    5
      tests/functional/001_records/084_update_tags_with_boolean.log
  84. 5
    5
      tests/functional/001_records/085_update_invisble_column_kunsthandvaerk.log
  85. 4
    4
      tests/functional/001_records/086_add_and_update_posts_in_large_batch.log
  86. 13
    13
      tests/functional/001_records/087_read_and_write_posts_as_xml.log
  87. 3
    3
      tests/functional/001_records/088_read_and_write_multiple_posts_as_xml.log
  88. 4
    4
      tests/functional/002_auth/001_jwt_auth.log
  89. 4
    4
      tests/functional/002_auth/002_basic_auth.log
  90. 10
    10
      tests/functional/002_auth/003_db_auth.log
  91. 1
    1
      tests/functional/003_columns/001_get_database.log
  92. 1
    1
      tests/functional/003_columns/002_get_barcodes_table.log
  93. 1
    1
      tests/functional/003_columns/003_get_barcodes_id_column.log
  94. 4
    4
      tests/functional/003_columns/004_update_barcodes_id_column.log
  95. 4
    4
      tests/functional/003_columns/005_update_barcodes_product_id_nullable.log
  96. 9
    9
      tests/functional/003_columns/006_update_events_visitors_pk.log
  97. 4
    4
      tests/functional/003_columns/007_update_barcodes_product_id_fk.log
  98. 4
    4
      tests/functional/003_columns/008_update_barcodes_table.log
  99. 4
    4
      tests/functional/003_columns/009_update_barcodes_hex_type.log
  100. 0
    0
      tests/functional/003_columns/010_create_barcodes_table.log

+ 1
- 1
tests/functional/001_records/001_list_posts.log View File

2
 GET /records/posts
2
 GET /records/posts
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 134
6
 Content-Length: 134
7
 
7
 
8
 {"records":[{"id":1,"user_id":1,"category_id":1,"content":"blog started"},{"id":2,"user_id":1,"category_id":2,"content":"It works!"}]}
8
 {"records":[{"id":1,"user_id":1,"category_id":1,"content":"blog started"},{"id":2,"user_id":1,"category_id":2,"content":"It works!"}]}

+ 1
- 1
tests/functional/001_records/002_list_post_columns.log View File

2
 GET /records/posts?include=id,content
2
 GET /records/posts?include=id,content
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 78
6
 Content-Length: 78
7
 
7
 
8
 {"records":[{"id":1,"content":"blog started"},{"id":2,"content":"It works!"}]}
8
 {"records":[{"id":1,"content":"blog started"},{"id":2,"content":"It works!"}]}

+ 1
- 1
tests/functional/001_records/003_read_post.log View File

2
 GET /records/posts/2
2
 GET /records/posts/2
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 58
6
 Content-Length: 58
7
 
7
 
8
 {"id":2,"user_id":1,"category_id":2,"content":"It works!"}
8
 {"id":2,"user_id":1,"category_id":2,"content":"It works!"}

+ 1
- 1
tests/functional/001_records/004_read_posts.log View File

2
 GET /records/posts/1,2
2
 GET /records/posts/1,2
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 122
6
 Content-Length: 122
7
 
7
 
8
 [{"id":1,"user_id":1,"category_id":1,"content":"blog started"},{"id":2,"user_id":1,"category_id":2,"content":"It works!"}]
8
 [{"id":1,"user_id":1,"category_id":1,"content":"blog started"},{"id":2,"user_id":1,"category_id":2,"content":"It works!"}]

+ 1
- 1
tests/functional/001_records/005_read_post_columns.log View File

2
 GET /records/posts/2?include=id,content
2
 GET /records/posts/2?include=id,content
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 30
6
 Content-Length: 30
7
 
7
 
8
 {"id":2,"content":"It works!"}
8
 {"id":2,"content":"It works!"}

+ 2
- 2
tests/functional/001_records/006_add_post.log View File

1
 ===
1
 ===
2
 POST /records/posts
2
 POST /records/posts
3
-Content-Type: application/json
3
+Content-Type: application/json; charset=utf-8
4
 
4
 
5
 {"user_id":1,"category_id":1,"content":"test"}
5
 {"user_id":1,"category_id":1,"content":"test"}
6
 ===
6
 ===
7
 200
7
 200
8
-Content-Type: application/json
8
+Content-Type: application/json; charset=utf-8
9
 Content-Length: 1
9
 Content-Length: 1
10
 
10
 
11
 3
11
 3

+ 2
- 2
tests/functional/001_records/007_edit_post.log View File

4
 {"user_id":1,"category_id":1,"content":"test (edited)"}
4
 {"user_id":1,"category_id":1,"content":"test (edited)"}
5
 ===
5
 ===
6
 200
6
 200
7
-Content-Type: application/json
7
+Content-Type: application/json; charset=utf-8
8
 Content-Length: 1
8
 Content-Length: 1
9
 
9
 
10
 1
10
 1
12
 GET /records/posts/3
12
 GET /records/posts/3
13
 ===
13
 ===
14
 200
14
 200
15
-Content-Type: application/json
15
+Content-Type: application/json; charset=utf-8
16
 Content-Length: 62
16
 Content-Length: 62
17
 
17
 
18
 {"id":3,"user_id":1,"category_id":1,"content":"test (edited)"}
18
 {"id":3,"user_id":1,"category_id":1,"content":"test (edited)"}

+ 2
- 2
tests/functional/001_records/008_edit_post_columns_missing_field.log View File

4
 {"content":"test (edited 2)"}
4
 {"content":"test (edited 2)"}
5
 ===
5
 ===
6
 200
6
 200
7
-Content-Type: application/json
7
+Content-Type: application/json; charset=utf-8
8
 Content-Length: 1
8
 Content-Length: 1
9
 
9
 
10
 1
10
 1
12
 GET /records/posts/3
12
 GET /records/posts/3
13
 ===
13
 ===
14
 200
14
 200
15
-Content-Type: application/json
15
+Content-Type: application/json; charset=utf-8
16
 Content-Length: 64
16
 Content-Length: 64
17
 
17
 
18
 {"id":3,"user_id":1,"category_id":1,"content":"test (edited 2)"}
18
 {"id":3,"user_id":1,"category_id":1,"content":"test (edited 2)"}

+ 2
- 2
tests/functional/001_records/009_edit_post_columns_extra_field.log View File

4
 {"user_id":2,"content":"test (edited 3)"}
4
 {"user_id":2,"content":"test (edited 3)"}
5
 ===
5
 ===
6
 200
6
 200
7
-Content-Type: application/json
7
+Content-Type: application/json; charset=utf-8
8
 Content-Length: 1
8
 Content-Length: 1
9
 
9
 
10
 1
10
 1
12
 GET /records/posts/3
12
 GET /records/posts/3
13
 ===
13
 ===
14
 200
14
 200
15
-Content-Type: application/json
15
+Content-Type: application/json; charset=utf-8
16
 Content-Length: 64
16
 Content-Length: 64
17
 
17
 
18
 {"id":3,"user_id":1,"category_id":1,"content":"test (edited 3)"}
18
 {"id":3,"user_id":1,"category_id":1,"content":"test (edited 3)"}

+ 2
- 2
tests/functional/001_records/010_edit_post_with_utf8_content.log View File

4
 {"content":"🤗 Grüßgott, Вiтаю, dobrý deň, hyvää päivää, გამარჯობა, Γεια σας, góðan dag, здравствуйте"}
4
 {"content":"🤗 Grüßgott, Вiтаю, dobrý deň, hyvää päivää, გამარჯობა, Γεια σας, góðan dag, здравствуйте"}
5
 ===
5
 ===
6
 200
6
 200
7
-Content-Type: application/json
7
+Content-Type: application/json; charset=utf-8
8
 Content-Length: 1
8
 Content-Length: 1
9
 
9
 
10
 1
10
 1
12
 GET /records/posts/2
12
 GET /records/posts/2
13
 ===
13
 ===
14
 200
14
 200
15
-Content-Type: application/json
15
+Content-Type: application/json; charset=utf-8
16
 Content-Length: 192
16
 Content-Length: 192
17
 
17
 
18
 {"id":2,"user_id":1,"category_id":2,"content":"🤗 Grüßgott, Вiтаю, dobrý deň, hyvää päivää, გამარჯობა, Γεια σας, góðan dag, здравствуйте"}
18
 {"id":2,"user_id":1,"category_id":2,"content":"🤗 Grüßgott, Вiтаю, dobrý deň, hyvää päivää, გამარჯობა, Γεια σας, góðan dag, здравствуйте"}

+ 2
- 2
tests/functional/001_records/011_edit_post_with_utf8_content_with_post.log View File

5
 content=%F0%9F%A6%80%E2%82%AC%20Gr%C3%BC%C3%9Fgott%2C%20%D0%92i%D1%82%D0%B0%D1%8E%2C%20dobr%C3%BD%20de%C5%88%2C%20hyv%C3%A4%C3%A4%20p%C3%A4iv%C3%A4%C3%A4%2C%20%E1%83%92%E1%83%90%E1%83%9B%E1%83%90%E1%83%A0%E1%83%AF%E1%83%9D%E1%83%91%E1%83%90%2C%20%CE%93%CE%B5%CE%B9%CE%B1%20%CF%83%CE%B1%CF%82%2C%20g%C3%B3%C3%B0an%20dag%2C%20%D0%B7%D0%B4%D1%80%D0%B0%D0%B2%D1%81%D1%82%D0%B2%D1%83%D0%B9%D1%82%D0%B5
5
 content=%F0%9F%A6%80%E2%82%AC%20Gr%C3%BC%C3%9Fgott%2C%20%D0%92i%D1%82%D0%B0%D1%8E%2C%20dobr%C3%BD%20de%C5%88%2C%20hyv%C3%A4%C3%A4%20p%C3%A4iv%C3%A4%C3%A4%2C%20%E1%83%92%E1%83%90%E1%83%9B%E1%83%90%E1%83%A0%E1%83%AF%E1%83%9D%E1%83%91%E1%83%90%2C%20%CE%93%CE%B5%CE%B9%CE%B1%20%CF%83%CE%B1%CF%82%2C%20g%C3%B3%C3%B0an%20dag%2C%20%D0%B7%D0%B4%D1%80%D0%B0%D0%B2%D1%81%D1%82%D0%B2%D1%83%D0%B9%D1%82%D0%B5
6
 ===
6
 ===
7
 200
7
 200
8
-Content-Type: application/json
8
+Content-Type: application/json; charset=utf-8
9
 Content-Length: 1
9
 Content-Length: 1
10
 
10
 
11
 1
11
 1
13
 GET /records/posts/2
13
 GET /records/posts/2
14
 ===
14
 ===
15
 200
15
 200
16
-Content-Type: application/json
16
+Content-Type: application/json; charset=utf-8
17
 Content-Length: 195
17
 Content-Length: 195
18
 
18
 
19
 {"id":2,"user_id":1,"category_id":2,"content":"🦀€ Grüßgott, Вiтаю, dobrý deň, hyvää päivää, გამარჯობა, Γεια σας, góðan dag, здравствуйте"}
19
 {"id":2,"user_id":1,"category_id":2,"content":"🦀€ Grüßgott, Вiтаю, dobrý deň, hyvää päivää, გამარჯობა, Γεια σας, góðan dag, здравствуйте"}

+ 2
- 2
tests/functional/001_records/012_delete_post.log View File

2
 DELETE /records/posts/3
2
 DELETE /records/posts/3
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 1
6
 Content-Length: 1
7
 
7
 
8
 1
8
 1
10
 GET /records/posts/3
10
 GET /records/posts/3
11
 ===
11
 ===
12
 404
12
 404
13
-Content-Type: application/json
13
+Content-Type: application/json; charset=utf-8
14
 Content-Length: 46
14
 Content-Length: 46
15
 
15
 
16
 {"code":1003,"message":"Record '3' not found"}
16
 {"code":1003,"message":"Record '3' not found"}

+ 1
- 1
tests/functional/001_records/013_add_post_with_post.log View File

4
 user_id=1&category_id=1&content=test
4
 user_id=1&category_id=1&content=test
5
 ===
5
 ===
6
 200
6
 200
7
-Content-Type: application/json
7
+Content-Type: application/json; charset=utf-8
8
 Content-Length: 1
8
 Content-Length: 1
9
 
9
 
10
 4
10
 4

+ 2
- 2
tests/functional/001_records/014_edit_post_with_post.log View File

4
 user_id=1&category_id=1&content=test+(edited)
4
 user_id=1&category_id=1&content=test+(edited)
5
 ===
5
 ===
6
 200
6
 200
7
-Content-Type: application/json
7
+Content-Type: application/json; charset=utf-8
8
 Content-Length: 1
8
 Content-Length: 1
9
 
9
 
10
 1
10
 1
12
 GET /records/posts/4
12
 GET /records/posts/4
13
 ===
13
 ===
14
 200
14
 200
15
-Content-Type: application/json
15
+Content-Type: application/json; charset=utf-8
16
 Content-Length: 62
16
 Content-Length: 62
17
 
17
 
18
 {"id":4,"user_id":1,"category_id":1,"content":"test (edited)"}
18
 {"id":4,"user_id":1,"category_id":1,"content":"test (edited)"}

+ 2
- 2
tests/functional/001_records/015_delete_post_ignore_columns.log View File

2
 DELETE /records/posts/4?include=id,content
2
 DELETE /records/posts/4?include=id,content
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 1
6
 Content-Length: 1
7
 
7
 
8
 1
8
 1
10
 GET /records/posts/4
10
 GET /records/posts/4
11
 ===
11
 ===
12
 404
12
 404
13
-Content-Type: application/json
13
+Content-Type: application/json; charset=utf-8
14
 Content-Length: 46
14
 Content-Length: 46
15
 
15
 
16
 {"code":1003,"message":"Record '4' not found"}
16
 {"code":1003,"message":"Record '4' not found"}

+ 11
- 11
tests/functional/001_records/016_list_with_paginate.log View File

4
 {"user_id":1,"category_id":1,"content":"#1"}
4
 {"user_id":1,"category_id":1,"content":"#1"}
5
 ===
5
 ===
6
 200
6
 200
7
-Content-Type: application/json
7
+Content-Type: application/json; charset=utf-8
8
 Content-Length: 1
8
 Content-Length: 1
9
 
9
 
10
 5
10
 5
14
 {"user_id":1,"category_id":1,"content":"#2"}
14
 {"user_id":1,"category_id":1,"content":"#2"}
15
 ===
15
 ===
16
 200
16
 200
17
-Content-Type: application/json
17
+Content-Type: application/json; charset=utf-8
18
 Content-Length: 1
18
 Content-Length: 1
19
 
19
 
20
 6
20
 6
24
 {"user_id":1,"category_id":1,"content":"#3"}
24
 {"user_id":1,"category_id":1,"content":"#3"}
25
 ===
25
 ===
26
 200
26
 200
27
-Content-Type: application/json
27
+Content-Type: application/json; charset=utf-8
28
 Content-Length: 1
28
 Content-Length: 1
29
 
29
 
30
 7
30
 7
34
 {"user_id":1,"category_id":1,"content":"#4"}
34
 {"user_id":1,"category_id":1,"content":"#4"}
35
 ===
35
 ===
36
 200
36
 200
37
-Content-Type: application/json
37
+Content-Type: application/json; charset=utf-8
38
 Content-Length: 1
38
 Content-Length: 1
39
 
39
 
40
 8
40
 8
44
 {"user_id":1,"category_id":1,"content":"#5"}
44
 {"user_id":1,"category_id":1,"content":"#5"}
45
 ===
45
 ===
46
 200
46
 200
47
-Content-Type: application/json
47
+Content-Type: application/json; charset=utf-8
48
 Content-Length: 1
48
 Content-Length: 1
49
 
49
 
50
 9
50
 9
54
 {"user_id":1,"category_id":1,"content":"#6"}
54
 {"user_id":1,"category_id":1,"content":"#6"}
55
 ===
55
 ===
56
 200
56
 200
57
-Content-Type: application/json
57
+Content-Type: application/json; charset=utf-8
58
 Content-Length: 2
58
 Content-Length: 2
59
 
59
 
60
 10
60
 10
64
 {"user_id":1,"category_id":1,"content":"#7"}
64
 {"user_id":1,"category_id":1,"content":"#7"}
65
 ===
65
 ===
66
 200
66
 200
67
-Content-Type: application/json
67
+Content-Type: application/json; charset=utf-8
68
 Content-Length: 2
68
 Content-Length: 2
69
 
69
 
70
 11
70
 11
74
 {"user_id":1,"category_id":1,"content":"#8"}
74
 {"user_id":1,"category_id":1,"content":"#8"}
75
 ===
75
 ===
76
 200
76
 200
77
-Content-Type: application/json
77
+Content-Type: application/json; charset=utf-8
78
 Content-Length: 2
78
 Content-Length: 2
79
 
79
 
80
 12
80
 12
84
 {"user_id":1,"category_id":1,"content":"#9"}
84
 {"user_id":1,"category_id":1,"content":"#9"}
85
 ===
85
 ===
86
 200
86
 200
87
-Content-Type: application/json
87
+Content-Type: application/json; charset=utf-8
88
 Content-Length: 2
88
 Content-Length: 2
89
 
89
 
90
 13
90
 13
94
 {"user_id":1,"category_id":1,"content":"#10"}
94
 {"user_id":1,"category_id":1,"content":"#10"}
95
 ===
95
 ===
96
 200
96
 200
97
-Content-Type: application/json
97
+Content-Type: application/json; charset=utf-8
98
 Content-Length: 2
98
 Content-Length: 2
99
 
99
 
100
 14
100
 14
102
 GET /records/posts?page=2,2&order=id
102
 GET /records/posts?page=2,2&order=id
103
 ===
103
 ===
104
 200
104
 200
105
-Content-Type: application/json
105
+Content-Type: application/json; charset=utf-8
106
 Content-Length: 130
106
 Content-Length: 130
107
 
107
 
108
 {"records":[{"id":5,"user_id":1,"category_id":1,"content":"#1"},{"id":6,"user_id":1,"category_id":1,"content":"#2"}],"results":12}
108
 {"records":[{"id":5,"user_id":1,"category_id":1,"content":"#1"},{"id":6,"user_id":1,"category_id":1,"content":"#2"}],"results":12}

+ 2
- 2
tests/functional/001_records/017_edit_post_primary_key.log View File

1
 ===
1
 ===
2
 PUT /records/posts/2
2
 PUT /records/posts/2
3
-Content-Type: application/json
3
+Content-Type: application/json; charset=utf-8
4
 
4
 
5
 {"id":1}
5
 {"id":1}
6
 ===
6
 ===
7
 200
7
 200
8
-Content-Type: application/json
8
+Content-Type: application/json; charset=utf-8
9
 Content-Length: 1
9
 Content-Length: 1
10
 
10
 
11
 0
11
 0

+ 2
- 2
tests/functional/001_records/018_add_post_missing_field.log View File

1
 ===
1
 ===
2
 POST /records/posts
2
 POST /records/posts
3
-Content-Type: application/json
3
+Content-Type: application/json; charset=utf-8
4
 
4
 
5
 {"category_id":1,"content":"test"}
5
 {"category_id":1,"content":"test"}
6
 ===
6
 ===
7
 409
7
 409
8
-Content-Type: application/json
8
+Content-Type: application/json; charset=utf-8
9
 Content-Length: 50
9
 Content-Length: 50
10
 
10
 
11
 {"code":1010,"message":"Data integrity violation"}
11
 {"code":1010,"message":"Data integrity violation"}

+ 1
- 1
tests/functional/001_records/019_list_with_paginate_in_multiple_order.log View File

2
 GET /records/posts?page=1,2&order=category_id,asc&order=id,desc
2
 GET /records/posts?page=1,2&order=category_id,asc&order=id,desc
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 133
6
 Content-Length: 133
7
 
7
 
8
 {"records":[{"id":14,"user_id":1,"category_id":1,"content":"#10"},{"id":13,"user_id":1,"category_id":1,"content":"#9"}],"results":12}
8
 {"records":[{"id":14,"user_id":1,"category_id":1,"content":"#10"},{"id":13,"user_id":1,"category_id":1,"content":"#9"}],"results":12}

+ 1
- 1
tests/functional/001_records/020_list_with_paginate_in_descending_order.log View File

2
 GET /records/posts?page=2,2&order=id,desc
2
 GET /records/posts?page=2,2&order=id,desc
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 132
6
 Content-Length: 132
7
 
7
 
8
 {"records":[{"id":12,"user_id":1,"category_id":1,"content":"#8"},{"id":11,"user_id":1,"category_id":1,"content":"#7"}],"results":12}
8
 {"records":[{"id":12,"user_id":1,"category_id":1,"content":"#8"},{"id":11,"user_id":1,"category_id":1,"content":"#7"}],"results":12}

+ 1
- 1
tests/functional/001_records/021_list_with_size.log View File

2
 GET /records/posts?order=id&size=1
2
 GET /records/posts?order=id&size=1
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 75
6
 Content-Length: 75
7
 
7
 
8
 {"records":[{"id":1,"user_id":1,"category_id":1,"content":"blog started"}]}
8
 {"records":[{"id":1,"user_id":1,"category_id":1,"content":"blog started"}]}

+ 1
- 1
tests/functional/001_records/022_list_with_zero_page_size.log View File

2
 GET /records/posts?order=id&page=1,0
2
 GET /records/posts?order=id&page=1,0
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 27
6
 Content-Length: 27
7
 
7
 
8
 {"records":[],"results":12}
8
 {"records":[],"results":12}

+ 1
- 1
tests/functional/001_records/023_list_with_zero_size.log View File

2
 GET /records/posts?order=id&size=0
2
 GET /records/posts?order=id&size=0
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 14
6
 Content-Length: 14
7
 
7
 
8
 {"records":[]}
8
 {"records":[]}

+ 1
- 1
tests/functional/001_records/024_list_with_paginate_last_page.log View File

2
 GET /records/posts?page=3,5&order=id
2
 GET /records/posts?page=3,5&order=id
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 133
6
 Content-Length: 133
7
 
7
 
8
 {"records":[{"id":13,"user_id":1,"category_id":1,"content":"#9"},{"id":14,"user_id":1,"category_id":1,"content":"#10"}],"results":12}
8
 {"records":[{"id":13,"user_id":1,"category_id":1,"content":"#9"},{"id":14,"user_id":1,"category_id":1,"content":"#10"}],"results":12}

+ 1
- 1
tests/functional/001_records/025_list_example_from_readme_full_record.log View File

2
 GET /records/posts?filter=id,eq,1
2
 GET /records/posts?filter=id,eq,1
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 75
6
 Content-Length: 75
7
 
7
 
8
 {"records":[{"id":1,"user_id":1,"category_id":1,"content":"blog started"}]}
8
 {"records":[{"id":1,"user_id":1,"category_id":1,"content":"blog started"}]}

+ 1
- 1
tests/functional/001_records/026_list_example_from_readme_with_exclude.log View File

2
 GET /records/posts?exclude=id&filter=id,eq,1
2
 GET /records/posts?exclude=id&filter=id,eq,1
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 68
6
 Content-Length: 68
7
 
7
 
8
 {"records":[{"user_id":1,"category_id":1,"content":"blog started"}]}
8
 {"records":[{"user_id":1,"category_id":1,"content":"blog started"}]}

+ 1
- 1
tests/functional/001_records/027_list_example_from_readme_users_only.log View File

2
 GET /records/posts?join=users&filter=id,eq,1
2
 GET /records/posts?join=users&filter=id,eq,1
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 136
6
 Content-Length: 136
7
 
7
 
8
 {"records":[{"id":1,"user_id":{"id":1,"username":"user1","password":"pass1","location":null},"category_id":1,"content":"blog started"}]}
8
 {"records":[{"id":1,"user_id":{"id":1,"username":"user1","password":"pass1","location":null},"category_id":1,"content":"blog started"}]}

+ 1
- 1
tests/functional/001_records/028_read_example_from_readme_users_only.log View File

2
 GET /records/posts/1?join=users
2
 GET /records/posts/1?join=users
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 122
6
 Content-Length: 122
7
 
7
 
8
 {"id":1,"user_id":{"id":1,"username":"user1","password":"pass1","location":null},"category_id":1,"content":"blog started"}
8
 {"id":1,"user_id":{"id":1,"username":"user1","password":"pass1","location":null},"category_id":1,"content":"blog started"}

+ 1
- 1
tests/functional/001_records/029_list_example_from_readme_comments_only.log View File

2
 GET /records/posts?join=comments&filter=id,eq,1
2
 GET /records/posts?join=comments&filter=id,eq,1
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 202
6
 Content-Length: 202
7
 
7
 
8
 {"records":[{"id":1,"user_id":1,"category_id":1,"content":"blog started","comments":[{"id":1,"post_id":1,"message":"great","category_id":3},{"id":2,"post_id":1,"message":"fantastic","category_id":3}]}]}
8
 {"records":[{"id":1,"user_id":1,"category_id":1,"content":"blog started","comments":[{"id":1,"post_id":1,"message":"great","category_id":3},{"id":2,"post_id":1,"message":"fantastic","category_id":3}]}]}

+ 1
- 1
tests/functional/001_records/030_list_example_from_readme_tags_only.log View File

2
 GET /records/posts?join=tags&filter=id,eq,1
2
 GET /records/posts?join=tags&filter=id,eq,1
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 177
6
 Content-Length: 177
7
 
7
 
8
 {"records":[{"id":1,"user_id":1,"category_id":1,"content":"blog started","tags":[{"id":1,"name":"funny","is_important":false},{"id":2,"name":"important","is_important":true}]}]}
8
 {"records":[{"id":1,"user_id":1,"category_id":1,"content":"blog started","tags":[{"id":1,"name":"funny","is_important":false},{"id":2,"name":"important","is_important":true}]}]}

+ 1
- 1
tests/functional/001_records/031_list_example_from_readme_tags_with_join_path.log View File

2
 GET /records/posts?join=categories&join=post_tags,tags&join=comments&filter=id,eq,1
2
 GET /records/posts?join=categories&join=post_tags,tags&join=comments&filter=id,eq,1
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 410
6
 Content-Length: 410
7
 
7
 
8
 {"records":[{"id":1,"user_id":1,"category_id":{"id":1,"name":"announcement","icon":null},"content":"blog started","post_tags":[{"id":1,"post_id":1,"tag_id":{"id":1,"name":"funny","is_important":false}},{"id":2,"post_id":1,"tag_id":{"id":2,"name":"important","is_important":true}}],"comments":[{"id":1,"post_id":1,"message":"great","category_id":3},{"id":2,"post_id":1,"message":"fantastic","category_id":3}]}]}
8
 {"records":[{"id":1,"user_id":1,"category_id":{"id":1,"name":"announcement","icon":null},"content":"blog started","post_tags":[{"id":1,"post_id":1,"tag_id":{"id":1,"name":"funny","is_important":false}},{"id":2,"post_id":1,"tag_id":{"id":2,"name":"important","is_important":true}}],"comments":[{"id":1,"post_id":1,"message":"great","category_id":3},{"id":2,"post_id":1,"message":"fantastic","category_id":3}]}]}

+ 1
- 1
tests/functional/001_records/032_list_example_from_readme.log View File

2
 GET /records/posts?join=categories&join=tags&join=comments&filter=id,eq,1
2
 GET /records/posts?join=categories&join=tags&join=comments&filter=id,eq,1
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 345
6
 Content-Length: 345
7
 
7
 
8
 {"records":[{"id":1,"user_id":1,"category_id":{"id":1,"name":"announcement","icon":null},"content":"blog started","tags":[{"id":1,"name":"funny","is_important":false},{"id":2,"name":"important","is_important":true}],"comments":[{"id":1,"post_id":1,"message":"great","category_id":3},{"id":2,"post_id":1,"message":"fantastic","category_id":3}]}]}
8
 {"records":[{"id":1,"user_id":1,"category_id":{"id":1,"name":"announcement","icon":null},"content":"blog started","tags":[{"id":1,"name":"funny","is_important":false},{"id":2,"name":"important","is_important":true}],"comments":[{"id":1,"post_id":1,"message":"great","category_id":3},{"id":2,"post_id":1,"message":"fantastic","category_id":3}]}]}

+ 1
- 1
tests/functional/001_records/033_list_example_from_readme_tag_name_only.log View File

2
 GET /records/posts?include=tags.name&join=categories&join=post_tags,tags&join=comments&filter=id,eq,1
2
 GET /records/posts?include=tags.name&join=categories&join=post_tags,tags&join=comments&filter=id,eq,1
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 198
6
 Content-Length: 198
7
 
7
 
8
 {"records":[{"id":1,"category_id":{"id":1},"post_tags":[{"post_id":1,"tag_id":{"id":1,"name":"funny"}},{"post_id":1,"tag_id":{"id":2,"name":"important"}}],"comments":[{"post_id":1},{"post_id":1}]}]}
8
 {"records":[{"id":1,"category_id":{"id":1},"post_tags":[{"post_id":1,"tag_id":{"id":1,"name":"funny"}},{"post_id":1,"tag_id":{"id":2,"name":"important"}}],"comments":[{"post_id":1},{"post_id":1}]}]}

+ 1
- 1
tests/functional/001_records/034_list_example_from_readme_with_transform_with_exclude.log View File

3
 
3
 
4
 ===
4
 ===
5
 200
5
 200
6
-Content-Type: application/json
6
+Content-Type: application/json; charset=utf-8
7
 Content-Length: 338
7
 Content-Length: 338
8
 
8
 
9
 {"records":[{"id":1,"user_id":1,"category_id":{"id":1,"name":"announcement","icon":null},"content":"blog started","post_tags":[{"id":1,"post_id":1,"tag_id":{"id":1,"name":"funny","is_important":false}},{"id":2,"post_id":1,"tag_id":{"id":2,"name":"important","is_important":true}}],"comments":[{"id":1,"post_id":1},{"id":2,"post_id":1}]}]}
9
 {"records":[{"id":1,"user_id":1,"category_id":{"id":1,"name":"announcement","icon":null},"content":"blog started","post_tags":[{"id":1,"post_id":1,"tag_id":{"id":1,"name":"funny","is_important":false}},{"id":2,"post_id":1,"tag_id":{"id":2,"name":"important","is_important":true}}],"comments":[{"id":1,"post_id":1},{"id":2,"post_id":1}]}]}

+ 2
- 2
tests/functional/001_records/035_edit_category_with_binary_content.log View File

4
 {"icon":"4oKsIABhYmMACg1cYgA"}
4
 {"icon":"4oKsIABhYmMACg1cYgA"}
5
 ===
5
 ===
6
 200
6
 200
7
-Content-Type: application/json
7
+Content-Type: application/json; charset=utf-8
8
 Content-Length: 1
8
 Content-Length: 1
9
 
9
 
10
 1
10
 1
12
 GET /records/categories/2
12
 GET /records/categories/2
13
 ===
13
 ===
14
 200
14
 200
15
-Content-Type: application/json
15
+Content-Type: application/json; charset=utf-8
16
 Content-Length: 55
16
 Content-Length: 55
17
 
17
 
18
 {"id":2,"name":"article","icon":"4oKsIABhYmMACg1cYgA="}
18
 {"id":2,"name":"article","icon":"4oKsIABhYmMACg1cYgA="}

+ 4
- 4
tests/functional/001_records/036_edit_category_with_null.log View File

4
 {"icon":""}
4
 {"icon":""}
5
 ===
5
 ===
6
 200
6
 200
7
-Content-Type: application/json
7
+Content-Type: application/json; charset=utf-8
8
 Content-Length: 1
8
 Content-Length: 1
9
 
9
 
10
 1
10
 1
12
 GET /records/categories/2
12
 GET /records/categories/2
13
 ===
13
 ===
14
 200
14
 200
15
-Content-Type: application/json
15
+Content-Type: application/json; charset=utf-8
16
 Content-Length: 35
16
 Content-Length: 35
17
 
17
 
18
 {"id":2,"name":"article","icon":""}
18
 {"id":2,"name":"article","icon":""}
22
 {"icon":null}
22
 {"icon":null}
23
 ===
23
 ===
24
 200
24
 200
25
-Content-Type: application/json
25
+Content-Type: application/json; charset=utf-8
26
 Content-Length: 1
26
 Content-Length: 1
27
 
27
 
28
 1
28
 1
30
 GET /records/categories/2
30
 GET /records/categories/2
31
 ===
31
 ===
32
 200
32
 200
33
-Content-Type: application/json
33
+Content-Type: application/json; charset=utf-8
34
 Content-Length: 37
34
 Content-Length: 37
35
 
35
 
36
 {"id":2,"name":"article","icon":null}
36
 {"id":2,"name":"article","icon":null}

+ 2
- 2
tests/functional/001_records/037_edit_category_with_binary_content_with_post.log View File

5
 icon=4oKsIABhYmMACg1cYgA
5
 icon=4oKsIABhYmMACg1cYgA
6
 ===
6
 ===
7
 200
7
 200
8
-Content-Type: application/json
8
+Content-Type: application/json; charset=utf-8
9
 Content-Length: 1
9
 Content-Length: 1
10
 
10
 
11
 1
11
 1
13
 GET /records/categories/2
13
 GET /records/categories/2
14
 ===
14
 ===
15
 200
15
 200
16
-Content-Type: application/json
16
+Content-Type: application/json; charset=utf-8
17
 Content-Length: 55
17
 Content-Length: 55
18
 
18
 
19
 {"id":2,"name":"article","icon":"4oKsIABhYmMACg1cYgA="}
19
 {"id":2,"name":"article","icon":"4oKsIABhYmMACg1cYgA="}

+ 1
- 1
tests/functional/001_records/038_list_categories_with_binary_content.log View File

2
 GET /records/categories?filter=id,le,2
2
 GET /records/categories?filter=id,le,2
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 112
6
 Content-Length: 112
7
 
7
 
8
 {"records":[{"id":1,"name":"announcement","icon":null},{"id":2,"name":"article","icon":"4oKsIABhYmMACg1cYgA="}]}
8
 {"records":[{"id":1,"name":"announcement","icon":null},{"id":2,"name":"article","icon":"4oKsIABhYmMACg1cYgA="}]}

+ 2
- 2
tests/functional/001_records/039_edit_category_with_null_with_post.log View File

5
 icon__is_null
5
 icon__is_null
6
 ===
6
 ===
7
 200
7
 200
8
-Content-Type: application/json
8
+Content-Type: application/json; charset=utf-8
9
 Content-Length: 1
9
 Content-Length: 1
10
 
10
 
11
 1
11
 1
13
 GET /records/categories/2
13
 GET /records/categories/2
14
 ===
14
 ===
15
 200
15
 200
16
-Content-Type: application/json
16
+Content-Type: application/json; charset=utf-8
17
 Content-Length: 37
17
 Content-Length: 37
18
 
18
 
19
 {"id":2,"name":"article","icon":null}
19
 {"id":2,"name":"article","icon":null}

+ 1
- 1
tests/functional/001_records/040_add_post_failure.log View File

4
 ["truncat
4
 ["truncat
5
 ===
5
 ===
6
 422
6
 422
7
-Content-Type: application/json
7
+Content-Type: application/json; charset=utf-8
8
 Content-Length: 50
8
 Content-Length: 50
9
 
9
 
10
 {"code":1008,"message":"Cannot read HTTP message"}
10
 {"code":1008,"message":"Cannot read HTTP message"}

+ 1
- 1
tests/functional/001_records/042_cors_headers.log View File

3
 Origin: http://example.com
3
 Origin: http://example.com
4
 ===
4
 ===
5
 200
5
 200
6
-Content-Type: application/json
6
+Content-Type: application/json; charset=utf-8
7
 Content-Length: 8
7
 Content-Length: 8
8
 Access-Control-Allow-Credentials: true
8
 Access-Control-Allow-Credentials: true
9
 Access-Control-Allow-Origin: http://example.com
9
 Access-Control-Allow-Origin: http://example.com

+ 2
- 2
tests/functional/001_records/043_error_on_invalid_json.log View File

1
 ===
1
 ===
2
 POST /records/posts
2
 POST /records/posts
3
-Content-Type: application/json
3
+Content-Type: application/json; charset=utf-8
4
 
4
 
5
 {"}
5
 {"}
6
 ===
6
 ===
7
 422
7
 422
8
-Content-Type: application/json
8
+Content-Type: application/json; charset=utf-8
9
 Content-Length: 50
9
 Content-Length: 50
10
 
10
 
11
 {"code":1008,"message":"Cannot read HTTP message"}
11
 {"code":1008,"message":"Cannot read HTTP message"}

+ 2
- 2
tests/functional/001_records/044_error_on_duplicate_unique_key.log View File

1
 ===
1
 ===
2
 POST /records/kunsthåndværk
2
 POST /records/kunsthåndværk
3
-Content-Type: application/json
3
+Content-Type: application/json; charset=utf-8
4
 
4
 
5
 {"id":"23587850-8738-437e-8c41-466627ca6094","Umlauts ä_ö_ü-COUNT":1}
5
 {"id":"23587850-8738-437e-8c41-466627ca6094","Umlauts ä_ö_ü-COUNT":1}
6
 ===
6
 ===
7
 409
7
 409
8
-Content-Type: application/json
8
+Content-Type: application/json; charset=utf-8
9
 Content-Length: 49
9
 Content-Length: 49
10
 
10
 
11
 {"code":1009,"message":"Duplicate key exception"}
11
 {"code":1009,"message":"Duplicate key exception"}

+ 1
- 1
tests/functional/001_records/045_error_on_failing_foreign_key_constraint.log View File

4
 {"user_id":3,"category_id":1,"content":"fk constraint"}
4
 {"user_id":3,"category_id":1,"content":"fk constraint"}
5
 ===
5
 ===
6
 409
6
 409
7
-Content-Type: application/json
7
+Content-Type: application/json; charset=utf-8
8
 Content-Length: 50
8
 Content-Length: 50
9
 
9
 
10
 {"code":1010,"message":"Data integrity violation"}
10
 {"code":1010,"message":"Data integrity violation"}

+ 1
- 1
tests/functional/001_records/046_error_on_non_existing_table.log View File

2
 GET /records/postzzz
2
 GET /records/postzzz
3
 ===
3
 ===
4
 404
4
 404
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 51
6
 Content-Length: 51
7
 
7
 
8
 {"code":1001,"message":"Table 'postzzz' not found"}
8
 {"code":1001,"message":"Table 'postzzz' not found"}

+ 1
- 1
tests/functional/001_records/047_error_on_invalid_path.log View File

2
 GET /postzzz
2
 GET /postzzz
3
 ===
3
 ===
4
 404
4
 404
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 53
6
 Content-Length: 53
7
 
7
 
8
 {"code":1000,"message":"Route '\/postzzz' not found"}
8
 {"code":1000,"message":"Route '\/postzzz' not found"}

+ 1
- 1
tests/functional/001_records/048_error_on_invalid_argument_count.log View File

4
 {"id":1,"user_id":1,"category_id":1,"content":"blog started"}
4
 {"id":1,"user_id":1,"category_id":1,"content":"blog started"}
5
 ===
5
 ===
6
 422
6
 422
7
-Content-Type: application/json
7
+Content-Type: application/json; charset=utf-8
8
 Content-Length: 58
8
 Content-Length: 58
9
 
9
 
10
 {"code":1002,"message":"Argument count mismatch in '1,2'"}
10
 {"code":1002,"message":"Argument count mismatch in '1,2'"}

+ 1
- 1
tests/functional/001_records/049_error_on_invalid_argument_count.log View File

4
 [{"id":1,"user_id":1,"category_id":1,"content":"blog started"}]
4
 [{"id":1,"user_id":1,"category_id":1,"content":"blog started"}]
5
 ===
5
 ===
6
 422
6
 422
7
-Content-Type: application/json
7
+Content-Type: application/json; charset=utf-8
8
 Content-Length: 58
8
 Content-Length: 58
9
 
9
 
10
 {"code":1002,"message":"Argument count mismatch in '1,2'"}
10
 {"code":1002,"message":"Argument count mismatch in '1,2'"}

+ 1
- 1
tests/functional/001_records/050_no_error_on_argument_count_one.log View File

4
 [{"id":1,"user_id":1,"category_id":1,"content":"blog started"}]
4
 [{"id":1,"user_id":1,"category_id":1,"content":"blog started"}]
5
 ===
5
 ===
6
 200
6
 200
7
-Content-Type: application/json
7
+Content-Type: application/json; charset=utf-8
8
 Content-Length: 3
8
 Content-Length: 3
9
 
9
 
10
 [1]
10
 [1]

+ 1
- 1
tests/functional/001_records/051_error_on_invalid_argument_count.log View File

4
 [{"id":1},{"id":2}]
4
 [{"id":1},{"id":2}]
5
 ===
5
 ===
6
 422
6
 422
7
-Content-Type: application/json
7
+Content-Type: application/json; charset=utf-8
8
 Content-Length: 56
8
 Content-Length: 56
9
 
9
 
10
 {"code":1002,"message":"Argument count mismatch in '1'"}
10
 {"code":1002,"message":"Argument count mismatch in '1'"}

+ 2
- 2
tests/functional/001_records/052_edit_user_location.log View File

4
 {"location":"POINT(30 20)"}
4
 {"location":"POINT(30 20)"}
5
 ===
5
 ===
6
 200
6
 200
7
-Content-Type: application/json
7
+Content-Type: application/json; charset=utf-8
8
 Content-Length: 1
8
 Content-Length: 1
9
 
9
 
10
 1
10
 1
12
 GET /records/users/1?include=id,location
12
 GET /records/users/1?include=id,location
13
 ===
13
 ===
14
 200
14
 200
15
-Content-Type: application/json
15
+Content-Type: application/json; charset=utf-8
16
 Content-Length: 34
16
 Content-Length: 34
17
 
17
 
18
 {"id":1,"location":"POINT(30 20)"}
18
 {"id":1,"location":"POINT(30 20)"}

+ 1
- 1
tests/functional/001_records/053_list_user_locations.log View File

2
 GET /records/users?include=id,location
2
 GET /records/users?include=id,location
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 73
6
 Content-Length: 73
7
 
7
 
8
 {"records":[{"id":1,"location":"POINT(30 20)"},{"id":2,"location":null}]}
8
 {"records":[{"id":1,"location":"POINT(30 20)"},{"id":2,"location":null}]}

+ 2
- 2
tests/functional/001_records/054_edit_user_with_id.log View File

4
 {"id":2,"password":"testtest2"}
4
 {"id":2,"password":"testtest2"}
5
 ===
5
 ===
6
 200
6
 200
7
-Content-Type: application/json
7
+Content-Type: application/json; charset=utf-8
8
 Content-Length: 1
8
 Content-Length: 1
9
 
9
 
10
 1
10
 1
12
 GET /records/users/1?include=id,username,password
12
 GET /records/users/1?include=id,username,password
13
 ===
13
 ===
14
 200
14
 200
15
-Content-Type: application/json
15
+Content-Type: application/json; charset=utf-8
16
 Content-Length: 50
16
 Content-Length: 50
17
 
17
 
18
 {"id":1,"username":"user1","password":"testtest2"}
18
 {"id":1,"username":"user1","password":"testtest2"}

+ 2
- 2
tests/functional/001_records/055_filter_category_on_null_icon.log View File

2
 GET /records/categories?filter=icon,is,null&filter=id,le,2
2
 GET /records/categories?filter=icon,is,null&filter=id,le,2
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 94
6
 Content-Length: 94
7
 
7
 
8
 {"records":[{"id":1,"name":"announcement","icon":null},{"id":2,"name":"article","icon":null}]}
8
 {"records":[{"id":1,"name":"announcement","icon":null},{"id":2,"name":"article","icon":null}]}
10
 GET /records/categories?filter=icon,is&filter=id,le,2
10
 GET /records/categories?filter=icon,is&filter=id,le,2
11
 ===
11
 ===
12
 200
12
 200
13
-Content-Type: application/json
13
+Content-Type: application/json; charset=utf-8
14
 Content-Length: 94
14
 Content-Length: 94
15
 
15
 
16
 {"records":[{"id":1,"name":"announcement","icon":null},{"id":2,"name":"article","icon":null}]}
16
 {"records":[{"id":1,"name":"announcement","icon":null},{"id":2,"name":"article","icon":null}]}

+ 1
- 1
tests/functional/001_records/056_filter_category_on_not_null_icon.log View File

2
 GET /records/categories?filter=icon,nis,null
2
 GET /records/categories?filter=icon,nis,null
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 14
6
 Content-Length: 14
7
 
7
 
8
 {"records":[]}
8
 {"records":[]}

+ 3
- 3
tests/functional/001_records/057_filter_on_and.log View File

2
 GET /records/posts?include=id&filter=id,ge,1&filter=id,le,2
2
 GET /records/posts?include=id&filter=id,ge,1&filter=id,le,2
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 31
6
 Content-Length: 31
7
 
7
 
8
 {"records":[{"id":1},{"id":2}]}
8
 {"records":[{"id":1},{"id":2}]}
10
 GET /records/posts?include=id&filter[]=id,ge,1&filter[]=id,le,2
10
 GET /records/posts?include=id&filter[]=id,ge,1&filter[]=id,le,2
11
 ===
11
 ===
12
 200
12
 200
13
-Content-Type: application/json
13
+Content-Type: application/json; charset=utf-8
14
 Content-Length: 31
14
 Content-Length: 31
15
 
15
 
16
 {"records":[{"id":1},{"id":2}]}
16
 {"records":[{"id":1},{"id":2}]}
18
 GET /records/posts?include=id&filter[0]=id,ge,1&filter[1]=id,le,2
18
 GET /records/posts?include=id&filter[0]=id,ge,1&filter[1]=id,le,2
19
 ===
19
 ===
20
 200
20
 200
21
-Content-Type: application/json
21
+Content-Type: application/json; charset=utf-8
22
 Content-Length: 31
22
 Content-Length: 31
23
 
23
 
24
 {"records":[{"id":1},{"id":2}]}
24
 {"records":[{"id":1},{"id":2}]}

+ 1
- 1
tests/functional/001_records/058_filter_on_or.log View File

2
 GET /records/posts?include=id&filter1=id,eq,1&filter2=id,eq,2
2
 GET /records/posts?include=id&filter1=id,eq,1&filter2=id,eq,2
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 31
6
 Content-Length: 31
7
 
7
 
8
 {"records":[{"id":1},{"id":2}]}
8
 {"records":[{"id":1},{"id":2}]}

+ 1
- 1
tests/functional/001_records/059_filter_on_and_plus_or.log View File

2
 GET /records/posts?include=id&filter1=id,eq,1&filter2=id,gt,1&filter2=id,lt,3
2
 GET /records/posts?include=id&filter1=id,eq,1&filter2=id,gt,1&filter2=id,lt,3
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 31
6
 Content-Length: 31
7
 
7
 
8
 {"records":[{"id":1},{"id":2}]}
8
 {"records":[{"id":1},{"id":2}]}

+ 1
- 1
tests/functional/001_records/060_filter_on_or_plus_and.log View File

2
 GET /records/posts?include=id&filter1=id,eq,1&filter2=id,eq,2&filter=user_id,eq,1
2
 GET /records/posts?include=id&filter1=id,eq,1&filter2=id,eq,2&filter=user_id,eq,1
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 31
6
 Content-Length: 31
7
 
7
 
8
 {"records":[{"id":1},{"id":2}]}
8
 {"records":[{"id":1},{"id":2}]}

+ 1
- 1
tests/functional/001_records/061_get_post_content_with_included_tag_names.log View File

2
 GET /records/posts/1?include=content,tags.name&join=tags
2
 GET /records/posts/1?include=content,tags.name&join=tags
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 94
6
 Content-Length: 94
7
 
7
 
8
 {"id":1,"content":"blog started","tags":[{"id":1,"name":"funny"},{"id":2,"name":"important"}]}
8
 {"id":1,"content":"blog started","tags":[{"id":1,"name":"funny"},{"id":2,"name":"important"}]}

+ 2
- 2
tests/functional/001_records/062_read_kunsthandvaerk.log View File

2
 GET /records/kunsthåndværk/e42c77c6-06a4-4502-816c-d112c7142e6d
2
 GET /records/kunsthåndværk/e42c77c6-06a4-4502-816c-d112c7142e6d
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 138
6
 Content-Length: 138
7
 
7
 
8
 {"id":"e42c77c6-06a4-4502-816c-d112c7142e6d","Umlauts ä_ö_ü-COUNT":1,"user_id":1,"invisible_id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
8
 {"id":"e42c77c6-06a4-4502-816c-d112c7142e6d","Umlauts ä_ö_ü-COUNT":1,"user_id":1,"invisible_id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
10
 GET /records/kunsthåndværk/e42c77c6-06a4-4502-816c-d112c7142e6d?join=invisibles
10
 GET /records/kunsthåndværk/e42c77c6-06a4-4502-816c-d112c7142e6d?join=invisibles
11
 ===
11
 ===
12
 200
12
 200
13
-Content-Type: application/json
13
+Content-Type: application/json; charset=utf-8
14
 Content-Length: 138
14
 Content-Length: 138
15
 
15
 
16
 {"id":"e42c77c6-06a4-4502-816c-d112c7142e6d","Umlauts ä_ö_ü-COUNT":1,"user_id":1,"invisible_id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
16
 {"id":"e42c77c6-06a4-4502-816c-d112c7142e6d","Umlauts ä_ö_ü-COUNT":1,"user_id":1,"invisible_id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}

+ 1
- 1
tests/functional/001_records/063_list_kunsthandvaerk.log View File

2
 GET /records/kunsthåndværk
2
 GET /records/kunsthåndværk
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 152
6
 Content-Length: 152
7
 
7
 
8
 {"records":[{"id":"e42c77c6-06a4-4502-816c-d112c7142e6d","Umlauts ä_ö_ü-COUNT":1,"user_id":1,"invisible_id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}]}
8
 {"records":[{"id":"e42c77c6-06a4-4502-816c-d112c7142e6d","Umlauts ä_ö_ü-COUNT":1,"user_id":1,"invisible_id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}]}

+ 1
- 1
tests/functional/001_records/064_add_kunsthandvaerk.log View File

4
 {"id":"34451583-a747-4417-bdf0-bec7a5eacffa","Umlauts ä_ö_ü-COUNT":3}
4
 {"id":"34451583-a747-4417-bdf0-bec7a5eacffa","Umlauts ä_ö_ü-COUNT":3}
5
 ===
5
 ===
6
 200
6
 200
7
-Content-Type: application/json
7
+Content-Type: application/json; charset=utf-8
8
 Content-Length: 38
8
 Content-Length: 38
9
 
9
 
10
 "34451583-a747-4417-bdf0-bec7a5eacffa"
10
 "34451583-a747-4417-bdf0-bec7a5eacffa"

+ 1
- 1
tests/functional/001_records/065_edit_kunsthandvaerk.log View File

4
 {"Umlauts ä_ö_ü-COUNT":3}
4
 {"Umlauts ä_ö_ü-COUNT":3}
5
 ===
5
 ===
6
 200
6
 200
7
-Content-Type: application/json
7
+Content-Type: application/json; charset=utf-8
8
 Content-Length: 1
8
 Content-Length: 1
9
 
9
 
10
 1
10
 1

+ 1
- 1
tests/functional/001_records/066_delete_kunsthandvaerk.log View File

2
 DELETE /records/kunsthåndværk/34451583-a747-4417-bdf0-bec7a5eacffa
2
 DELETE /records/kunsthåndværk/34451583-a747-4417-bdf0-bec7a5eacffa
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 1
6
 Content-Length: 1
7
 
7
 
8
 1
8
 1

+ 1
- 1
tests/functional/001_records/067_edit_comment_with_validation.log View File

4
 {"post_id":"two"}
4
 {"post_id":"two"}
5
 ===
5
 ===
6
 422
6
 422
7
-Content-Type: application/json
7
+Content-Type: application/json; charset=utf-8
8
 Content-Length: 104
8
 Content-Length: 104
9
 
9
 
10
 {"code":1013,"message":"Input validation failed for 'comments'","details":{"post_id":"must be numeric"}}
10
 {"code":1013,"message":"Input validation failed for 'comments'","details":{"post_id":"must be numeric"}}

+ 2
- 2
tests/functional/001_records/068_add_comment_with_sanitation.log View File

4
 {"user_id":1,"post_id":2,"message":"<h1>Title</h1> <p>Body</p>","category_id":3}
4
 {"user_id":1,"post_id":2,"message":"<h1>Title</h1> <p>Body</p>","category_id":3}
5
 ===
5
 ===
6
 200
6
 200
7
-Content-Type: application/json
7
+Content-Type: application/json; charset=utf-8
8
 Content-Length: 1
8
 Content-Length: 1
9
 
9
 
10
 5
10
 5
12
 GET /records/comments/5
12
 GET /records/comments/5
13
 ===
13
 ===
14
 200
14
 200
15
-Content-Type: application/json
15
+Content-Type: application/json; charset=utf-8
16
 Content-Length: 59
16
 Content-Length: 59
17
 
17
 
18
 {"id":5,"post_id":2,"message":"Title Body","category_id":3}
18
 {"id":5,"post_id":2,"message":"Title Body","category_id":3}

+ 7
- 7
tests/functional/001_records/069_increment_event_visitors.log View File

2
 GET /records/events/1?include=visitors
2
 GET /records/events/1?include=visitors
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 14
6
 Content-Length: 14
7
 
7
 
8
 {"visitors":0}
8
 {"visitors":0}
12
 {"visitors":1}
12
 {"visitors":1}
13
 ===
13
 ===
14
 200
14
 200
15
-Content-Type: application/json
15
+Content-Type: application/json; charset=utf-8
16
 Content-Length: 1
16
 Content-Length: 1
17
 
17
 
18
 1
18
 1
22
 {"visitors":1}
22
 {"visitors":1}
23
 ===
23
 ===
24
 200
24
 200
25
-Content-Type: application/json
25
+Content-Type: application/json; charset=utf-8
26
 Content-Length: 1
26
 Content-Length: 1
27
 
27
 
28
 1
28
 1
32
 [{"visitors":1},{"visitors":1}]
32
 [{"visitors":1},{"visitors":1}]
33
 ===
33
 ===
34
 200
34
 200
35
-Content-Type: application/json
35
+Content-Type: application/json; charset=utf-8
36
 Content-Length: 5
36
 Content-Length: 5
37
 
37
 
38
 [1,1]
38
 [1,1]
40
 GET /records/events/1?include=visitors
40
 GET /records/events/1?include=visitors
41
 ===
41
 ===
42
 200
42
 200
43
-Content-Type: application/json
43
+Content-Type: application/json; charset=utf-8
44
 Content-Length: 14
44
 Content-Length: 14
45
 
45
 
46
 {"visitors":4}
46
 {"visitors":4}
50
 {"visitors":-4}
50
 {"visitors":-4}
51
 ===
51
 ===
52
 200
52
 200
53
-Content-Type: application/json
53
+Content-Type: application/json; charset=utf-8
54
 Content-Length: 1
54
 Content-Length: 1
55
 
55
 
56
 1
56
 1
58
 GET /records/events/1?include=visitors
58
 GET /records/events/1?include=visitors
59
 ===
59
 ===
60
 200
60
 200
61
-Content-Type: application/json
61
+Content-Type: application/json; charset=utf-8
62
 Content-Length: 14
62
 Content-Length: 14
63
 
63
 
64
 {"visitors":0}
64
 {"visitors":0}

+ 1
- 1
tests/functional/001_records/070_list_invisibles.log View File

2
 GET /records/invisibles
2
 GET /records/invisibles
3
 ===
3
 ===
4
 404
4
 404
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 54
6
 Content-Length: 54
7
 
7
 
8
 {"code":1001,"message":"Table 'invisibles' not found"}
8
 {"code":1001,"message":"Table 'invisibles' not found"}

+ 2
- 2
tests/functional/001_records/071_add_comment_with_invisible_record.log View File

4
 {"user_id":1,"post_id":2,"message":"invisible","category_id":3}
4
 {"user_id":1,"post_id":2,"message":"invisible","category_id":3}
5
 ===
5
 ===
6
 200
6
 200
7
-Content-Type: application/json
7
+Content-Type: application/json; charset=utf-8
8
 Content-Length: 1
8
 Content-Length: 1
9
 
9
 
10
 6
10
 6
12
 GET /records/comments/6
12
 GET /records/comments/6
13
 ===
13
 ===
14
 404
14
 404
15
-Content-Type: application/json
15
+Content-Type: application/json; charset=utf-8
16
 Content-Length: 46
16
 Content-Length: 46
17
 
17
 
18
 {"code":1003,"message":"Record '6' not found"}
18
 {"code":1003,"message":"Record '6' not found"}

+ 1
- 1
tests/functional/001_records/072_list_nopk.log View File

2
 GET /records/nopk
2
 GET /records/nopk
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 59
6
 Content-Length: 59
7
 
7
 
8
 {"records":[{"id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}]}
8
 {"records":[{"id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}]}

+ 6
- 6
tests/functional/001_records/073_multi_tenancy_kunsthandvaerk.log View File

4
 {"id":"b55decba-8eb5-436b-af3e-148f7b4eacda","Umlauts ä_ö_ü-COUNT":4,"user_id":2}
4
 {"id":"b55decba-8eb5-436b-af3e-148f7b4eacda","Umlauts ä_ö_ü-COUNT":4,"user_id":2}
5
 ===
5
 ===
6
 200
6
 200
7
-Content-Type: application/json
7
+Content-Type: application/json; charset=utf-8
8
 Content-Length: 38
8
 Content-Length: 38
9
 
9
 
10
 "b55decba-8eb5-436b-af3e-148f7b4eacda"
10
 "b55decba-8eb5-436b-af3e-148f7b4eacda"
12
 GET /records/kunsthåndværk/b55decba-8eb5-436b-af3e-148f7b4eacda
12
 GET /records/kunsthåndværk/b55decba-8eb5-436b-af3e-148f7b4eacda
13
 ===
13
 ===
14
 200
14
 200
15
-Content-Type: application/json
15
+Content-Type: application/json; charset=utf-8
16
 Content-Length: 104
16
 Content-Length: 104
17
 
17
 
18
 {"id":"b55decba-8eb5-436b-af3e-148f7b4eacda","Umlauts ä_ö_ü-COUNT":4,"user_id":1,"invisible_id":null}
18
 {"id":"b55decba-8eb5-436b-af3e-148f7b4eacda","Umlauts ä_ö_ü-COUNT":4,"user_id":1,"invisible_id":null}
22
 {"id":"b55decba-8eb5-436b-af3e-148f7b4eacda","Umlauts ä_ö_ü-COUNT":4,"user_id":2}
22
 {"id":"b55decba-8eb5-436b-af3e-148f7b4eacda","Umlauts ä_ö_ü-COUNT":4,"user_id":2}
23
 ===
23
 ===
24
 200
24
 200
25
-Content-Type: application/json
25
+Content-Type: application/json; charset=utf-8
26
 Content-Length: 1
26
 Content-Length: 1
27
 
27
 
28
 1
28
 1
30
 GET /records/kunsthåndværk/b55decba-8eb5-436b-af3e-148f7b4eacda
30
 GET /records/kunsthåndværk/b55decba-8eb5-436b-af3e-148f7b4eacda
31
 ===
31
 ===
32
 200
32
 200
33
-Content-Type: application/json
33
+Content-Type: application/json; charset=utf-8
34
 Content-Length: 104
34
 Content-Length: 104
35
 
35
 
36
 {"id":"b55decba-8eb5-436b-af3e-148f7b4eacda","Umlauts ä_ö_ü-COUNT":4,"user_id":1,"invisible_id":null}
36
 {"id":"b55decba-8eb5-436b-af3e-148f7b4eacda","Umlauts ä_ö_ü-COUNT":4,"user_id":1,"invisible_id":null}
38
 DELETE /records/kunsthåndværk/e31ecfe6-591f-4660-9fbd-1a232083037f
38
 DELETE /records/kunsthåndværk/e31ecfe6-591f-4660-9fbd-1a232083037f
39
 ===
39
 ===
40
 200
40
 200
41
-Content-Type: application/json
41
+Content-Type: application/json; charset=utf-8
42
 Content-Length: 1
42
 Content-Length: 1
43
 
43
 
44
 0
44
 0
46
 DELETE /records/kunsthåndværk/b55decba-8eb5-436b-af3e-148f7b4eacda
46
 DELETE /records/kunsthåndværk/b55decba-8eb5-436b-af3e-148f7b4eacda
47
 ===
47
 ===
48
 200
48
 200
49
-Content-Type: application/json
49
+Content-Type: application/json; charset=utf-8
50
 Content-Length: 1
50
 Content-Length: 1
51
 
51
 
52
 1
52
 1

+ 2
- 2
tests/functional/001_records/074_custom_kunsthandvaerk.log View File

4
 {"Umlauts ä_ö_ü-COUNT":10}
4
 {"Umlauts ä_ö_ü-COUNT":10}
5
 ===
5
 ===
6
 200
6
 200
7
-Content-Type: application/json
7
+Content-Type: application/json; charset=utf-8
8
 Content-Length: 1
8
 Content-Length: 1
9
 X-Time-Taken: 0.003
9
 X-Time-Taken: 0.003
10
 
10
 
15
 {"Umlauts ä_ö_ü-COUNT":-10}
15
 {"Umlauts ä_ö_ü-COUNT":-10}
16
 ===
16
 ===
17
 200
17
 200
18
-Content-Type: application/json
18
+Content-Type: application/json; charset=utf-8
19
 Content-Length: 1
19
 Content-Length: 1
20
 X-Time-Taken: 0.003
20
 X-Time-Taken: 0.003
21
 
21
 

+ 2
- 2
tests/functional/001_records/075_list_tag_usage.log View File

2
 GET /records/tag_usage
2
 GET /records/tag_usage
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 71
6
 Content-Length: 71
7
 
7
 
8
 {"records":[{"name":"funny","count":2},{"name":"important","count":2}]}
8
 {"records":[{"name":"funny","count":2},{"name":"important","count":2}]}
10
 GET /records/tag_usage/1
10
 GET /records/tag_usage/1
11
 ===
11
 ===
12
 405
12
 405
13
-Content-Type: application/json
13
+Content-Type: application/json; charset=utf-8
14
 Content-Length: 56
14
 Content-Length: 56
15
 
15
 
16
 {"code":1015,"message":"Operation 'read' not supported"}
16
 {"code":1015,"message":"Operation 'read' not supported"}

+ 1
- 1
tests/functional/001_records/076_list_user_locations_within_geometry.log View File

3
 GET /records/users?include=id,location&filter=location,swi,POLYGON((10 10,10 50,50 50,50 10,10 10))
3
 GET /records/users?include=id,location&filter=location,swi,POLYGON((10 10,10 50,50 50,50 10,10 10))
4
 ===
4
 ===
5
 200
5
 200
6
-Content-Type: application/json
6
+Content-Type: application/json; charset=utf-8
7
 Content-Length: 48
7
 Content-Length: 48
8
 
8
 
9
 {"records":[{"id":1,"location":"POINT(30 20)"}]}
9
 {"records":[{"id":1,"location":"POINT(30 20)"}]}

+ 4
- 4
tests/functional/001_records/077_list_posts_with_page_limits.log View File

2
 GET /records/posts?size=10
2
 GET /records/posts?size=10
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 690
6
 Content-Length: 690
7
 
7
 
8
 {"records":[{"id":1,"user_id":1,"category_id":1,"content":"blog started"},{"id":2,"user_id":1,"category_id":2,"content":"🦀€ Grüßgott, Вiтаю, dobrý deň, hyvää päivää, გამარჯობა, Γεια σας, góðan dag, здравствуйте"},{"id":5,"user_id":1,"category_id":1,"content":"#1"},{"id":6,"user_id":1,"category_id":1,"content":"#2"},{"id":7,"user_id":1,"category_id":1,"content":"#3"},{"id":8,"user_id":1,"category_id":1,"content":"#4"},{"id":9,"user_id":1,"category_id":1,"content":"#5"},{"id":10,"user_id":1,"category_id":1,"content":"#6"},{"id":11,"user_id":1,"category_id":1,"content":"#7"},{"id":12,"user_id":1,"category_id":1,"content":"#8"}]}
8
 {"records":[{"id":1,"user_id":1,"category_id":1,"content":"blog started"},{"id":2,"user_id":1,"category_id":2,"content":"🦀€ Grüßgott, Вiтаю, dobrý deň, hyvää päivää, გამარჯობა, Γεια σας, góðan dag, здравствуйте"},{"id":5,"user_id":1,"category_id":1,"content":"#1"},{"id":6,"user_id":1,"category_id":1,"content":"#2"},{"id":7,"user_id":1,"category_id":1,"content":"#3"},{"id":8,"user_id":1,"category_id":1,"content":"#4"},{"id":9,"user_id":1,"category_id":1,"content":"#5"},{"id":10,"user_id":1,"category_id":1,"content":"#6"},{"id":11,"user_id":1,"category_id":1,"content":"#7"},{"id":12,"user_id":1,"category_id":1,"content":"#8"}]}
10
 GET /records/posts
10
 GET /records/posts
11
 ===
11
 ===
12
 200
12
 200
13
-Content-Type: application/json
13
+Content-Type: application/json; charset=utf-8
14
 Content-Length: 690
14
 Content-Length: 690
15
 
15
 
16
 {"records":[{"id":1,"user_id":1,"category_id":1,"content":"blog started"},{"id":2,"user_id":1,"category_id":2,"content":"🦀€ Grüßgott, Вiтаю, dobrý deň, hyvää päivää, გამარჯობა, Γεια σας, góðan dag, здравствуйте"},{"id":5,"user_id":1,"category_id":1,"content":"#1"},{"id":6,"user_id":1,"category_id":1,"content":"#2"},{"id":7,"user_id":1,"category_id":1,"content":"#3"},{"id":8,"user_id":1,"category_id":1,"content":"#4"},{"id":9,"user_id":1,"category_id":1,"content":"#5"},{"id":10,"user_id":1,"category_id":1,"content":"#6"},{"id":11,"user_id":1,"category_id":1,"content":"#7"},{"id":12,"user_id":1,"category_id":1,"content":"#8"}]}
16
 {"records":[{"id":1,"user_id":1,"category_id":1,"content":"blog started"},{"id":2,"user_id":1,"category_id":2,"content":"🦀€ Grüßgott, Вiтаю, dobrý deň, hyvää päivää, გამარჯობა, Γεια σας, góðan dag, здравствуйте"},{"id":5,"user_id":1,"category_id":1,"content":"#1"},{"id":6,"user_id":1,"category_id":1,"content":"#2"},{"id":7,"user_id":1,"category_id":1,"content":"#3"},{"id":8,"user_id":1,"category_id":1,"content":"#4"},{"id":9,"user_id":1,"category_id":1,"content":"#5"},{"id":10,"user_id":1,"category_id":1,"content":"#6"},{"id":11,"user_id":1,"category_id":1,"content":"#7"},{"id":12,"user_id":1,"category_id":1,"content":"#8"}]}
18
 GET /records/posts?page=5,1
18
 GET /records/posts?page=5,1
19
 ===
19
 ===
20
 200
20
 200
21
-Content-Type: application/json
21
+Content-Type: application/json; charset=utf-8
22
 Content-Length: 78
22
 Content-Length: 78
23
 
23
 
24
 {"records":[{"id":7,"user_id":1,"category_id":1,"content":"#3"}],"results":12}
24
 {"records":[{"id":7,"user_id":1,"category_id":1,"content":"#3"}],"results":12}
26
 GET /records/posts?page=6,1
26
 GET /records/posts?page=6,1
27
 ===
27
 ===
28
 403
28
 403
29
-Content-Type: application/json
29
+Content-Type: application/json; charset=utf-8
30
 Content-Length: 46
30
 Content-Length: 46
31
 
31
 
32
 {"code":1019,"message":"Pagination forbidden"}
32
 {"code":1019,"message":"Pagination forbidden"}

+ 5
- 5
tests/functional/001_records/078_edit_event_with_nullable_bigint.log View File

2
 GET /records/events/1
2
 GET /records/events/1
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 70
6
 Content-Length: 70
7
 
7
 
8
 {"id":1,"name":"Launch","datetime":"2016-01-01 13:01:01","visitors":0}
8
 {"id":1,"name":"Launch","datetime":"2016-01-01 13:01:01","visitors":0}
12
 {"datetime":null,"visitors":null}
12
 {"datetime":null,"visitors":null}
13
 ===
13
 ===
14
 200
14
 200
15
-Content-Type: application/json
15
+Content-Type: application/json; charset=utf-8
16
 Content-Length: 1
16
 Content-Length: 1
17
 
17
 
18
 1
18
 1
20
 GET /records/events/1
20
 GET /records/events/1
21
 ===
21
 ===
22
 200
22
 200
23
-Content-Type: application/json
23
+Content-Type: application/json; charset=utf-8
24
 Content-Length: 56
24
 Content-Length: 56
25
 
25
 
26
 {"id":1,"name":"Launch","datetime":null,"visitors":null}
26
 {"id":1,"name":"Launch","datetime":null,"visitors":null}
30
 {"datetime":"2016-01-01 13:01:01","visitors":0}
30
 {"datetime":"2016-01-01 13:01:01","visitors":0}
31
 ===
31
 ===
32
 200
32
 200
33
-Content-Type: application/json
33
+Content-Type: application/json; charset=utf-8
34
 Content-Length: 1
34
 Content-Length: 1
35
 
35
 
36
 1
36
 1
38
 GET /records/events/1
38
 GET /records/events/1
39
 ===
39
 ===
40
 200
40
 200
41
-Content-Type: application/json
41
+Content-Type: application/json; charset=utf-8
42
 Content-Length: 70
42
 Content-Length: 70
43
 
43
 
44
 {"id":1,"name":"Launch","datetime":"2016-01-01 13:01:01","visitors":0}
44
 {"id":1,"name":"Launch","datetime":"2016-01-01 13:01:01","visitors":0}

+ 4
- 4
tests/functional/001_records/079_read_post_with_categories.log View File

2
 GET /records/posts/1?join=tags&include=tags.name
2
 GET /records/posts/1?join=tags&include=tags.name
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 69
6
 Content-Length: 69
7
 
7
 
8
 {"id":1,"tags":[{"id":1,"name":"funny"},{"id":2,"name":"important"}]}
8
 {"id":1,"tags":[{"id":1,"name":"funny"},{"id":2,"name":"important"}]}
10
 GET /records/posts/1?join=categories&include=category_id,categories.name
10
 GET /records/posts/1?join=categories&include=category_id,categories.name
11
 ===
11
 ===
12
 200
12
 200
13
-Content-Type: application/json
13
+Content-Type: application/json; charset=utf-8
14
 Content-Length: 53
14
 Content-Length: 53
15
 
15
 
16
 {"id":1,"category_id":{"id":1,"name":"announcement"}}
16
 {"id":1,"category_id":{"id":1,"name":"announcement"}}
18
 GET /records/posts/1?join=comments,categories&include=category_id,categories.name
18
 GET /records/posts/1?join=comments,categories&include=category_id,categories.name
19
 ===
19
 ===
20
 200
20
 200
21
-Content-Type: application/json
21
+Content-Type: application/json; charset=utf-8
22
 Content-Length: 145
22
 Content-Length: 145
23
 
23
 
24
 {"id":1,"category_id":1,"comments":[{"post_id":1,"category_id":{"id":3,"name":"comment"}},{"post_id":1,"category_id":{"id":3,"name":"comment"}}]}
24
 {"id":1,"category_id":1,"comments":[{"post_id":1,"category_id":{"id":3,"name":"comment"}},{"post_id":1,"category_id":{"id":3,"name":"comment"}}]}
26
 GET /records/posts/1?join=categories&join=comments,categories&include=category_id,categories.name
26
 GET /records/posts/1?join=categories&join=comments,categories&include=category_id,categories.name
27
 ===
27
 ===
28
 200
28
 200
29
-Content-Type: application/json
29
+Content-Type: application/json; charset=utf-8
30
 Content-Length: 174
30
 Content-Length: 174
31
 
31
 
32
 {"id":1,"category_id":{"id":1,"name":"announcement"},"comments":[{"post_id":1,"category_id":{"id":3,"name":"comment"}},{"post_id":1,"category_id":{"id":3,"name":"comment"}}]}
32
 {"id":1,"category_id":{"id":1,"name":"announcement"},"comments":[{"post_id":1,"category_id":{"id":3,"name":"comment"}},{"post_id":1,"category_id":{"id":3,"name":"comment"}}]}

+ 5
- 5
tests/functional/001_records/080_add_barcode_with_ip_address.log View File

4
 {"product_id":1,"hex":"","bin":""}
4
 {"product_id":1,"hex":"","bin":""}
5
 ===
5
 ===
6
 200
6
 200
7
-Content-Type: application/json
7
+Content-Type: application/json; charset=utf-8
8
 Content-Length: 1
8
 Content-Length: 1
9
 
9
 
10
 2
10
 2
12
 GET /records/barcodes/2
12
 GET /records/barcodes/2
13
 ===
13
 ===
14
 200
14
 200
15
-Content-Type: application/json
15
+Content-Type: application/json; charset=utf-8
16
 Content-Length: 64
16
 Content-Length: 64
17
 
17
 
18
 {"id":2,"product_id":1,"hex":"","bin":"","ip_address":"TEST_IP"}
18
 {"id":2,"product_id":1,"hex":"","bin":"","ip_address":"TEST_IP"}
22
 {"ip_address":"FAKE_IP"}
22
 {"ip_address":"FAKE_IP"}
23
 ===
23
 ===
24
 200
24
 200
25
-Content-Type: application/json
25
+Content-Type: application/json; charset=utf-8
26
 Content-Length: 1
26
 Content-Length: 1
27
 
27
 
28
 0
28
 0
30
 GET /records/barcodes/2
30
 GET /records/barcodes/2
31
 ===
31
 ===
32
 200
32
 200
33
-Content-Type: application/json
33
+Content-Type: application/json; charset=utf-8
34
 Content-Length: 64
34
 Content-Length: 64
35
 
35
 
36
 {"id":2,"product_id":1,"hex":"","bin":"","ip_address":"TEST_IP"}
36
 {"id":2,"product_id":1,"hex":"","bin":"","ip_address":"TEST_IP"}
38
 DELETE /records/barcodes/2
38
 DELETE /records/barcodes/2
39
 ===
39
 ===
40
 200
40
 200
41
-Content-Type: application/json
41
+Content-Type: application/json; charset=utf-8
42
 Content-Length: 1
42
 Content-Length: 1
43
 
43
 
44
 1
44
 1

+ 9
- 9
tests/functional/001_records/081_read_countries_as_geojson.log View File

3
 GET /geojson/countries/3
3
 GET /geojson/countries/3
4
 ===
4
 ===
5
 200
5
 200
6
-Content-Type: application/json
6
+Content-Type: application/json; charset=utf-8
7
 Content-Length: 105
7
 Content-Length: 105
8
 
8
 
9
 {"type":"Feature","id":3,"properties":{"name":"Point"},"geometry":{"type":"Point","coordinates":[30,10]}}
9
 {"type":"Feature","id":3,"properties":{"name":"Point"},"geometry":{"type":"Point","coordinates":[30,10]}}
11
 GET /geojson/countries/4
11
 GET /geojson/countries/4
12
 ===
12
 ===
13
 200
13
 200
14
-Content-Type: application/json
14
+Content-Type: application/json; charset=utf-8
15
 Content-Length: 127
15
 Content-Length: 127
16
 
16
 
17
 {"type":"Feature","id":4,"properties":{"name":"Line"},"geometry":{"type":"LineString","coordinates":[[30,10],[10,30],[40,40]]}}
17
 {"type":"Feature","id":4,"properties":{"name":"Line"},"geometry":{"type":"LineString","coordinates":[[30,10],[10,30],[40,40]]}}
19
 GET /geojson/countries/5
19
 GET /geojson/countries/5
20
 ===
20
 ===
21
 200
21
 200
22
-Content-Type: application/json
22
+Content-Type: application/json; charset=utf-8
23
 Content-Length: 143
23
 Content-Length: 143
24
 
24
 
25
 {"type":"Feature","id":5,"properties":{"name":"Poly1"},"geometry":{"type":"Polygon","coordinates":[[[30,10],[40,40],[20,40],[10,20],[30,10]]]}}
25
 {"type":"Feature","id":5,"properties":{"name":"Poly1"},"geometry":{"type":"Polygon","coordinates":[[[30,10],[40,40],[20,40],[10,20],[30,10]]]}}
27
 GET /geojson/countries/6
27
 GET /geojson/countries/6
28
 ===
28
 ===
29
 200
29
 200
30
-Content-Type: application/json
30
+Content-Type: application/json; charset=utf-8
31
 Content-Length: 177
31
 Content-Length: 177
32
 
32
 
33
 {"type":"Feature","id":6,"properties":{"name":"Poly2"},"geometry":{"type":"Polygon","coordinates":[[[35,10],[45,45],[15,40],[10,20],[35,10]],[[20,30],[35,35],[30,20],[20,30]]]}}
33
 {"type":"Feature","id":6,"properties":{"name":"Poly2"},"geometry":{"type":"Polygon","coordinates":[[[35,10],[45,45],[15,40],[10,20],[35,10]],[[20,30],[35,35],[30,20],[20,30]]]}}
35
 GET /geojson/countries/7
35
 GET /geojson/countries/7
36
 ===
36
 ===
37
 200
37
 200
38
-Content-Type: application/json
38
+Content-Type: application/json; charset=utf-8
39
 Content-Length: 137
39
 Content-Length: 137
40
 
40
 
41
 {"type":"Feature","id":7,"properties":{"name":"Mpoint"},"geometry":{"type":"MultiPoint","coordinates":[[10,40],[40,30],[20,20],[30,10]]}}
41
 {"type":"Feature","id":7,"properties":{"name":"Mpoint"},"geometry":{"type":"MultiPoint","coordinates":[[10,40],[40,30],[20,20],[30,10]]}}
43
 GET /geojson/countries/8
43
 GET /geojson/countries/8
44
 ===
44
 ===
45
 200
45
 200
46
-Content-Type: application/json
46
+Content-Type: application/json; charset=utf-8
47
 Content-Length: 169
47
 Content-Length: 169
48
 
48
 
49
 {"type":"Feature","id":8,"properties":{"name":"Mline"},"geometry":{"type":"MultiLineString","coordinates":[[[10,10],[20,20],[10,40]],[[40,40],[30,30],[40,20],[30,10]]]}}
49
 {"type":"Feature","id":8,"properties":{"name":"Mline"},"geometry":{"type":"MultiLineString","coordinates":[[[10,10],[20,20],[10,40]],[[40,40],[30,30],[40,20],[30,10]]]}}
51
 GET /geojson/countries/9
51
 GET /geojson/countries/9
52
 ===
52
 ===
53
 200
53
 200
54
-Content-Type: application/json
54
+Content-Type: application/json; charset=utf-8
55
 Content-Length: 184
55
 Content-Length: 184
56
 
56
 
57
 {"type":"Feature","id":9,"properties":{"name":"Mpoly1"},"geometry":{"type":"MultiPolygon","coordinates":[[[[30,20],[45,40],[10,40],[30,20]]],[[[15,5],[40,10],[10,20],[5,10],[15,5]]]]}}
57
 {"type":"Feature","id":9,"properties":{"name":"Mpoly1"},"geometry":{"type":"MultiPolygon","coordinates":[[[[30,20],[45,40],[10,40],[30,20]]],[[[15,5],[40,10],[10,20],[5,10],[15,5]]]]}}
59
 GET /geojson/countries/10
59
 GET /geojson/countries/10
60
 ===
60
 ===
61
 200
61
 200
62
-Content-Type: application/json
62
+Content-Type: application/json; charset=utf-8
63
 Content-Length: 229
63
 Content-Length: 229
64
 
64
 
65
 {"type":"Feature","id":10,"properties":{"name":"Mpoly2"},"geometry":{"type":"MultiPolygon","coordinates":[[[[40,40],[20,45],[45,30],[40,40]]],[[[20,35],[10,30],[10,10],[30,5],[45,20],[20,35]],[[30,20],[20,15],[20,25],[30,20]]]]}}
65
 {"type":"Feature","id":10,"properties":{"name":"Mpoly2"},"geometry":{"type":"MultiPolygon","coordinates":[[[[40,40],[20,45],[45,30],[40,40]]],[[[20,35],[10,30],[10,10],[30,5],[45,20],[20,35]],[[30,20],[20,15],[20,25],[30,20]]]]}}
67
 GET /geojson/countries/11
67
 GET /geojson/countries/11
68
 ===
68
 ===
69
 500
69
 500
70
-Content-Type: application/json
70
+Content-Type: application/json; charset=utf-8
71
 Content-Length: 73
71
 Content-Length: 73
72
 
72
 
73
 {"code":9999,"message":"Geometry type not supported: GEOMETRYCOLLECTION"}
73
 {"code":9999,"message":"Geometry type not supported: GEOMETRYCOLLECTION"}

+ 2
- 2
tests/functional/001_records/082_read_users_as_geojson.log View File

3
 GET /geojson/users/1?exclude=password
3
 GET /geojson/users/1?exclude=password
4
 ===
4
 ===
5
 200
5
 200
6
-Content-Type: application/json
6
+Content-Type: application/json; charset=utf-8
7
 Content-Length: 109
7
 Content-Length: 109
8
 
8
 
9
 {"type":"Feature","id":1,"properties":{"username":"user1"},"geometry":{"type":"Point","coordinates":[30,20]}}
9
 {"type":"Feature","id":1,"properties":{"username":"user1"},"geometry":{"type":"Point","coordinates":[30,20]}}
11
 GET /geojson/users/2?exclude=password
11
 GET /geojson/users/2?exclude=password
12
 ===
12
 ===
13
 200
13
 200
14
-Content-Type: application/json
14
+Content-Type: application/json; charset=utf-8
15
 Content-Length: 75
15
 Content-Length: 75
16
 
16
 
17
 {"type":"Feature","id":2,"properties":{"username":"user2"},"geometry":null}
17
 {"type":"Feature","id":2,"properties":{"username":"user2"},"geometry":null}

+ 5
- 5
tests/functional/001_records/083_list_users_as_geojson.log View File

3
 GET /geojson/users?exclude=password
3
 GET /geojson/users?exclude=password
4
 ===
4
 ===
5
 200
5
 200
6
-Content-Type: application/json
6
+Content-Type: application/json; charset=utf-8
7
 Content-Length: 227
7
 Content-Length: 227
8
 
8
 
9
 {"type":"FeatureCollection","features":[{"type":"Feature","id":1,"properties":{"username":"user1"},"geometry":{"type":"Point","coordinates":[30,20]}},{"type":"Feature","id":2,"properties":{"username":"user2"},"geometry":null}]}
9
 {"type":"FeatureCollection","features":[{"type":"Feature","id":1,"properties":{"username":"user1"},"geometry":{"type":"Point","coordinates":[30,20]}},{"type":"Feature","id":2,"properties":{"username":"user2"},"geometry":null}]}
11
 GET /geojson/users?exclude=password&geometry=location
11
 GET /geojson/users?exclude=password&geometry=location
12
 ===
12
 ===
13
 200
13
 200
14
-Content-Type: application/json
14
+Content-Type: application/json; charset=utf-8
15
 Content-Length: 227
15
 Content-Length: 227
16
 
16
 
17
 {"type":"FeatureCollection","features":[{"type":"Feature","id":1,"properties":{"username":"user1"},"geometry":{"type":"Point","coordinates":[30,20]}},{"type":"Feature","id":2,"properties":{"username":"user2"},"geometry":null}]}
17
 {"type":"FeatureCollection","features":[{"type":"Feature","id":1,"properties":{"username":"user1"},"geometry":{"type":"Point","coordinates":[30,20]}},{"type":"Feature","id":2,"properties":{"username":"user2"},"geometry":null}]}
19
 GET /geojson/users?exclude=password&geometry=notlocation
19
 GET /geojson/users?exclude=password&geometry=notlocation
20
 ===
20
 ===
21
 200
21
 200
22
-Content-Type: application/json
22
+Content-Type: application/json; charset=utf-8
23
 Content-Length: 235
23
 Content-Length: 235
24
 
24
 
25
 {"type":"FeatureCollection","features":[{"type":"Feature","id":1,"properties":{"username":"user1","location":"POINT(30 20)"},"geometry":null},{"type":"Feature","id":2,"properties":{"username":"user2","location":null},"geometry":null}]}
25
 {"type":"FeatureCollection","features":[{"type":"Feature","id":1,"properties":{"username":"user1","location":"POINT(30 20)"},"geometry":null},{"type":"Feature","id":2,"properties":{"username":"user2","location":null},"geometry":null}]}
27
 GET /geojson/users?exclude=password&page=1,1
27
 GET /geojson/users?exclude=password&page=1,1
28
 ===
28
 ===
29
 200
29
 200
30
-Content-Type: application/json
30
+Content-Type: application/json; charset=utf-8
31
 Content-Length: 163
31
 Content-Length: 163
32
 
32
 
33
 {"type":"FeatureCollection","features":[{"type":"Feature","id":1,"properties":{"username":"user1"},"geometry":{"type":"Point","coordinates":[30,20]}}],"results":2}
33
 {"type":"FeatureCollection","features":[{"type":"Feature","id":1,"properties":{"username":"user1"},"geometry":{"type":"Point","coordinates":[30,20]}}],"results":2}
35
 GET /geojson/users?exclude=password&bbox=29.99,19.99,30.01,20.01
35
 GET /geojson/users?exclude=password&bbox=29.99,19.99,30.01,20.01
36
 ===
36
 ===
37
 200
37
 200
38
-Content-Type: application/json
38
+Content-Type: application/json; charset=utf-8
39
 Content-Length: 151
39
 Content-Length: 151
40
 
40
 
41
 {"type":"FeatureCollection","features":[{"type":"Feature","id":1,"properties":{"username":"user1"},"geometry":{"type":"Point","coordinates":[30,20]}}]}
41
 {"type":"FeatureCollection","features":[{"type":"Feature","id":1,"properties":{"username":"user1"},"geometry":{"type":"Point","coordinates":[30,20]}}]}

+ 5
- 5
tests/functional/001_records/084_update_tags_with_boolean.log View File

2
 GET /records/tags/1
2
 GET /records/tags/1
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 44
6
 Content-Length: 44
7
 
7
 
8
 {"id":1,"name":"funny","is_important":false}
8
 {"id":1,"name":"funny","is_important":false}
12
 {"id":1,"name":"funny","is_important":true}
12
 {"id":1,"name":"funny","is_important":true}
13
 ===
13
 ===
14
 200
14
 200
15
-Content-Type: application/json
15
+Content-Type: application/json; charset=utf-8
16
 Content-Length: 1
16
 Content-Length: 1
17
 
17
 
18
 1
18
 1
20
 GET /records/tags/1
20
 GET /records/tags/1
21
 ===
21
 ===
22
 200
22
 200
23
-Content-Type: application/json
23
+Content-Type: application/json; charset=utf-8
24
 Content-Length: 43
24
 Content-Length: 43
25
 
25
 
26
 {"id":1,"name":"funny","is_important":true}
26
 {"id":1,"name":"funny","is_important":true}
30
 {"id":1,"name":"funny","is_important":false}
30
 {"id":1,"name":"funny","is_important":false}
31
 ===
31
 ===
32
 200
32
 200
33
-Content-Type: application/json
33
+Content-Type: application/json; charset=utf-8
34
 Content-Length: 1
34
 Content-Length: 1
35
 
35
 
36
 1
36
 1
38
 GET /records/tags/1
38
 GET /records/tags/1
39
 ===
39
 ===
40
 200
40
 200
41
-Content-Type: application/json
41
+Content-Type: application/json; charset=utf-8
42
 Content-Length: 44
42
 Content-Length: 44
43
 
43
 
44
 {"id":1,"name":"funny","is_important":false}
44
 {"id":1,"name":"funny","is_important":false}

+ 5
- 5
tests/functional/001_records/085_update_invisble_column_kunsthandvaerk.log View File

4
 {"id":"b55decba-8eb5-436b-af3e-148f7b4eacda","Umlauts ä_ö_ü-COUNT":4,"user_id":2}
4
 {"id":"b55decba-8eb5-436b-af3e-148f7b4eacda","Umlauts ä_ö_ü-COUNT":4,"user_id":2}
5
 ===
5
 ===
6
 200
6
 200
7
-Content-Type: application/json
7
+Content-Type: application/json; charset=utf-8
8
 Content-Length: 38
8
 Content-Length: 38
9
 
9
 
10
 "b55decba-8eb5-436b-af3e-148f7b4eacda"
10
 "b55decba-8eb5-436b-af3e-148f7b4eacda"
12
 GET /records/kunsthåndværk/b55decba-8eb5-436b-af3e-148f7b4eacda
12
 GET /records/kunsthåndværk/b55decba-8eb5-436b-af3e-148f7b4eacda
13
 ===
13
 ===
14
 200
14
 200
15
-Content-Type: application/json
15
+Content-Type: application/json; charset=utf-8
16
 Content-Length: 104
16
 Content-Length: 104
17
 
17
 
18
 {"id":"b55decba-8eb5-436b-af3e-148f7b4eacda","Umlauts ä_ö_ü-COUNT":4,"user_id":1,"invisible_id":null}
18
 {"id":"b55decba-8eb5-436b-af3e-148f7b4eacda","Umlauts ä_ö_ü-COUNT":4,"user_id":1,"invisible_id":null}
22
 {"id":"b55decba-8eb5-436b-af3e-148f7b4eacda","Umlauts ä_ö_ü-COUNT":3,"invisible":"test"}
22
 {"id":"b55decba-8eb5-436b-af3e-148f7b4eacda","Umlauts ä_ö_ü-COUNT":3,"invisible":"test"}
23
 ===
23
 ===
24
 200
24
 200
25
-Content-Type: application/json
25
+Content-Type: application/json; charset=utf-8
26
 Content-Length: 1
26
 Content-Length: 1
27
 
27
 
28
 1
28
 1
30
 GET /records/kunsthåndværk/b55decba-8eb5-436b-af3e-148f7b4eacda
30
 GET /records/kunsthåndværk/b55decba-8eb5-436b-af3e-148f7b4eacda
31
 ===
31
 ===
32
 200
32
 200
33
-Content-Type: application/json
33
+Content-Type: application/json; charset=utf-8
34
 Content-Length: 104
34
 Content-Length: 104
35
 
35
 
36
 {"id":"b55decba-8eb5-436b-af3e-148f7b4eacda","Umlauts ä_ö_ü-COUNT":3,"user_id":1,"invisible_id":null}
36
 {"id":"b55decba-8eb5-436b-af3e-148f7b4eacda","Umlauts ä_ö_ü-COUNT":3,"user_id":1,"invisible_id":null}
38
 DELETE /records/kunsthåndværk/b55decba-8eb5-436b-af3e-148f7b4eacda
38
 DELETE /records/kunsthåndværk/b55decba-8eb5-436b-af3e-148f7b4eacda
39
 ===
39
 ===
40
 200
40
 200
41
-Content-Type: application/json
41
+Content-Type: application/json; charset=utf-8
42
 Content-Length: 1
42
 Content-Length: 1
43
 
43
 
44
 1
44
 1

+ 4
- 4
tests/functional/001_records/086_add_and_update_posts_in_large_batch.log
File diff suppressed because it is too large
View File


+ 13
- 13
tests/functional/001_records/087_read_and_write_posts_as_xml.log View File

2
 GET /records/posts/1
2
 GET /records/posts/1
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 61
6
 Content-Length: 61
7
 
7
 
8
 {"id":1,"user_id":1,"category_id":1,"content":"blog started"}
8
 {"id":1,"user_id":1,"category_id":1,"content":"blog started"}
10
 GET /records/posts/1?format=xml
10
 GET /records/posts/1?format=xml
11
 ===
11
 ===
12
 200
12
 200
13
-Content-Type: text/xml
13
+Content-Type: text/xml; charset=utf-8
14
 Content-Length: 102
14
 Content-Length: 102
15
 
15
 
16
 <root><id>1</id><user_id>1</user_id><category_id>1</category_id><content>blog started</content></root>
16
 <root><id>1</id><user_id>1</user_id><category_id>1</category_id><content>blog started</content></root>
18
 GET /records/posts?size=1
18
 GET /records/posts?size=1
19
 ===
19
 ===
20
 200
20
 200
21
-Content-Type: application/json
21
+Content-Type: application/json; charset=utf-8
22
 Content-Length: 75
22
 Content-Length: 75
23
 
23
 
24
 {"records":[{"id":1,"user_id":1,"category_id":1,"content":"blog started"}]}
24
 {"records":[{"id":1,"user_id":1,"category_id":1,"content":"blog started"}]}
26
 GET /records/posts?size=1&format=xml
26
 GET /records/posts?size=1&format=xml
27
 ===
27
 ===
28
 200
28
 200
29
-Content-Type: text/xml
29
+Content-Type: text/xml; charset=utf-8
30
 Content-Length: 147
30
 Content-Length: 147
31
 
31
 
32
 <root><records type="array"><item><id>1</id><user_id>1</user_id><category_id>1</category_id><content>blog started</content></item></records></root>
32
 <root><records type="array"><item><id>1</id><user_id>1</user_id><category_id>1</category_id><content>blog started</content></item></records></root>
34
 GET /records/posts/1?join=users&format=xml
34
 GET /records/posts/1?join=users&format=xml
35
 ===
35
 ===
36
 200
36
 200
37
-Content-Type: text/xml
37
+Content-Type: text/xml; charset=utf-8
38
 Content-Length: 200
38
 Content-Length: 200
39
 
39
 
40
 <root><id>1</id><user_id><id>1</id><username>user1</username><password>testtest2</password><location>POINT(30 20)</location></user_id><category_id>1</category_id><content>blog started</content></root>
40
 <root><id>1</id><user_id><id>1</id><username>user1</username><password>testtest2</password><location>POINT(30 20)</location></user_id><category_id>1</category_id><content>blog started</content></root>
42
 GET /records/posts/1?join=users&join=comments,categories
42
 GET /records/posts/1?join=users&join=comments,categories
43
 ===
43
 ===
44
 200
44
 200
45
-Content-Type: application/json
45
+Content-Type: application/json; charset=utf-8
46
 Content-Length: 335
46
 Content-Length: 335
47
 
47
 
48
 {"id":1,"user_id":{"id":1,"username":"user1","password":"testtest2","location":"POINT(30 20)"},"category_id":1,"content":"blog started","comments":[{"id":1,"post_id":1,"message":"great","category_id":{"id":3,"name":"comment","icon":null}},{"id":2,"post_id":1,"message":"fantastic","category_id":{"id":3,"name":"comment","icon":null}}]}
48
 {"id":1,"user_id":{"id":1,"username":"user1","password":"testtest2","location":"POINT(30 20)"},"category_id":1,"content":"blog started","comments":[{"id":1,"post_id":1,"message":"great","category_id":{"id":3,"name":"comment","icon":null}},{"id":2,"post_id":1,"message":"fantastic","category_id":{"id":3,"name":"comment","icon":null}}]}
50
 GET /records/posts/1?join=users&join=comments,categories&format=xml
50
 GET /records/posts/1?join=users&join=comments,categories&format=xml
51
 ===
51
 ===
52
 200
52
 200
53
-Content-Type: text/xml
53
+Content-Type: text/xml; charset=utf-8
54
 Content-Length: 536
54
 Content-Length: 536
55
 
55
 
56
 <root><id>1</id><user_id><id>1</id><username>user1</username><password>testtest2</password><location>POINT(30 20)</location></user_id><category_id>1</category_id><content>blog started</content><comments type="array"><item><id>1</id><post_id>1</post_id><message>great</message><category_id><id>3</id><name>comment</name><icon type="null"></icon></category_id></item><item><id>2</id><post_id>1</post_id><message>fantastic</message><category_id><id>3</id><name>comment</name><icon type="null"></icon></category_id></item></comments></root>
56
 <root><id>1</id><user_id><id>1</id><username>user1</username><password>testtest2</password><location>POINT(30 20)</location></user_id><category_id>1</category_id><content>blog started</content><comments type="array"><item><id>1</id><post_id>1</post_id><message>great</message><category_id><id>3</id><name>comment</name><icon type="null"></icon></category_id></item><item><id>2</id><post_id>1</post_id><message>fantastic</message><category_id><id>3</id><name>comment</name><icon type="null"></icon></category_id></item></comments></root>
58
 GET /records/posts?page=2,1
58
 GET /records/posts?page=2,1
59
 ===
59
 ===
60
 200
60
 200
61
-Content-Type: application/json
61
+Content-Type: application/json; charset=utf-8
62
 Content-Length: 222
62
 Content-Length: 222
63
 
63
 
64
 {"records":[{"id":2,"user_id":1,"category_id":2,"content":"🦀€ Grüßgott, Вiтаю, dobrý deň, hyvää päivää, გამარჯობა, Γεια σας, góðan dag, здравствуйте"}],"results":12}
64
 {"records":[{"id":2,"user_id":1,"category_id":2,"content":"🦀€ Grüßgott, Вiтаю, dobrý deň, hyvää päivää, გამარჯობა, Γεια σας, góðan dag, здравствуйте"}],"results":12}
66
 GET /records/posts?page=2,1&format=xml
66
 GET /records/posts?page=2,1&format=xml
67
 ===
67
 ===
68
 200
68
 200
69
-Content-Type: text/xml
69
+Content-Type: text/xml; charset=utf-8
70
 Content-Length: 302
70
 Content-Length: 302
71
 
71
 
72
 <root><records type="array"><item><id>2</id><user_id>1</user_id><category_id>2</category_id><content>🦀€ Grüßgott, Вiтаю, dobrý deň, hyvää päivää, გამარჯობა, Γεια σας, góðan dag, здравствуйте</content></item></records><results>12</results></root>
72
 <root><records type="array"><item><id>2</id><user_id>1</user_id><category_id>2</category_id><content>🦀€ Grüßgott, Вiтаю, dobrý deň, hyvää päivää, გამარჯობა, Γεια σας, góðan dag, здравствуйте</content></item></records><results>12</results></root>
77
 <object><id>1</id><user_id>1</user_id><category_id>1</category_id><content>blog started</content></object>
77
 <object><id>1</id><user_id>1</user_id><category_id>1</category_id><content>blog started</content></object>
78
 ===
78
 ===
79
 200
79
 200
80
-Content-Type: text/xml
80
+Content-Type: text/xml; charset=utf-8
81
 Content-Length: 72
81
 Content-Length: 72
82
 
82
 
83
 <root><code>1009</code><message>Duplicate key exception</message></root>
83
 <root><code>1009</code><message>Duplicate key exception</message></root>
88
 <object><user_id>1</user_id><category_id>1</category_id><content>blog started</content></object>
88
 <object><user_id>1</user_id><category_id>1</category_id><content>blog started</content></object>
89
 ===
89
 ===
90
 200
90
 200
91
-Content-Type: text/xml
91
+Content-Type: text/xml; charset=utf-8
92
 Content-Length: 14
92
 Content-Length: 14
93
 
93
 
94
 <root>1</root>
94
 <root>1</root>
99
 <root><user_id>a</user_id></root>
99
 <root><user_id>a</user_id></root>
100
 ===
100
 ===
101
 200
101
 200
102
-Content-Type: text/xml
102
+Content-Type: text/xml; charset=utf-8
103
 Content-Length: 137
103
 Content-Length: 137
104
 
104
 
105
 <root><code>1013</code><message>Input validation failed for 'posts'</message><details><user_id>invalid integer</user_id></details></root>
105
 <root><code>1013</code><message>Input validation failed for 'posts'</message><details><user_id>invalid integer</user_id></details></root>
110
 <root><user_id>a</wrong_tag></root>
110
 <root><user_id>a</wrong_tag></root>
111
 ===
111
 ===
112
 200
112
 200
113
-Content-Type: text/xml
113
+Content-Type: text/xml; charset=utf-8
114
 Content-Length: 73
114
 Content-Length: 73
115
 
115
 
116
 <root><code>1008</code><message>Cannot read HTTP message</message></root>
116
 <root><code>1008</code><message>Cannot read HTTP message</message></root>

+ 3
- 3
tests/functional/001_records/088_read_and_write_multiple_posts_as_xml.log View File

2
 GET /records/posts/1,2
2
 GET /records/posts/1,2
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 259
6
 Content-Length: 259
7
 
7
 
8
 [{"id":1,"user_id":1,"category_id":1,"content":"blog started"},{"id":2,"user_id":1,"category_id":2,"content":"🦀€ Grüßgott, Вiтаю, dobrý deň, hyvää päivää, გამარჯობა, Γεια σας, góðan dag, здравствуйте"}]
8
 [{"id":1,"user_id":1,"category_id":1,"content":"blog started"},{"id":2,"user_id":1,"category_id":2,"content":"🦀€ Grüßgott, Вiтаю, dobrý deň, hyvää päivää, გამარჯობა, Γεια σας, góðan dag, здравствуйте"}]
10
 GET /records/posts/1,2?format=xml
10
 GET /records/posts/1,2?format=xml
11
 ===
11
 ===
12
 200
12
 200
13
-Content-Type: text/xml
13
+Content-Type: text/xml; charset=utf-8
14
 Content-Length: 364
14
 Content-Length: 364
15
 
15
 
16
 <root type="array"><item><id>1</id><user_id>1</user_id><category_id>1</category_id><content>blog started</content></item><item><id>2</id><user_id>1</user_id><category_id>2</category_id><content>🦀€ Grüßgott, Вiтаю, dobrý deň, hyvää päivää, გამარჯობა, Γεια σας, góðan dag, здравствуйте</content></item></root>
16
 <root type="array"><item><id>1</id><user_id>1</user_id><category_id>1</category_id><content>blog started</content></item><item><id>2</id><user_id>1</user_id><category_id>2</category_id><content>🦀€ Grüßgott, Вiтаю, dobrý deň, hyvää päivää, გამარჯობა, Γεια σας, góðan dag, здравствуйте</content></item></root>
20
 <object type="array"><object><user_id>1</user_id></object><object><user_id>2</user_id></object></object>
20
 <object type="array"><object><user_id>1</user_id></object><object><user_id>2</user_id></object></object>
21
 ===
21
 ===
22
 200
22
 200
23
-Content-Type: text/xml
23
+Content-Type: text/xml; charset=utf-8
24
 Content-Length: 54
24
 Content-Length: 54
25
 
25
 
26
 <root type="array"><item>1</item><item>1</item></root>
26
 <root type="array"><item>1</item><item>1</item></root>

+ 4
- 4
tests/functional/002_auth/001_jwt_auth.log View File

3
 X-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6IjE1MzgyMDc2MDUiLCJleHAiOjE1MzgyMDc2MzV9.Z5px_GT15TRKhJCTHhDt5Z6K6LRDSFnLj8U5ok9l7gw
3
 X-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6IjE1MzgyMDc2MDUiLCJleHAiOjE1MzgyMDc2MzV9.Z5px_GT15TRKhJCTHhDt5Z6K6LRDSFnLj8U5ok9l7gw
4
 ===
4
 ===
5
 200
5
 200
6
-Content-Type: application/json
6
+Content-Type: application/json; charset=utf-8
7
 Content-Length: 45
7
 Content-Length: 45
8
 
8
 
9
 {"id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
9
 {"id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
11
 GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
11
 GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
12
 ===
12
 ===
13
 200
13
 200
14
-Content-Type: application/json
14
+Content-Type: application/json; charset=utf-8
15
 Content-Length: 45
15
 Content-Length: 45
16
 
16
 
17
 {"id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
17
 {"id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
20
 X-Authorization: Bearer invalid
20
 X-Authorization: Bearer invalid
21
 ===
21
 ===
22
 403
22
 403
23
-Content-Type: application/json
23
+Content-Type: application/json; charset=utf-8
24
 Content-Length: 57
24
 Content-Length: 57
25
 
25
 
26
 {"code":1012,"message":"Authentication failed for 'JWT'"}
26
 {"code":1012,"message":"Authentication failed for 'JWT'"}
28
 GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
28
 GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
29
 ===
29
 ===
30
 404
30
 404
31
-Content-Type: application/json
31
+Content-Type: application/json; charset=utf-8
32
 Content-Length: 54
32
 Content-Length: 54
33
 
33
 
34
 {"code":1001,"message":"Table 'invisibles' not found"}
34
 {"code":1001,"message":"Table 'invisibles' not found"}

+ 4
- 4
tests/functional/002_auth/002_basic_auth.log View File

3
 Authorization: Basic dXNlcm5hbWUxOnBhc3N3b3JkMQ
3
 Authorization: Basic dXNlcm5hbWUxOnBhc3N3b3JkMQ
4
 ===
4
 ===
5
 200
5
 200
6
-Content-Type: application/json
6
+Content-Type: application/json; charset=utf-8
7
 Content-Length: 45
7
 Content-Length: 45
8
 
8
 
9
 {"id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
9
 {"id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
11
 GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
11
 GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
12
 ===
12
 ===
13
 200
13
 200
14
-Content-Type: application/json
14
+Content-Type: application/json; charset=utf-8
15
 Content-Length: 45
15
 Content-Length: 45
16
 
16
 
17
 {"id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
17
 {"id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
20
 Authorization: Basic aW52YWxpZHVzZXI6aW52YWxpZHBhc3M
20
 Authorization: Basic aW52YWxpZHVzZXI6aW52YWxpZHBhc3M
21
 ===
21
 ===
22
 403
22
 403
23
-Content-Type: application/json
23
+Content-Type: application/json; charset=utf-8
24
 Content-Length: 65
24
 Content-Length: 65
25
 
25
 
26
 {"code":1012,"message":"Authentication failed for 'invaliduser'"}
26
 {"code":1012,"message":"Authentication failed for 'invaliduser'"}
28
 GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
28
 GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
29
 ===
29
 ===
30
 404
30
 404
31
-Content-Type: application/json
31
+Content-Type: application/json; charset=utf-8
32
 Content-Length: 54
32
 Content-Length: 54
33
 
33
 
34
 {"code":1001,"message":"Table 'invisibles' not found"}
34
 {"code":1001,"message":"Table 'invisibles' not found"}

+ 10
- 10
tests/functional/002_auth/003_db_auth.log View File

2
 GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
2
 GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
3
 ===
3
 ===
4
 404
4
 404
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 54
6
 Content-Length: 54
7
 
7
 
8
 {"code":1001,"message":"Table 'invisibles' not found"}
8
 {"code":1001,"message":"Table 'invisibles' not found"}
9
 ===
9
 ===
10
 POST /login
10
 POST /login
11
-Content-Type: application/json
11
+Content-Type: application/json; charset=utf-8
12
 
12
 
13
 {"username":"user2","password":"pass2"}
13
 {"username":"user2","password":"pass2"}
14
 ===
14
 ===
15
 200
15
 200
16
-Content-Type: application/json
16
+Content-Type: application/json; charset=utf-8
17
 Content-Length: 27
17
 Content-Length: 27
18
 
18
 
19
 {"id":2,"username":"user2"}
19
 {"id":2,"username":"user2"}
21
 GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
21
 GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
22
 ===
22
 ===
23
 200
23
 200
24
-Content-Type: application/json
24
+Content-Type: application/json; charset=utf-8
25
 Content-Length: 45
25
 Content-Length: 45
26
 
26
 
27
 {"id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
27
 {"id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
28
 ===
28
 ===
29
 POST /login
29
 POST /login
30
-Content-Type: application/json
30
+Content-Type: application/json; charset=utf-8
31
 
31
 
32
 {"username":"user2","password":"incorect password"}
32
 {"username":"user2","password":"incorect password"}
33
 ===
33
 ===
34
 403
34
 403
35
-Content-Type: application/json
35
+Content-Type: application/json; charset=utf-8
36
 Content-Length: 59
36
 Content-Length: 59
37
 
37
 
38
 {"code":1012,"message":"Authentication failed for 'user2'"}
38
 {"code":1012,"message":"Authentication failed for 'user2'"}
40
 GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
40
 GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
41
 ===
41
 ===
42
 200
42
 200
43
-Content-Type: application/json
43
+Content-Type: application/json; charset=utf-8
44
 Content-Length: 45
44
 Content-Length: 45
45
 
45
 
46
 {"id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
46
 {"id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
48
 POST /logout
48
 POST /logout
49
 ===
49
 ===
50
 200
50
 200
51
-Content-Type: application/json
51
+Content-Type: application/json; charset=utf-8
52
 Content-Length: 27
52
 Content-Length: 27
53
 
53
 
54
 {"id":2,"username":"user2"}
54
 {"id":2,"username":"user2"}
56
 GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
56
 GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
57
 ===
57
 ===
58
 404
58
 404
59
-Content-Type: application/json
59
+Content-Type: application/json; charset=utf-8
60
 Content-Length: 54
60
 Content-Length: 54
61
 
61
 
62
 {"code":1001,"message":"Table 'invisibles' not found"}
62
 {"code":1001,"message":"Table 'invisibles' not found"}
64
 POST /logout
64
 POST /logout
65
 ===
65
 ===
66
 401
66
 401
67
-Content-Type: application/json
67
+Content-Type: application/json; charset=utf-8
68
 Content-Length: 49
68
 Content-Length: 49
69
 
69
 
70
 {"code":1011,"message":"Authentication required"}
70
 {"code":1011,"message":"Authentication required"}

+ 1
- 1
tests/functional/003_columns/001_get_database.log View File

3
 GET /columns
3
 GET /columns
4
 ===
4
 ===
5
 200
5
 200
6
-Content-Type: application/json
6
+Content-Type: application/json; charset=utf-8
7
 Content-Length: 2799
7
 Content-Length: 2799
8
 
8
 
9
 {"tables":[{"name":"barcodes","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"product_id","type":"integer","fk":"products"},{"name":"hex","type":"varchar","length":255},{"name":"bin","type":"blob"},{"name":"ip_address","type":"varchar","length":15,"nullable":true}]},{"name":"categories","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"name","type":"varchar","length":255},{"name":"icon","type":"blob","nullable":true}]},{"name":"comments","type":"table","columns":[{"name":"id","type":"bigint","pk":true},{"name":"post_id","type":"integer","fk":"posts"},{"name":"message","type":"varchar","length":255},{"name":"category_id","type":"integer","fk":"categories"}]},{"name":"countries","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"name","type":"varchar","length":255},{"name":"shape","type":"geometry"}]},{"name":"events","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"name","type":"varchar","length":255},{"name":"datetime","type":"timestamp","nullable":true},{"name":"visitors","type":"bigint","nullable":true}]},{"name":"kunsthåndværk","type":"table","columns":[{"name":"id","type":"varchar","length":36,"pk":true},{"name":"Umlauts ä_ö_ü-COUNT","type":"integer"},{"name":"user_id","type":"integer","fk":"users"},{"name":"invisible_id","type":"varchar","length":36,"nullable":true,"fk":"invisibles"}]},{"name":"nopk","type":"table","columns":[{"name":"id","type":"varchar","length":36}]},{"name":"post_tags","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"post_id","type":"integer","fk":"posts"},{"name":"tag_id","type":"integer","fk":"tags"}]},{"name":"posts","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"user_id","type":"integer","fk":"users"},{"name":"category_id","type":"integer","fk":"categories"},{"name":"content","type":"varchar","length":255}]},{"name":"products","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"name","type":"varchar","length":255},{"name":"price","type":"decimal","precision":10,"scale":2},{"name":"properties","type":"clob"},{"name":"created_at","type":"timestamp"},{"name":"deleted_at","type":"timestamp","nullable":true}]},{"name":"tag_usage","type":"view","columns":[{"name":"name","type":"varchar","length":255},{"name":"count","type":"bigint"}]},{"name":"tags","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"name","type":"varchar","length":255},{"name":"is_important","type":"boolean"}]},{"name":"users","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"username","type":"varchar","length":255},{"name":"password","type":"varchar","length":255},{"name":"location","type":"geometry","nullable":true}]}]}
9
 {"tables":[{"name":"barcodes","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"product_id","type":"integer","fk":"products"},{"name":"hex","type":"varchar","length":255},{"name":"bin","type":"blob"},{"name":"ip_address","type":"varchar","length":15,"nullable":true}]},{"name":"categories","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"name","type":"varchar","length":255},{"name":"icon","type":"blob","nullable":true}]},{"name":"comments","type":"table","columns":[{"name":"id","type":"bigint","pk":true},{"name":"post_id","type":"integer","fk":"posts"},{"name":"message","type":"varchar","length":255},{"name":"category_id","type":"integer","fk":"categories"}]},{"name":"countries","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"name","type":"varchar","length":255},{"name":"shape","type":"geometry"}]},{"name":"events","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"name","type":"varchar","length":255},{"name":"datetime","type":"timestamp","nullable":true},{"name":"visitors","type":"bigint","nullable":true}]},{"name":"kunsthåndværk","type":"table","columns":[{"name":"id","type":"varchar","length":36,"pk":true},{"name":"Umlauts ä_ö_ü-COUNT","type":"integer"},{"name":"user_id","type":"integer","fk":"users"},{"name":"invisible_id","type":"varchar","length":36,"nullable":true,"fk":"invisibles"}]},{"name":"nopk","type":"table","columns":[{"name":"id","type":"varchar","length":36}]},{"name":"post_tags","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"post_id","type":"integer","fk":"posts"},{"name":"tag_id","type":"integer","fk":"tags"}]},{"name":"posts","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"user_id","type":"integer","fk":"users"},{"name":"category_id","type":"integer","fk":"categories"},{"name":"content","type":"varchar","length":255}]},{"name":"products","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"name","type":"varchar","length":255},{"name":"price","type":"decimal","precision":10,"scale":2},{"name":"properties","type":"clob"},{"name":"created_at","type":"timestamp"},{"name":"deleted_at","type":"timestamp","nullable":true}]},{"name":"tag_usage","type":"view","columns":[{"name":"name","type":"varchar","length":255},{"name":"count","type":"bigint"}]},{"name":"tags","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"name","type":"varchar","length":255},{"name":"is_important","type":"boolean"}]},{"name":"users","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"username","type":"varchar","length":255},{"name":"password","type":"varchar","length":255},{"name":"location","type":"geometry","nullable":true}]}]}

+ 1
- 1
tests/functional/003_columns/002_get_barcodes_table.log View File

2
 GET /columns/barcodes
2
 GET /columns/barcodes
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 283
6
 Content-Length: 283
7
 
7
 
8
 {"name":"barcodes","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"product_id","type":"integer","fk":"products"},{"name":"hex","type":"varchar","length":255},{"name":"bin","type":"blob"},{"name":"ip_address","type":"varchar","length":15,"nullable":true}]}
8
 {"name":"barcodes","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"product_id","type":"integer","fk":"products"},{"name":"hex","type":"varchar","length":255},{"name":"bin","type":"blob"},{"name":"ip_address","type":"varchar","length":15,"nullable":true}]}

+ 1
- 1
tests/functional/003_columns/003_get_barcodes_id_column.log View File

2
 GET /columns/barcodes/id
2
 GET /columns/barcodes/id
3
 ===
3
 ===
4
 200
4
 200
5
-Content-Type: application/json
5
+Content-Type: application/json; charset=utf-8
6
 Content-Length: 40
6
 Content-Length: 40
7
 
7
 
8
 {"name":"id","type":"integer","pk":true}
8
 {"name":"id","type":"integer","pk":true}

+ 4
- 4
tests/functional/003_columns/004_update_barcodes_id_column.log View File

5
 {"name":"id2","type":"bigint"}
5
 {"name":"id2","type":"bigint"}
6
 ===
6
 ===
7
 200
7
 200
8
-Content-Type: application/json
8
+Content-Type: application/json; charset=utf-8
9
 Content-Length: 4
9
 Content-Length: 4
10
 
10
 
11
 true
11
 true
13
 GET /columns/barcodes/id2
13
 GET /columns/barcodes/id2
14
 ===
14
 ===
15
 200
15
 200
16
-Content-Type: application/json
16
+Content-Type: application/json; charset=utf-8
17
 Content-Length: 40
17
 Content-Length: 40
18
 
18
 
19
 {"name":"id2","type":"bigint","pk":true}
19
 {"name":"id2","type":"bigint","pk":true}
23
 {"name":"id","type":"integer"}
23
 {"name":"id","type":"integer"}
24
 ===
24
 ===
25
 200
25
 200
26
-Content-Type: application/json
26
+Content-Type: application/json; charset=utf-8
27
 Content-Length: 4
27
 Content-Length: 4
28
 
28
 
29
 true
29
 true
31
 GET /columns/barcodes/id
31
 GET /columns/barcodes/id
32
 ===
32
 ===
33
 200
33
 200
34
-Content-Type: application/json
34
+Content-Type: application/json; charset=utf-8
35
 Content-Length: 40
35
 Content-Length: 40
36
 
36
 
37
 {"name":"id","type":"integer","pk":true}
37
 {"name":"id","type":"integer","pk":true}

+ 4
- 4
tests/functional/003_columns/005_update_barcodes_product_id_nullable.log View File

5
 {"nullable":true}
5
 {"nullable":true}
6
 ===
6
 ===
7
 200
7
 200
8
-Content-Type: application/json
8
+Content-Type: application/json; charset=utf-8
9
 Content-Length: 4
9
 Content-Length: 4
10
 
10
 
11
 true
11
 true
13
 GET /columns/barcodes/product_id
13
 GET /columns/barcodes/product_id
14
 ===
14
 ===
15
 200
15
 200
16
-Content-Type: application/json
16
+Content-Type: application/json; charset=utf-8
17
 Content-Length: 70
17
 Content-Length: 70
18
 
18
 
19
 {"name":"product_id","type":"integer","nullable":true,"fk":"products"}
19
 {"name":"product_id","type":"integer","nullable":true,"fk":"products"}
23
 {"nullable":false}
23
 {"nullable":false}
24
 ===
24
 ===
25
 200
25
 200
26
-Content-Type: application/json
26
+Content-Type: application/json; charset=utf-8
27
 Content-Length: 4
27
 Content-Length: 4
28
 
28
 
29
 true
29
 true
31
 GET /columns/barcodes/product_id
31
 GET /columns/barcodes/product_id
32
 ===
32
 ===
33
 200
33
 200
34
-Content-Type: application/json
34
+Content-Type: application/json; charset=utf-8
35
 Content-Length: 54
35
 Content-Length: 54
36
 
36
 
37
 {"name":"product_id","type":"integer","fk":"products"}
37
 {"name":"product_id","type":"integer","fk":"products"}

+ 9
- 9
tests/functional/003_columns/006_update_events_visitors_pk.log View File

3
 GET /columns/events/visitors
3
 GET /columns/events/visitors
4
 ===
4
 ===
5
 200
5
 200
6
-Content-Type: application/json
6
+Content-Type: application/json; charset=utf-8
7
 Content-Length: 51
7
 Content-Length: 51
8
 
8
 
9
 {"name":"visitors","type":"bigint","nullable":true}
9
 {"name":"visitors","type":"bigint","nullable":true}
13
 {"nullable":false}
13
 {"nullable":false}
14
 ===
14
 ===
15
 200
15
 200
16
-Content-Type: application/json
16
+Content-Type: application/json; charset=utf-8
17
 Content-Length: 4
17
 Content-Length: 4
18
 
18
 
19
 true
19
 true
21
 GET /columns/events/visitors
21
 GET /columns/events/visitors
22
 ===
22
 ===
23
 200
23
 200
24
-Content-Type: application/json
24
+Content-Type: application/json; charset=utf-8
25
 Content-Length: 35
25
 Content-Length: 35
26
 
26
 
27
 {"name":"visitors","type":"bigint"}
27
 {"name":"visitors","type":"bigint"}
31
 {"nullable":true}
31
 {"nullable":true}
32
 ===
32
 ===
33
 200
33
 200
34
-Content-Type: application/json
34
+Content-Type: application/json; charset=utf-8
35
 Content-Length: 4
35
 Content-Length: 4
36
 
36
 
37
 true
37
 true
39
 GET /columns/events/id
39
 GET /columns/events/id
40
 ===
40
 ===
41
 200
41
 200
42
-Content-Type: application/json
42
+Content-Type: application/json; charset=utf-8
43
 Content-Length: 40
43
 Content-Length: 40
44
 
44
 
45
 {"name":"id","type":"integer","pk":true}
45
 {"name":"id","type":"integer","pk":true}
49
 {"pk":false}
49
 {"pk":false}
50
 ===
50
 ===
51
 200
51
 200
52
-Content-Type: application/json
52
+Content-Type: application/json; charset=utf-8
53
 Content-Length: 4
53
 Content-Length: 4
54
 
54
 
55
 true
55
 true
57
 GET /columns/events/visitors
57
 GET /columns/events/visitors
58
 ===
58
 ===
59
 200
59
 200
60
-Content-Type: application/json
60
+Content-Type: application/json; charset=utf-8
61
 Content-Length: 51
61
 Content-Length: 51
62
 
62
 
63
 {"name":"visitors","type":"bigint","nullable":true}
63
 {"name":"visitors","type":"bigint","nullable":true}
67
 {"pk":true}
67
 {"pk":true}
68
 ===
68
 ===
69
 200
69
 200
70
-Content-Type: application/json
70
+Content-Type: application/json; charset=utf-8
71
 Content-Length: 4
71
 Content-Length: 4
72
 
72
 
73
 true
73
 true
75
 GET /columns/events/id
75
 GET /columns/events/id
76
 ===
76
 ===
77
 200
77
 200
78
-Content-Type: application/json
78
+Content-Type: application/json; charset=utf-8
79
 Content-Length: 40
79
 Content-Length: 40
80
 
80
 
81
 {"name":"id","type":"integer","pk":true}
81
 {"name":"id","type":"integer","pk":true}

+ 4
- 4
tests/functional/003_columns/007_update_barcodes_product_id_fk.log View File

5
 {"fk":""}
5
 {"fk":""}
6
 ===
6
 ===
7
 200
7
 200
8
-Content-Type: application/json
8
+Content-Type: application/json; charset=utf-8
9
 Content-Length: 4
9
 Content-Length: 4
10
 
10
 
11
 true
11
 true
13
 GET /columns/barcodes/product_id
13
 GET /columns/barcodes/product_id
14
 ===
14
 ===
15
 200
15
 200
16
-Content-Type: application/json
16
+Content-Type: application/json; charset=utf-8
17
 Content-Length: 38
17
 Content-Length: 38
18
 
18
 
19
 {"name":"product_id","type":"integer"}
19
 {"name":"product_id","type":"integer"}
23
 {"fk":"products"}
23
 {"fk":"products"}
24
 ===
24
 ===
25
 200
25
 200
26
-Content-Type: application/json
26
+Content-Type: application/json; charset=utf-8
27
 Content-Length: 4
27
 Content-Length: 4
28
 
28
 
29
 true
29
 true
31
 GET /columns/barcodes/product_id
31
 GET /columns/barcodes/product_id
32
 ===
32
 ===
33
 200
33
 200
34
-Content-Type: application/json
34
+Content-Type: application/json; charset=utf-8
35
 Content-Length: 54
35
 Content-Length: 54
36
 
36
 
37
 {"name":"product_id","type":"integer","fk":"products"}
37
 {"name":"product_id","type":"integer","fk":"products"}

+ 4
- 4
tests/functional/003_columns/008_update_barcodes_table.log View File

4
 {"name":"barcodes2"}
4
 {"name":"barcodes2"}
5
 ===
5
 ===
6
 200
6
 200
7
-Content-Type: application/json
7
+Content-Type: application/json; charset=utf-8
8
 Content-Length: 4
8
 Content-Length: 4
9
 
9
 
10
 true
10
 true
12
 GET /columns/barcodes2
12
 GET /columns/barcodes2
13
 ===
13
 ===
14
 200
14
 200
15
-Content-Type: application/json
15
+Content-Type: application/json; charset=utf-8
16
 Content-Length: 284
16
 Content-Length: 284
17
 
17
 
18
 {"name":"barcodes2","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"product_id","type":"integer","fk":"products"},{"name":"hex","type":"varchar","length":255},{"name":"bin","type":"blob"},{"name":"ip_address","type":"varchar","length":15,"nullable":true}]}
18
 {"name":"barcodes2","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"product_id","type":"integer","fk":"products"},{"name":"hex","type":"varchar","length":255},{"name":"bin","type":"blob"},{"name":"ip_address","type":"varchar","length":15,"nullable":true}]}
22
 {"name":"barcodes"}
22
 {"name":"barcodes"}
23
 ===
23
 ===
24
 200
24
 200
25
-Content-Type: application/json
25
+Content-Type: application/json; charset=utf-8
26
 Content-Length: 4
26
 Content-Length: 4
27
 
27
 
28
 true
28
 true
30
 GET /columns/barcodes
30
 GET /columns/barcodes
31
 ===
31
 ===
32
 200
32
 200
33
-Content-Type: application/json
33
+Content-Type: application/json; charset=utf-8
34
 Content-Length: 283
34
 Content-Length: 283
35
 
35
 
36
 {"name":"barcodes","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"product_id","type":"integer","fk":"products"},{"name":"hex","type":"varchar","length":255},{"name":"bin","type":"blob"},{"name":"ip_address","type":"varchar","length":15,"nullable":true}]}
36
 {"name":"barcodes","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"product_id","type":"integer","fk":"products"},{"name":"hex","type":"varchar","length":255},{"name":"bin","type":"blob"},{"name":"ip_address","type":"varchar","length":15,"nullable":true}]}

+ 4
- 4
tests/functional/003_columns/009_update_barcodes_hex_type.log View File

5
 {"type":"clob"}
5
 {"type":"clob"}
6
 ===
6
 ===
7
 200
7
 200
8
-Content-Type: application/json
8
+Content-Type: application/json; charset=utf-8
9
 Content-Length: 4
9
 Content-Length: 4
10
 
10
 
11
 true
11
 true
13
 GET /columns/barcodes/hex
13
 GET /columns/barcodes/hex
14
 ===
14
 ===
15
 200
15
 200
16
-Content-Type: application/json
16
+Content-Type: application/json; charset=utf-8
17
 Content-Length: 28
17
 Content-Length: 28
18
 
18
 
19
 {"name":"hex","type":"clob"}
19
 {"name":"hex","type":"clob"}
23
 {"type":"varchar","length":255}
23
 {"type":"varchar","length":255}
24
 ===
24
 ===
25
 200
25
 200
26
-Content-Type: application/json
26
+Content-Type: application/json; charset=utf-8
27
 Content-Length: 4
27
 Content-Length: 4
28
 
28
 
29
 true
29
 true
31
 GET /columns/barcodes/hex
31
 GET /columns/barcodes/hex
32
 ===
32
 ===
33
 200
33
 200
34
-Content-Type: application/json
34
+Content-Type: application/json; charset=utf-8
35
 Content-Length: 44
35
 Content-Length: 44
36
 
36
 
37
 {"name":"hex","type":"varchar","length":255}
37
 {"name":"hex","type":"varchar","length":255}

+ 0
- 0
tests/functional/003_columns/010_create_barcodes_table.log View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save