Дмитрий
2 years ago
9 changed files with 87 additions and 72 deletions
@ -0,0 +1,3 @@
|
||||
/bin/ |
||||
/build/ |
||||
/ТЗ-на-тестовое-задание-на-вакансию-Go-junior-developer.pdf |
@ -0,0 +1,13 @@
|
||||
#!/bin/zsh |
||||
P=$(pwd) |
||||
curl -X POST http://127.0.0.1:5053/placements/request \ |
||||
-H "Content-Type: application/json" \ |
||||
-d @simple.json |
||||
|
||||
curl -X POST http://127.0.0.1:5053/placements/request \ |
||||
-H "Content-Type: application/json" \ |
||||
-d @skip.json |
||||
|
||||
curl -X POST http://127.0.0.1:5053/placements/request \ |
||||
-H "Content-Type: application/json" \ |
||||
-d @no_resp_for_imp.json |
@ -0,0 +1,29 @@
|
||||
{ |
||||
"id": "test", |
||||
"tiles": [ |
||||
{ |
||||
"id": 554, |
||||
"width": 100, |
||||
"ratio": 1.5 |
||||
}, |
||||
{ |
||||
"id": 555, |
||||
"width": 300, |
||||
"ratio": 1.5 |
||||
}, |
||||
{ |
||||
"id": 556, |
||||
"width": 300, |
||||
"ratio": 2.5 |
||||
}, |
||||
{ |
||||
"id": 400, |
||||
"width": 100, |
||||
"ratio": 2.5 |
||||
} |
||||
], |
||||
"context": { |
||||
"ip": "192.168.1.1", |
||||
"user_agent": "curl" |
||||
} |
||||
} |
@ -0,0 +1,19 @@
|
||||
{ |
||||
"id": "123", |
||||
"tiles": [ |
||||
{ |
||||
"id": 1234, |
||||
"width": 100, |
||||
"ratio": 1.5 |
||||
}, |
||||
{ |
||||
"id": 1235, |
||||
"width": 300, |
||||
"ratio": 1.5 |
||||
} |
||||
], |
||||
"context": { |
||||
"ip": "192.168.1.1", |
||||
"user_agent": "curl" |
||||
} |
||||
} |
Loading…
Reference in new issue