-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi.http
More file actions
34 lines (27 loc) · 677 Bytes
/
api.http
File metadata and controls
34 lines (27 loc) · 677 Bytes
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
29
30
31
32
33
34
@hostname = localhost
@port = 8000
@host = {{hostname}}:{{port}}
@contentType = application/json
@acceptLanguage = es
###
GET http://{{host}}/health HTTP/1.1
Content-type: {{contentType}}
Accept-Language: {{acceptLanguage}}
###
GET http://{{host}}/docs/swagger.json HTTP/1.1
Content-type: {{contentType}}
Accept-Language: {{acceptLanguage}}
###
POST http://{{host}}/predict HTTP/1.1
Content-type: {{contentType}}
Accept-Language: {{acceptLanguage}}
{
"url": "https://www.google.com/search?q=python"
}
###
POST http://{{host}}/predict HTTP/1.1
Content-type: {{contentType}}
Accept-Language: {{acceptLanguage}}
{
"url": "http://google.com-redirect@valimail.com"
}