Merge commit '1392bd3a96045302b60d845a90901a4b2234c475' as 'seatmap-webapi'
This commit is contained in:
commit
ea9085b4a4
261 files changed
+39680
No files matched your search
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /records/posts
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 134
|
||||
|
||||
{"records":[{"id":1,"user_id":1,"category_id":1,"content":"blog started"},{"id":2,"user_id":1,"category_id":2,"content":"It works!"}]}
|
||||
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /records/posts?include=id,content
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 78
|
||||
|
||||
{"records":[{"id":1,"content":"blog started"},{"id":2,"content":"It works!"}]}
|
||||
@@ -0,0 +1,16 @@
|
||||
===
|
||||
GET /records/posts/2
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 58
|
||||
|
||||
{"id":2,"user_id":1,"category_id":2,"content":"It works!"}
|
||||
===
|
||||
GET /records/posts/0
|
||||
===
|
||||
404
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 46
|
||||
|
||||
{"code":1003,"message":"Record '0' not found"}
|
||||
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /records/posts/1,2
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 122
|
||||
|
||||
[{"id":1,"user_id":1,"category_id":1,"content":"blog started"},{"id":2,"user_id":1,"category_id":2,"content":"It works!"}]
|
||||
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /records/posts/2?include=id,content
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 30
|
||||
|
||||
{"id":2,"content":"It works!"}
|
||||
@@ -0,0 +1,11 @@
|
||||
===
|
||||
POST /records/posts
|
||||
Content-Type: application/json; charset=utf-8
|
||||
|
||||
{"user_id":1,"category_id":1,"content":"test"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
3
|
||||
@@ -0,0 +1,18 @@
|
||||
===
|
||||
PUT /records/posts/3
|
||||
|
||||
{"user_id":1,"category_id":1,"content":"test (edited)"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
1
|
||||
===
|
||||
GET /records/posts/3
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 62
|
||||
|
||||
{"id":3,"user_id":1,"category_id":1,"content":"test (edited)"}
|
||||
@@ -0,0 +1,18 @@
|
||||
===
|
||||
PUT /records/posts/3?include=id,content
|
||||
|
||||
{"content":"test (edited 2)"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
1
|
||||
===
|
||||
GET /records/posts/3
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 64
|
||||
|
||||
{"id":3,"user_id":1,"category_id":1,"content":"test (edited 2)"}
|
||||
@@ -0,0 +1,18 @@
|
||||
===
|
||||
PUT /records/posts/3?include=id,content
|
||||
|
||||
{"user_id":2,"content":"test (edited 3)"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
1
|
||||
===
|
||||
GET /records/posts/3
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 64
|
||||
|
||||
{"id":3,"user_id":1,"category_id":1,"content":"test (edited 3)"}
|
||||
@@ -0,0 +1,18 @@
|
||||
===
|
||||
PUT /records/posts/2
|
||||
|
||||
{"content":"🤗 Grüßgott, Вiтаю, dobrý deň, hyvää päivää, გამარჯობა, Γεια σας, góðan dag, здравствуйте"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
1
|
||||
===
|
||||
GET /records/posts/2
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 192
|
||||
|
||||
{"id":2,"user_id":1,"category_id":2,"content":"🤗 Grüßgott, Вiтаю, dobrý deň, hyvää päivää, გამარჯობა, Γεια σας, góðan dag, здравствуйте"}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
===
|
||||
PUT /records/posts/2
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
|
||||
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
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
1
|
||||
===
|
||||
GET /records/posts/2
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 195
|
||||
|
||||
{"id":2,"user_id":1,"category_id":2,"content":"🦀€ Grüßgott, Вiтаю, dobrý deň, hyvää päivää, გამარჯობა, Γεια σας, góðan dag, здравствуйте"}
|
||||
@@ -0,0 +1,16 @@
|
||||
===
|
||||
DELETE /records/posts/3
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
1
|
||||
===
|
||||
GET /records/posts/3
|
||||
===
|
||||
404
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 46
|
||||
|
||||
{"code":1003,"message":"Record '3' not found"}
|
||||
@@ -0,0 +1,10 @@
|
||||
===
|
||||
POST /records/posts
|
||||
|
||||
user_id=1&category_id=1&content=test
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
4
|
||||
@@ -0,0 +1,18 @@
|
||||
===
|
||||
PUT /records/posts/4
|
||||
|
||||
user_id=1&category_id=1&content=test+(edited)
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
1
|
||||
===
|
||||
GET /records/posts/4
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 62
|
||||
|
||||
{"id":4,"user_id":1,"category_id":1,"content":"test (edited)"}
|
||||
@@ -0,0 +1,16 @@
|
||||
===
|
||||
DELETE /records/posts/4?include=id,content
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
1
|
||||
===
|
||||
GET /records/posts/4
|
||||
===
|
||||
404
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 46
|
||||
|
||||
{"code":1003,"message":"Record '4' not found"}
|
||||
@@ -0,0 +1,108 @@
|
||||
===
|
||||
POST /records/posts
|
||||
|
||||
{"user_id":1,"category_id":1,"content":"#1"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
5
|
||||
===
|
||||
POST /records/posts
|
||||
|
||||
{"user_id":1,"category_id":1,"content":"#2"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
6
|
||||
===
|
||||
POST /records/posts
|
||||
|
||||
{"user_id":1,"category_id":1,"content":"#3"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
7
|
||||
===
|
||||
POST /records/posts
|
||||
|
||||
{"user_id":1,"category_id":1,"content":"#4"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
8
|
||||
===
|
||||
POST /records/posts
|
||||
|
||||
{"user_id":1,"category_id":1,"content":"#5"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
9
|
||||
===
|
||||
POST /records/posts
|
||||
|
||||
{"user_id":1,"category_id":1,"content":"#6"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 2
|
||||
|
||||
10
|
||||
===
|
||||
POST /records/posts
|
||||
|
||||
{"user_id":1,"category_id":1,"content":"#7"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 2
|
||||
|
||||
11
|
||||
===
|
||||
POST /records/posts
|
||||
|
||||
{"user_id":1,"category_id":1,"content":"#8"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 2
|
||||
|
||||
12
|
||||
===
|
||||
POST /records/posts
|
||||
|
||||
{"user_id":1,"category_id":1,"content":"#9"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 2
|
||||
|
||||
13
|
||||
===
|
||||
POST /records/posts
|
||||
|
||||
{"user_id":1,"category_id":1,"content":"#10"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 2
|
||||
|
||||
14
|
||||
===
|
||||
GET /records/posts?page=2,2&order=id
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 130
|
||||
|
||||
{"records":[{"id":5,"user_id":1,"category_id":1,"content":"#1"},{"id":6,"user_id":1,"category_id":1,"content":"#2"}],"results":12}
|
||||
@@ -0,0 +1,11 @@
|
||||
===
|
||||
PUT /records/posts/2
|
||||
Content-Type: application/json; charset=utf-8
|
||||
|
||||
{"id":1}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
0
|
||||
@@ -0,0 +1,11 @@
|
||||
===
|
||||
POST /records/posts
|
||||
Content-Type: application/json; charset=utf-8
|
||||
|
||||
{"category_id":1,"content":"test"}
|
||||
===
|
||||
409
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 50
|
||||
|
||||
{"code":1010,"message":"Data integrity violation"}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /records/posts?page=1,2&order=category_id,asc&order=id,desc
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 133
|
||||
|
||||
{"records":[{"id":14,"user_id":1,"category_id":1,"content":"#10"},{"id":13,"user_id":1,"category_id":1,"content":"#9"}],"results":12}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /records/posts?page=2,2&order=id,desc
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 132
|
||||
|
||||
{"records":[{"id":12,"user_id":1,"category_id":1,"content":"#8"},{"id":11,"user_id":1,"category_id":1,"content":"#7"}],"results":12}
|
||||
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /records/posts?order=id&size=1
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 75
|
||||
|
||||
{"records":[{"id":1,"user_id":1,"category_id":1,"content":"blog started"}]}
|
||||
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /records/posts?order=id&page=1,0
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 27
|
||||
|
||||
{"records":[],"results":12}
|
||||
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /records/posts?order=id&size=0
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 14
|
||||
|
||||
{"records":[]}
|
||||
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /records/posts?page=3,5&order=id
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 133
|
||||
|
||||
{"records":[{"id":13,"user_id":1,"category_id":1,"content":"#9"},{"id":14,"user_id":1,"category_id":1,"content":"#10"}],"results":12}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /records/posts?filter=id,eq,1
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 75
|
||||
|
||||
{"records":[{"id":1,"user_id":1,"category_id":1,"content":"blog started"}]}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /records/posts?exclude=id&filter=id,eq,1
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 68
|
||||
|
||||
{"records":[{"user_id":1,"category_id":1,"content":"blog started"}]}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /records/posts?join=users&filter=id,eq,1
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 136
|
||||
|
||||
{"records":[{"id":1,"user_id":{"id":1,"username":"user1","password":"pass1","location":null},"category_id":1,"content":"blog started"}]}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /records/posts/1?join=users
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 122
|
||||
|
||||
{"id":1,"user_id":{"id":1,"username":"user1","password":"pass1","location":null},"category_id":1,"content":"blog started"}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /records/posts?join=comments&filter=id,eq,1
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 202
|
||||
|
||||
{"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}]}]}
|
||||
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /records/posts?join=tags&filter=id,eq,1
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 177
|
||||
|
||||
{"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
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /records/posts?join=categories&join=post_tags,tags&join=comments&filter=id,eq,1
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 410
|
||||
|
||||
{"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}]}]}
|
||||
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /records/posts?join=categories&join=tags&join=comments&filter=id,eq,1
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 345
|
||||
|
||||
{"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
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /records/posts?include=tags.name&join=categories&join=post_tags,tags&join=comments&filter=id,eq,1
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 198
|
||||
|
||||
{"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}]}]}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
===
|
||||
GET /records/posts?join=categories&join=post_tags,tags&join=comments&exclude=comments.message,comments.category_id&filter=id,eq,1
|
||||
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 338
|
||||
|
||||
{"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}]}]}
|
||||
@@ -0,0 +1,18 @@
|
||||
===
|
||||
PUT /records/categories/2
|
||||
|
||||
{"icon":"4oKsIABhYmMACg1cYgA"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
1
|
||||
===
|
||||
GET /records/categories/2
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 55
|
||||
|
||||
{"id":2,"name":"article","icon":"4oKsIABhYmMACg1cYgA="}
|
||||
@@ -0,0 +1,36 @@
|
||||
===
|
||||
PUT /records/categories/2
|
||||
|
||||
{"icon":""}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
1
|
||||
===
|
||||
GET /records/categories/2
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 35
|
||||
|
||||
{"id":2,"name":"article","icon":""}
|
||||
===
|
||||
PUT /records/categories/2
|
||||
|
||||
{"icon":null}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
1
|
||||
===
|
||||
GET /records/categories/2
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 37
|
||||
|
||||
{"id":2,"name":"article","icon":null}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
===
|
||||
PUT /records/categories/2
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
|
||||
icon=4oKsIABhYmMACg1cYgA
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
1
|
||||
===
|
||||
GET /records/categories/2
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 55
|
||||
|
||||
{"id":2,"name":"article","icon":"4oKsIABhYmMACg1cYgA="}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /records/categories?filter=id,le,2
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 112
|
||||
|
||||
{"records":[{"id":1,"name":"announcement","icon":null},{"id":2,"name":"article","icon":"4oKsIABhYmMACg1cYgA="}]}
|
||||
@@ -0,0 +1,19 @@
|
||||
===
|
||||
PUT /records/categories/2
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
|
||||
icon__is_null
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
1
|
||||
===
|
||||
GET /records/categories/2
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 37
|
||||
|
||||
{"id":2,"name":"article","icon":null}
|
||||
@@ -0,0 +1,10 @@
|
||||
===
|
||||
POST /records/posts
|
||||
|
||||
["truncat
|
||||
===
|
||||
422
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 50
|
||||
|
||||
{"code":1008,"message":"Cannot read HTTP message"}
|
||||
@@ -0,0 +1,12 @@
|
||||
===
|
||||
OPTIONS /records/posts/1?include=id
|
||||
Origin: http://example.com
|
||||
Access-Control-Request-Method: POST
|
||||
Access-Control-Request-Headers: X-XSRF-TOKEN, X-Requested-With
|
||||
===
|
||||
200
|
||||
Access-Control-Allow-Headers: Content-Type, X-XSRF-TOKEN, X-Authorization
|
||||
Access-Control-Allow-Methods: OPTIONS, GET, PUT, POST, DELETE, PATCH
|
||||
Access-Control-Max-Age: 1728000
|
||||
Access-Control-Allow-Credentials: true
|
||||
Access-Control-Allow-Origin: http://example.com
|
||||
@@ -0,0 +1,11 @@
|
||||
===
|
||||
GET /records/posts/1?include=id
|
||||
Origin: http://example.com
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 8
|
||||
Access-Control-Allow-Credentials: true
|
||||
Access-Control-Allow-Origin: http://example.com
|
||||
|
||||
{"id":1}
|
||||
@@ -0,0 +1,11 @@
|
||||
===
|
||||
POST /records/posts
|
||||
Content-Type: application/json; charset=utf-8
|
||||
|
||||
{"}
|
||||
===
|
||||
422
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 50
|
||||
|
||||
{"code":1008,"message":"Cannot read HTTP message"}
|
||||
@@ -0,0 +1,11 @@
|
||||
===
|
||||
POST /records/kunsthåndværk
|
||||
Content-Type: application/json; charset=utf-8
|
||||
|
||||
{"id":"23587850-8738-437e-8c41-466627ca6094","Umlauts ä_ö_ü-COUNT":1}
|
||||
===
|
||||
409
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 49
|
||||
|
||||
{"code":1009,"message":"Duplicate key exception"}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
===
|
||||
POST /records/posts
|
||||
|
||||
{"user_id":3,"category_id":1,"content":"fk constraint"}
|
||||
===
|
||||
409
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 50
|
||||
|
||||
{"code":1010,"message":"Data integrity violation"}
|
||||
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /records/postzzz
|
||||
===
|
||||
404
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 51
|
||||
|
||||
{"code":1001,"message":"Table 'postzzz' not found"}
|
||||
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /postzzz
|
||||
===
|
||||
404
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 53
|
||||
|
||||
{"code":1000,"message":"Route '\/postzzz' not found"}
|
||||
@@ -0,0 +1,10 @@
|
||||
===
|
||||
PUT /records/posts/1,2
|
||||
|
||||
{"id":1,"user_id":1,"category_id":1,"content":"blog started"}
|
||||
===
|
||||
422
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 58
|
||||
|
||||
{"code":1002,"message":"Argument count mismatch in '1,2'"}
|
||||
@@ -0,0 +1,10 @@
|
||||
===
|
||||
PUT /records/posts/1,2
|
||||
|
||||
[{"id":1,"user_id":1,"category_id":1,"content":"blog started"}]
|
||||
===
|
||||
422
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 58
|
||||
|
||||
{"code":1002,"message":"Argument count mismatch in '1,2'"}
|
||||
@@ -0,0 +1,10 @@
|
||||
===
|
||||
PUT /records/posts/1
|
||||
|
||||
[{"id":1,"user_id":1,"category_id":1,"content":"blog started"}]
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 3
|
||||
|
||||
[1]
|
||||
@@ -0,0 +1,10 @@
|
||||
===
|
||||
PUT /records/posts/1
|
||||
|
||||
[{"id":1},{"id":2}]
|
||||
===
|
||||
422
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 56
|
||||
|
||||
{"code":1002,"message":"Argument count mismatch in '1'"}
|
||||
@@ -0,0 +1,18 @@
|
||||
===
|
||||
PUT /records/users/1
|
||||
|
||||
{"location":"POINT(30 20)"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
1
|
||||
===
|
||||
GET /records/users/1?include=id,location
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 34
|
||||
|
||||
{"id":1,"location":"POINT(30 20)"}
|
||||
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /records/users?include=id,location
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 73
|
||||
|
||||
{"records":[{"id":1,"location":"POINT(30 20)"},{"id":2,"location":null}]}
|
||||
@@ -0,0 +1,18 @@
|
||||
===
|
||||
PUT /records/users/1
|
||||
|
||||
{"id":2,"password":"testtest2"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
1
|
||||
===
|
||||
GET /records/users/1?include=id,username,password
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 50
|
||||
|
||||
{"id":1,"username":"user1","password":"testtest2"}
|
||||
@@ -0,0 +1,16 @@
|
||||
===
|
||||
GET /records/categories?filter=icon,is,null&filter=id,le,2
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 94
|
||||
|
||||
{"records":[{"id":1,"name":"announcement","icon":null},{"id":2,"name":"article","icon":null}]}
|
||||
===
|
||||
GET /records/categories?filter=icon,is&filter=id,le,2
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 94
|
||||
|
||||
{"records":[{"id":1,"name":"announcement","icon":null},{"id":2,"name":"article","icon":null}]}
|
||||
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /records/categories?filter=icon,nis,null
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 14
|
||||
|
||||
{"records":[]}
|
||||
@@ -0,0 +1,24 @@
|
||||
===
|
||||
GET /records/posts?include=id&filter=id,ge,1&filter=id,le,2
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 31
|
||||
|
||||
{"records":[{"id":1},{"id":2}]}
|
||||
===
|
||||
GET /records/posts?include=id&filter[]=id,ge,1&filter[]=id,le,2
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 31
|
||||
|
||||
{"records":[{"id":1},{"id":2}]}
|
||||
===
|
||||
GET /records/posts?include=id&filter[0]=id,ge,1&filter[1]=id,le,2
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 31
|
||||
|
||||
{"records":[{"id":1},{"id":2}]}
|
||||
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /records/posts?include=id&filter1=id,eq,1&filter2=id,eq,2
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 31
|
||||
|
||||
{"records":[{"id":1},{"id":2}]}
|
||||
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /records/posts?include=id&filter1=id,eq,1&filter2=id,gt,1&filter2=id,lt,3
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 31
|
||||
|
||||
{"records":[{"id":1},{"id":2}]}
|
||||
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /records/posts?include=id&filter1=id,eq,1&filter2=id,eq,2&filter=user_id,eq,1
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 31
|
||||
|
||||
{"records":[{"id":1},{"id":2}]}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /records/posts/1?include=content,tags.name&join=tags
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 94
|
||||
|
||||
{"id":1,"content":"blog started","tags":[{"id":1,"name":"funny"},{"id":2,"name":"important"}]}
|
||||
@@ -0,0 +1,16 @@
|
||||
===
|
||||
GET /records/kunsthåndværk/e42c77c6-06a4-4502-816c-d112c7142e6d
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 138
|
||||
|
||||
{"id":"e42c77c6-06a4-4502-816c-d112c7142e6d","Umlauts ä_ö_ü-COUNT":1,"user_id":1,"invisible_id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
|
||||
===
|
||||
GET /records/kunsthåndværk/e42c77c6-06a4-4502-816c-d112c7142e6d?join=invisibles
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 138
|
||||
|
||||
{"id":"e42c77c6-06a4-4502-816c-d112c7142e6d","Umlauts ä_ö_ü-COUNT":1,"user_id":1,"invisible_id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
|
||||
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /records/kunsthåndværk
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 152
|
||||
|
||||
{"records":[{"id":"e42c77c6-06a4-4502-816c-d112c7142e6d","Umlauts ä_ö_ü-COUNT":1,"user_id":1,"invisible_id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}]}
|
||||
@@ -0,0 +1,10 @@
|
||||
===
|
||||
POST /records/kunsthåndværk
|
||||
|
||||
{"id":"34451583-a747-4417-bdf0-bec7a5eacffa","Umlauts ä_ö_ü-COUNT":3}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 38
|
||||
|
||||
"34451583-a747-4417-bdf0-bec7a5eacffa"
|
||||
@@ -0,0 +1,10 @@
|
||||
===
|
||||
PUT /records/kunsthåndværk/34451583-a747-4417-bdf0-bec7a5eacffa
|
||||
|
||||
{"Umlauts ä_ö_ü-COUNT":3}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
1
|
||||
@@ -0,0 +1,8 @@
|
||||
===
|
||||
DELETE /records/kunsthåndværk/34451583-a747-4417-bdf0-bec7a5eacffa
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
1
|
||||
@@ -0,0 +1,10 @@
|
||||
===
|
||||
PUT /records/comments/4
|
||||
|
||||
{"post_id":"two"}
|
||||
===
|
||||
422
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 104
|
||||
|
||||
{"code":1013,"message":"Input validation failed for 'comments'","details":{"post_id":"must be numeric"}}
|
||||
@@ -0,0 +1,18 @@
|
||||
===
|
||||
POST /records/comments
|
||||
|
||||
{"user_id":1,"post_id":2,"message":"<h1>Title</h1> <p>Body</p>","category_id":3}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
5
|
||||
===
|
||||
GET /records/comments/5
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 59
|
||||
|
||||
{"id":5,"post_id":2,"message":"Title Body","category_id":3}
|
||||
@@ -0,0 +1,64 @@
|
||||
===
|
||||
GET /records/events/1?include=visitors
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 14
|
||||
|
||||
{"visitors":0}
|
||||
===
|
||||
PATCH /records/events/1
|
||||
|
||||
{"visitors":1}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
1
|
||||
===
|
||||
PATCH /records/events/1
|
||||
|
||||
{"visitors":1}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
1
|
||||
===
|
||||
PATCH /records/events/1,1
|
||||
|
||||
[{"visitors":1},{"visitors":1}]
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 5
|
||||
|
||||
[1,1]
|
||||
===
|
||||
GET /records/events/1?include=visitors
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 14
|
||||
|
||||
{"visitors":4}
|
||||
===
|
||||
PATCH /records/events/1
|
||||
|
||||
{"visitors":-4}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
1
|
||||
===
|
||||
GET /records/events/1?include=visitors
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 14
|
||||
|
||||
{"visitors":0}
|
||||
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /records/invisibles
|
||||
===
|
||||
404
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 54
|
||||
|
||||
{"code":1001,"message":"Table 'invisibles' not found"}
|
||||
@@ -0,0 +1,18 @@
|
||||
===
|
||||
POST /records/comments
|
||||
|
||||
{"user_id":1,"post_id":2,"message":"invisible","category_id":3}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
6
|
||||
===
|
||||
GET /records/comments/6
|
||||
===
|
||||
404
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 46
|
||||
|
||||
{"code":1003,"message":"Record '6' not found"}
|
||||
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /records/nopk
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 59
|
||||
|
||||
{"records":[{"id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}]}
|
||||
@@ -0,0 +1,52 @@
|
||||
===
|
||||
POST /records/kunsthåndværk
|
||||
|
||||
{"id":"b55decba-8eb5-436b-af3e-148f7b4eacda","Umlauts ä_ö_ü-COUNT":4,"user_id":2}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 38
|
||||
|
||||
"b55decba-8eb5-436b-af3e-148f7b4eacda"
|
||||
===
|
||||
GET /records/kunsthåndværk/b55decba-8eb5-436b-af3e-148f7b4eacda
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 104
|
||||
|
||||
{"id":"b55decba-8eb5-436b-af3e-148f7b4eacda","Umlauts ä_ö_ü-COUNT":4,"user_id":1,"invisible_id":null}
|
||||
===
|
||||
PUT /records/kunsthåndværk/b55decba-8eb5-436b-af3e-148f7b4eacda
|
||||
|
||||
{"id":"b55decba-8eb5-436b-af3e-148f7b4eacda","Umlauts ä_ö_ü-COUNT":4,"user_id":2}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
1
|
||||
===
|
||||
GET /records/kunsthåndværk/b55decba-8eb5-436b-af3e-148f7b4eacda
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 104
|
||||
|
||||
{"id":"b55decba-8eb5-436b-af3e-148f7b4eacda","Umlauts ä_ö_ü-COUNT":4,"user_id":1,"invisible_id":null}
|
||||
===
|
||||
DELETE /records/kunsthåndværk/e31ecfe6-591f-4660-9fbd-1a232083037f
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
0
|
||||
===
|
||||
DELETE /records/kunsthåndværk/b55decba-8eb5-436b-af3e-148f7b4eacda
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
1
|
||||
@@ -0,0 +1,22 @@
|
||||
===
|
||||
PATCH /records/kunsthåndværk/e42c77c6-06a4-4502-816c-d112c7142e6d
|
||||
|
||||
{"Umlauts ä_ö_ü-COUNT":10}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
X-Time-Taken: 0.003
|
||||
|
||||
1
|
||||
===
|
||||
PATCH /records/kunsthåndværk/e42c77c6-06a4-4502-816c-d112c7142e6d
|
||||
|
||||
{"Umlauts ä_ö_ü-COUNT":-10}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
X-Time-Taken: 0.003
|
||||
|
||||
1
|
||||
@@ -0,0 +1,24 @@
|
||||
===
|
||||
GET /records/tag_usage
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 85
|
||||
|
||||
{"records":[{"id":1,"name":"funny","count":2},{"id":2,"name":"important","count":2}]}
|
||||
===
|
||||
GET /records/tag_usage/1
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 33
|
||||
|
||||
{"id":1,"name":"funny","count":2}
|
||||
===
|
||||
DELETE /records/tag_usage/1
|
||||
===
|
||||
405
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 58
|
||||
|
||||
{"code":1015,"message":"Operation 'delete' not supported"}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
skip-for-sqlite: no support for geometry functions (spatialite)
|
||||
===
|
||||
GET /records/users?include=id,location&filter=location,swi,POLYGON((10 10,10 50,50 50,50 10,10 10))
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 48
|
||||
|
||||
{"records":[{"id":1,"location":"POINT(30 20)"}]}
|
||||
@@ -0,0 +1,32 @@
|
||||
===
|
||||
GET /records/posts?size=10
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 690
|
||||
|
||||
{"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"}]}
|
||||
===
|
||||
GET /records/posts
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 690
|
||||
|
||||
{"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"}]}
|
||||
===
|
||||
GET /records/posts?page=5,1
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 78
|
||||
|
||||
{"records":[{"id":7,"user_id":1,"category_id":1,"content":"#3"}],"results":12}
|
||||
===
|
||||
GET /records/posts?page=6,1
|
||||
===
|
||||
403
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 46
|
||||
|
||||
{"code":1019,"message":"Pagination forbidden"}
|
||||
@@ -0,0 +1,44 @@
|
||||
===
|
||||
GET /records/events/1
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 70
|
||||
|
||||
{"id":1,"name":"Launch","datetime":"2016-01-01 13:01:01","visitors":0}
|
||||
===
|
||||
PUT /records/events/1
|
||||
|
||||
{"datetime":null,"visitors":null}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
1
|
||||
===
|
||||
GET /records/events/1
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 56
|
||||
|
||||
{"id":1,"name":"Launch","datetime":null,"visitors":null}
|
||||
===
|
||||
PUT /records/events/1
|
||||
|
||||
{"datetime":"2016-01-01 13:01:01","visitors":0}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
1
|
||||
===
|
||||
GET /records/events/1
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 70
|
||||
|
||||
{"id":1,"name":"Launch","datetime":"2016-01-01 13:01:01","visitors":0}
|
||||
@@ -0,0 +1,32 @@
|
||||
===
|
||||
GET /records/posts/1?join=tags&include=tags.name
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 69
|
||||
|
||||
{"id":1,"tags":[{"id":1,"name":"funny"},{"id":2,"name":"important"}]}
|
||||
===
|
||||
GET /records/posts/1?join=categories&include=category_id,categories.name
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 53
|
||||
|
||||
{"id":1,"category_id":{"id":1,"name":"announcement"}}
|
||||
===
|
||||
GET /records/posts/1?join=comments,categories&include=category_id,categories.name
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 145
|
||||
|
||||
{"id":1,"category_id":1,"comments":[{"post_id":1,"category_id":{"id":3,"name":"comment"}},{"post_id":1,"category_id":{"id":3,"name":"comment"}}]}
|
||||
===
|
||||
GET /records/posts/1?join=categories&join=comments,categories&include=category_id,categories.name
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 174
|
||||
|
||||
{"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"}}]}
|
||||
@@ -0,0 +1,44 @@
|
||||
===
|
||||
POST /records/barcodes
|
||||
|
||||
{"product_id":1,"hex":"","bin":""}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
2
|
||||
===
|
||||
GET /records/barcodes/2
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 64
|
||||
|
||||
{"id":2,"product_id":1,"hex":"","bin":"","ip_address":"TEST_IP"}
|
||||
===
|
||||
PUT /records/barcodes/2
|
||||
|
||||
{"ip_address":"FAKE_IP"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
0
|
||||
===
|
||||
GET /records/barcodes/2
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 64
|
||||
|
||||
{"id":2,"product_id":1,"hex":"","bin":"","ip_address":"TEST_IP"}
|
||||
===
|
||||
DELETE /records/barcodes/2
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
1
|
||||
@@ -0,0 +1,73 @@
|
||||
skip-for-sqlite: no support for geometry functions (spatialite)
|
||||
===
|
||||
GET /geojson/countries/3
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 105
|
||||
|
||||
{"type":"Feature","id":3,"properties":{"name":"Point"},"geometry":{"type":"Point","coordinates":[30,10]}}
|
||||
===
|
||||
GET /geojson/countries/4
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 127
|
||||
|
||||
{"type":"Feature","id":4,"properties":{"name":"Line"},"geometry":{"type":"LineString","coordinates":[[30,10],[10,30],[40,40]]}}
|
||||
===
|
||||
GET /geojson/countries/5
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 143
|
||||
|
||||
{"type":"Feature","id":5,"properties":{"name":"Poly1"},"geometry":{"type":"Polygon","coordinates":[[[30,10],[40,40],[20,40],[10,20],[30,10]]]}}
|
||||
===
|
||||
GET /geojson/countries/6
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 177
|
||||
|
||||
{"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]]]}}
|
||||
===
|
||||
GET /geojson/countries/7
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 137
|
||||
|
||||
{"type":"Feature","id":7,"properties":{"name":"Mpoint"},"geometry":{"type":"MultiPoint","coordinates":[[10,40],[40,30],[20,20],[30,10]]}}
|
||||
===
|
||||
GET /geojson/countries/8
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 169
|
||||
|
||||
{"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]]]}}
|
||||
===
|
||||
GET /geojson/countries/9
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 184
|
||||
|
||||
{"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]]]]}}
|
||||
===
|
||||
GET /geojson/countries/10
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 229
|
||||
|
||||
{"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]]]]}}
|
||||
===
|
||||
GET /geojson/countries/11
|
||||
===
|
||||
500
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 73
|
||||
|
||||
{"code":9999,"message":"Geometry type not supported: GEOMETRYCOLLECTION"}
|
||||
@@ -0,0 +1,17 @@
|
||||
skip-for-sqlite: no support for geometry functions (spatialite)
|
||||
===
|
||||
GET /geojson/users/1?exclude=password
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 109
|
||||
|
||||
{"type":"Feature","id":1,"properties":{"username":"user1"},"geometry":{"type":"Point","coordinates":[30,20]}}
|
||||
===
|
||||
GET /geojson/users/2?exclude=password
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 75
|
||||
|
||||
{"type":"Feature","id":2,"properties":{"username":"user2"},"geometry":null}
|
||||
@@ -0,0 +1,41 @@
|
||||
skip-for-sqlite: no support for geometry functions (spatialite)
|
||||
===
|
||||
GET /geojson/users?exclude=password
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 227
|
||||
|
||||
{"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}]}
|
||||
===
|
||||
GET /geojson/users?exclude=password&geometry=location
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 227
|
||||
|
||||
{"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}]}
|
||||
===
|
||||
GET /geojson/users?exclude=password&geometry=notlocation
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 235
|
||||
|
||||
{"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}]}
|
||||
===
|
||||
GET /geojson/users?exclude=password&page=1,1
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 163
|
||||
|
||||
{"type":"FeatureCollection","features":[{"type":"Feature","id":1,"properties":{"username":"user1"},"geometry":{"type":"Point","coordinates":[30,20]}}],"results":2}
|
||||
===
|
||||
GET /geojson/users?exclude=password&bbox=29.99,19.99,30.01,20.01
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 151
|
||||
|
||||
{"type":"FeatureCollection","features":[{"type":"Feature","id":1,"properties":{"username":"user1"},"geometry":{"type":"Point","coordinates":[30,20]}}]}
|
||||
@@ -0,0 +1,44 @@
|
||||
===
|
||||
GET /records/tags/1
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 44
|
||||
|
||||
{"id":1,"name":"funny","is_important":false}
|
||||
===
|
||||
PUT /records/tags/1
|
||||
|
||||
{"id":1,"name":"funny","is_important":true}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
1
|
||||
===
|
||||
GET /records/tags/1
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 43
|
||||
|
||||
{"id":1,"name":"funny","is_important":true}
|
||||
===
|
||||
PUT /records/tags/1
|
||||
|
||||
{"id":1,"name":"funny","is_important":false}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
1
|
||||
===
|
||||
GET /records/tags/1
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 44
|
||||
|
||||
{"id":1,"name":"funny","is_important":false}
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
===
|
||||
POST /records/kunsthåndværk
|
||||
|
||||
{"id":"b55decba-8eb5-436b-af3e-148f7b4eacda","Umlauts ä_ö_ü-COUNT":4,"user_id":2}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 38
|
||||
|
||||
"b55decba-8eb5-436b-af3e-148f7b4eacda"
|
||||
===
|
||||
GET /records/kunsthåndværk/b55decba-8eb5-436b-af3e-148f7b4eacda
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 104
|
||||
|
||||
{"id":"b55decba-8eb5-436b-af3e-148f7b4eacda","Umlauts ä_ö_ü-COUNT":4,"user_id":1,"invisible_id":null}
|
||||
===
|
||||
PUT /records/kunsthåndværk/b55decba-8eb5-436b-af3e-148f7b4eacda
|
||||
|
||||
{"id":"b55decba-8eb5-436b-af3e-148f7b4eacda","Umlauts ä_ö_ü-COUNT":3,"invisible":"test"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
1
|
||||
===
|
||||
GET /records/kunsthåndværk/b55decba-8eb5-436b-af3e-148f7b4eacda
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 104
|
||||
|
||||
{"id":"b55decba-8eb5-436b-af3e-148f7b4eacda","Umlauts ä_ö_ü-COUNT":3,"user_id":1,"invisible_id":null}
|
||||
===
|
||||
DELETE /records/kunsthåndværk/b55decba-8eb5-436b-af3e-148f7b4eacda
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
1
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
skip-always: test to expensive to run automatic, should be enabled by commenting out this line
|
||||
===
|
||||
POST /records/posts
|
||||
Content-Type: application/json; charset=utf-8
|
||||
|
||||
[{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"category_id":1,"content":"test"},{"user_id":1,"caLine truncated
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 5963
|
||||
|
||||
[16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636,637,638,639,640,641,642,643,644,645,646,647,648,649,650,651,652,653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,670,671,672,673,674,675,676,677,678,679,680,681,682,683,684,685,686,687,688,689,690,691,692,693,694,695,696,697,698,699,700,701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,720,721,722,723,724,725,726,727,728,729,730,731,732,733,734,735,736,737,738,739,740,741,742,743,744,745,746,747,748,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,767,768,769,770,771,772,773,774,775,776,777,778,779,780,781,782,783,784,785,786,787,788,789,790,791,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,829,830,831,832,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,887,888,889,890,891,892,893,894,895,896,897,898,899,900,901,902,903,904,905,906,907,908,909,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,930,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980,981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1120,1121,1122,1123,1124,1125,1126,1127,1128,1129,1130,1131,1132,1133,1134,1135,1136,1137,1138,1139,1140,1141,1142,1143,1144,1145,1146,1147,1148,1149,1150,1151,1152,1153,1154,1155,1156,1157,1158,1159,1160,1161,1162,1163,1164,1165,1166,1167,1168,1169,1170,1171,1172,1173,1174,1175,1176,1177,1178,1179,1180,1181,1182,1183,1184,1185,1186,1187,1188,1189,1190,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,1201,1202,1203,1204,1205,1206,1207,1208,1209,1210,1211,1212,1213,1214,1215,1216,1217,1218,1219,1220,1221,1222,1223,1224,1225,1226,1227,1228,1Line truncated
|
||||
===
|
||||
PUT /records/posts/16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636,637,638,639,640,641,642,643,644,645,646,647,648,649,650,651,652,653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,670,671,672,673,674,675,676,677,678,679,680,681,682,683,684,685,686,687,688,689,690,691,692,693,694,695,696,697,698,699,700,701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,720,721,722,723,724,725,726,727,728,729,730,731,732,733,734,735,736,737,738,739,740,741,742,743,744,745,746,747,748,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,767,768,769,770,771,772,773,774,775,776,777,778,779,780,781,782,783,784,785,786,787,788,789,790,791,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,829,830,831,832,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,887,888,889,890,891,892,893,894,895,896,897,898,899,900,901,902,903,904,905,906,907,908,909,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,930,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980,981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1120,1121,1122,1123,1124,1125,1126,1127,1128,1129,1130,1131,1132,1133,1134,1135,1136,1137,1138,1139,1140,1141,1142,1143,1144,1145,1146,1147,1148,1149,1150,1151,1152,1153,1154,1155,1156,1157,1158,1159,1160,1161,1162,1163,1164,1165,1166,1167,1168,1169,1170,1171,1172,1173,1174,1175,1176,1177,1178,1179,1180,1181,1182,1183,1184,1185,1186,1187,1188,1189,1190,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,1201,1202,1203,1204,1205,1206,1207,1208,1209,1210,1211,1212,1213,1214,1215,1216,1217,1218,1219,1220,1221,1222,1223,1224,122Line truncated
|
||||
Content-Type: application/json; charset=utf-8
|
||||
|
||||
[{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"category_id":1,"content":"test"},{"user_id":2,"caLine truncated
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 2813
|
||||
|
||||
[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
|
||||
@@ -0,0 +1,116 @@
|
||||
===
|
||||
GET /records/posts/1
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 61
|
||||
|
||||
{"id":1,"user_id":1,"category_id":1,"content":"blog started"}
|
||||
===
|
||||
GET /records/posts/1?format=xml
|
||||
===
|
||||
200
|
||||
Content-Type: text/xml; charset=utf-8
|
||||
Content-Length: 102
|
||||
|
||||
<root><id>1</id><user_id>1</user_id><category_id>1</category_id><content>blog started</content></root>
|
||||
===
|
||||
GET /records/posts?size=1
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 75
|
||||
|
||||
{"records":[{"id":1,"user_id":1,"category_id":1,"content":"blog started"}]}
|
||||
===
|
||||
GET /records/posts?size=1&format=xml
|
||||
===
|
||||
200
|
||||
Content-Type: text/xml; charset=utf-8
|
||||
Content-Length: 147
|
||||
|
||||
<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>
|
||||
===
|
||||
GET /records/posts/1?join=users&format=xml
|
||||
===
|
||||
200
|
||||
Content-Type: text/xml; charset=utf-8
|
||||
Content-Length: 200
|
||||
|
||||
<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>
|
||||
===
|
||||
GET /records/posts/1?join=users&join=comments,categories
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 335
|
||||
|
||||
{"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}}]}
|
||||
===
|
||||
GET /records/posts/1?join=users&join=comments,categories&format=xml
|
||||
===
|
||||
200
|
||||
Content-Type: text/xml; charset=utf-8
|
||||
Content-Length: 536
|
||||
|
||||
<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>
|
||||
===
|
||||
GET /records/posts?page=2,1
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 222
|
||||
|
||||
{"records":[{"id":2,"user_id":1,"category_id":2,"content":"🦀€ Grüßgott, Вiтаю, dobrý deň, hyvää päivää, გამარჯობა, Γεια σας, góðan dag, здравствуйте"}],"results":12}
|
||||
===
|
||||
GET /records/posts?page=2,1&format=xml
|
||||
===
|
||||
200
|
||||
Content-Type: text/xml; charset=utf-8
|
||||
Content-Length: 302
|
||||
|
||||
<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>
|
||||
===
|
||||
POST /records/posts?format=xml
|
||||
Content-Type: application/xml
|
||||
|
||||
<object><id>1</id><user_id>1</user_id><category_id>1</category_id><content>blog started</content></object>
|
||||
===
|
||||
200
|
||||
Content-Type: text/xml; charset=utf-8
|
||||
Content-Length: 72
|
||||
|
||||
<root><code>1009</code><message>Duplicate key exception</message></root>
|
||||
===
|
||||
PUT /records/posts/1?format=xml
|
||||
Content-Type: application/xml
|
||||
|
||||
<object><user_id>1</user_id><category_id>1</category_id><content>blog started</content></object>
|
||||
===
|
||||
200
|
||||
Content-Type: text/xml; charset=utf-8
|
||||
Content-Length: 14
|
||||
|
||||
<root>1</root>
|
||||
===
|
||||
PUT /records/posts/1?format=xml
|
||||
Content-Type: application/xml
|
||||
|
||||
<root><user_id>a</user_id></root>
|
||||
===
|
||||
200
|
||||
Content-Type: text/xml; charset=utf-8
|
||||
Content-Length: 137
|
||||
|
||||
<root><code>1013</code><message>Input validation failed for 'posts'</message><details><user_id>invalid integer</user_id></details></root>
|
||||
===
|
||||
PUT /records/posts/1?format=xml
|
||||
Content-Type: application/xml
|
||||
|
||||
<root><user_id>a</wrong_tag></root>
|
||||
===
|
||||
200
|
||||
Content-Type: text/xml; charset=utf-8
|
||||
Content-Length: 73
|
||||
|
||||
<root><code>1008</code><message>Cannot read HTTP message</message></root>
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
===
|
||||
GET /records/posts/1,2
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 259
|
||||
|
||||
[{"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, здравствуйте"}]
|
||||
===
|
||||
GET /records/posts/1,2?format=xml
|
||||
===
|
||||
200
|
||||
Content-Type: text/xml; charset=utf-8
|
||||
Content-Length: 364
|
||||
|
||||
<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>
|
||||
===
|
||||
PUT /records/posts/1,2?format=xml
|
||||
|
||||
<object type="array"><object><user_id>1</user_id></object><object><user_id>2</user_id></object></object>
|
||||
===
|
||||
200
|
||||
Content-Type: text/xml; charset=utf-8
|
||||
Content-Length: 54
|
||||
|
||||
<root type="array"><item>1</item><item>1</item></root>
|
||||
@@ -0,0 +1,5 @@
|
||||
===
|
||||
GET http://localhost/records/posts
|
||||
===
|
||||
301
|
||||
Location: https://localhost/records/posts
|
||||
@@ -0,0 +1,44 @@
|
||||
===
|
||||
GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
|
||||
X-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6IjE1MzgyMDc2MDUiLCJleHAiOjE1MzgyMDc2MzV9.Z5px_GT15TRKhJCTHhDt5Z6K6LRDSFnLj8U5ok9l7gw
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 45
|
||||
|
||||
{"id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
|
||||
===
|
||||
GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 45
|
||||
|
||||
{"id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
|
||||
===
|
||||
GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
|
||||
X-Authorization: Bearer invalid
|
||||
===
|
||||
403
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 57
|
||||
|
||||
{"code":1012,"message":"Authentication failed for 'JWT'"}
|
||||
===
|
||||
GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
|
||||
===
|
||||
404
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 54
|
||||
|
||||
{"code":1001,"message":"Table 'invisibles' not found"}
|
||||
===
|
||||
OPTIONS /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
|
||||
Access-Control-Request-Method: POST
|
||||
Access-Control-Request-Headers: X-PINGOTHER, Content-Type
|
||||
===
|
||||
200
|
||||
Access-Control-Allow-Headers: Content-Type, X-XSRF-TOKEN, X-Authorization
|
||||
Access-Control-Allow-Methods: OPTIONS, GET, PUT, POST, DELETE, PATCH
|
||||
Access-Control-Allow-Credentials: true
|
||||
Access-Control-Max-Age: 1728000
|
||||
@@ -0,0 +1,34 @@
|
||||
===
|
||||
GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
|
||||
Authorization: Basic dXNlcm5hbWUxOnBhc3N3b3JkMQ
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 45
|
||||
|
||||
{"id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
|
||||
===
|
||||
GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 45
|
||||
|
||||
{"id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
|
||||
===
|
||||
GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
|
||||
Authorization: Basic aW52YWxpZHVzZXI6aW52YWxpZHBhc3M
|
||||
===
|
||||
403
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 65
|
||||
|
||||
{"code":1012,"message":"Authentication failed for 'invaliduser'"}
|
||||
===
|
||||
GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
|
||||
===
|
||||
404
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 54
|
||||
|
||||
{"code":1001,"message":"Table 'invisibles' not found"}
|
||||
@@ -0,0 +1,184 @@
|
||||
===
|
||||
GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
|
||||
===
|
||||
404
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 54
|
||||
|
||||
{"code":1001,"message":"Table 'invisibles' not found"}
|
||||
===
|
||||
POST /login
|
||||
Content-Type: application/json; charset=utf-8
|
||||
|
||||
{"username":"user2","password":"pass2"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 27
|
||||
|
||||
{"id":2,"username":"user2"}
|
||||
===
|
||||
GET /me
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 27
|
||||
|
||||
{"id":2,"username":"user2"}
|
||||
===
|
||||
GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 45
|
||||
|
||||
{"id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
|
||||
===
|
||||
POST /login
|
||||
Content-Type: application/json; charset=utf-8
|
||||
|
||||
{"username":"user2","password":"incorect password"}
|
||||
===
|
||||
403
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 59
|
||||
|
||||
{"code":1012,"message":"Authentication failed for 'user2'"}
|
||||
===
|
||||
GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 45
|
||||
|
||||
{"id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
|
||||
===
|
||||
POST /logout
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 27
|
||||
|
||||
{"id":2,"username":"user2"}
|
||||
===
|
||||
GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
|
||||
===
|
||||
404
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 54
|
||||
|
||||
{"code":1001,"message":"Table 'invisibles' not found"}
|
||||
===
|
||||
POST /logout
|
||||
===
|
||||
401
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 49
|
||||
|
||||
{"code":1011,"message":"Authentication required"}
|
||||
===
|
||||
POST /register
|
||||
Content-Type: application/json; charset=utf-8
|
||||
|
||||
{"username":"user2","password":""}
|
||||
===
|
||||
422
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 60
|
||||
|
||||
{"code":1021,"message":"Password too short (<4 characters)"}
|
||||
===
|
||||
POST /register
|
||||
Content-Type: application/json; charset=utf-8
|
||||
|
||||
{"username":"user2","password":"pass2"}
|
||||
===
|
||||
409
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 53
|
||||
|
||||
{"code":1020,"message":"User 'user2' already exists"}
|
||||
===
|
||||
POST /register
|
||||
Content-Type: application/json; charset=utf-8
|
||||
|
||||
{"username":"user3","password":"pass3"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 27
|
||||
|
||||
{"id":3,"username":"user3"}
|
||||
===
|
||||
POST /login
|
||||
Content-Type: application/json; charset=utf-8
|
||||
|
||||
{"username":"user3","password":"pass3"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 27
|
||||
|
||||
{"id":3,"username":"user3"}
|
||||
===
|
||||
GET /me
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 27
|
||||
|
||||
{"id":3,"username":"user3"}
|
||||
===
|
||||
POST /password
|
||||
Content-Type: application/json; charset=utf-8
|
||||
|
||||
{"username":"user3","password":"pass3","newPassword":"secret3"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 27
|
||||
|
||||
{"id":3,"username":"user3"}
|
||||
===
|
||||
POST /logout
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 27
|
||||
|
||||
{"id":3,"username":"user3"}
|
||||
===
|
||||
POST /login
|
||||
Content-Type: application/json; charset=utf-8
|
||||
|
||||
{"username":"user3","password":"secret3"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 27
|
||||
|
||||
{"id":3,"username":"user3"}
|
||||
===
|
||||
GET /me
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 27
|
||||
|
||||
{"id":3,"username":"user3"}
|
||||
===
|
||||
POST /logout
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 27
|
||||
|
||||
{"id":3,"username":"user3"}
|
||||
===
|
||||
DELETE /records/users/3
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
1
|
||||
@@ -0,0 +1,9 @@
|
||||
skip-for-sqlite: auto incrementing primary keys must be integer typed (may not be bigint)
|
||||
===
|
||||
GET /columns
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 2840
|
||||
|
||||
{"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":"id","type":"integer","pk":true},{"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}]}]}
|
||||
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /columns/barcodes
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 283
|
||||
|
||||
{"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}]}
|
||||
@@ -0,0 +1,8 @@
|
||||
===
|
||||
GET /columns/barcodes/id
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 40
|
||||
|
||||
{"name":"id","type":"integer","pk":true}
|
||||
@@ -0,0 +1,37 @@
|
||||
skip-for-sqlite: table (columns) cannot be altered online
|
||||
===
|
||||
PUT /columns/barcodes/id
|
||||
|
||||
{"name":"id2","type":"bigint"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 4
|
||||
|
||||
true
|
||||
===
|
||||
GET /columns/barcodes/id2
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 40
|
||||
|
||||
{"name":"id2","type":"bigint","pk":true}
|
||||
===
|
||||
PUT /columns/barcodes/id2
|
||||
|
||||
{"name":"id","type":"integer"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 4
|
||||
|
||||
true
|
||||
===
|
||||
GET /columns/barcodes/id
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 40
|
||||
|
||||
{"name":"id","type":"integer","pk":true}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
skip-for-sqlite: table (columns) cannot be altered online
|
||||
===
|
||||
PUT /columns/barcodes/product_id
|
||||
|
||||
{"nullable":true}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 4
|
||||
|
||||
true
|
||||
===
|
||||
GET /columns/barcodes/product_id
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 70
|
||||
|
||||
{"name":"product_id","type":"integer","nullable":true,"fk":"products"}
|
||||
===
|
||||
PUT /columns/barcodes/product_id
|
||||
|
||||
{"nullable":false}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 4
|
||||
|
||||
true
|
||||
===
|
||||
GET /columns/barcodes/product_id
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 54
|
||||
|
||||
{"name":"product_id","type":"integer","fk":"products"}
|
||||
@@ -0,0 +1,81 @@
|
||||
skip-for-sqlite: table (columns) cannot be altered online
|
||||
===
|
||||
GET /columns/events/visitors
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 51
|
||||
|
||||
{"name":"visitors","type":"bigint","nullable":true}
|
||||
===
|
||||
PUT /columns/events/visitors
|
||||
|
||||
{"nullable":false}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 4
|
||||
|
||||
true
|
||||
===
|
||||
GET /columns/events/visitors
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 35
|
||||
|
||||
{"name":"visitors","type":"bigint"}
|
||||
===
|
||||
PUT /columns/events/visitors
|
||||
|
||||
{"nullable":true}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 4
|
||||
|
||||
true
|
||||
===
|
||||
GET /columns/events/id
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 40
|
||||
|
||||
{"name":"id","type":"integer","pk":true}
|
||||
===
|
||||
PUT /columns/events/visitors
|
||||
|
||||
{"pk":false}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 4
|
||||
|
||||
true
|
||||
===
|
||||
GET /columns/events/visitors
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 51
|
||||
|
||||
{"name":"visitors","type":"bigint","nullable":true}
|
||||
===
|
||||
PUT /columns/events/id
|
||||
|
||||
{"pk":true}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 4
|
||||
|
||||
true
|
||||
===
|
||||
GET /columns/events/id
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 40
|
||||
|
||||
{"name":"id","type":"integer","pk":true}
|
||||
@@ -0,0 +1,37 @@
|
||||
skip-for-sqlite: table (columns) cannot be altered online
|
||||
===
|
||||
PUT /columns/barcodes/product_id
|
||||
|
||||
{"fk":""}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 4
|
||||
|
||||
true
|
||||
===
|
||||
GET /columns/barcodes/product_id
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 38
|
||||
|
||||
{"name":"product_id","type":"integer"}
|
||||
===
|
||||
PUT /columns/barcodes/product_id
|
||||
|
||||
{"fk":"products"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 4
|
||||
|
||||
true
|
||||
===
|
||||
GET /columns/barcodes/product_id
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 54
|
||||
|
||||
{"name":"product_id","type":"integer","fk":"products"}
|
||||
@@ -0,0 +1,36 @@
|
||||
===
|
||||
PUT /columns/barcodes
|
||||
|
||||
{"name":"barcodes2"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 4
|
||||
|
||||
true
|
||||
===
|
||||
GET /columns/barcodes2
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 284
|
||||
|
||||
{"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}]}
|
||||
===
|
||||
PUT /columns/barcodes2
|
||||
|
||||
{"name":"barcodes"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 4
|
||||
|
||||
true
|
||||
===
|
||||
GET /columns/barcodes
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 283
|
||||
|
||||
{"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}]}
|
||||
Loaded 100 of 261 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user