-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_main.http
28 lines (21 loc) · 942 Bytes
/
test_main.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Test FastAPI endpoints
GET http://localhost:8002/
Accept: application/json
> {%
client.test("Request executed successfully", function() {
client.assert(response.status === 200, "Expected response status to be 200");
});
%}
### Test the knn endpoint with a few test images
POST http://localhost:8002/knn/3/901902-uavs
Accept: application/json
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="files"; filename="7e28463e-bab3-5279-b5ea-a741c2997101.png"
Content-Type: image/png
< ./tests/images/crops/7e28463e-bab3-5279-b5ea-a741c2997101.png
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="files"; filename="0069afd3-65fc-55f3-8a86-b0f08d004a65.png"
Content-Type: image/png
< ./tests/images/crops/0069afd3-65fc-55f3-8a86-b0f08d004a65.png
------WebKitFormBoundary7MA4YWxkTrZu0gW--