-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcli.http
56 lines (44 loc) · 1.31 KB
/
cli.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
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
# Get thread
GET http://localhost:4000/api/v1/comments/?url=https://programadorwebvalencia.com/javascript-ejemplo-carrito-de-compra/
# Get token
GET http://localhost:4000/api/v1/captcha/?url=https://glosa.example/best-SO/
# Get token
GET http://localhost:4000/api/v1/captcha/?url=
# Get token
GET http://localhost:4000/api/v1/captcha/
# Get token
GET http://localhost:4000/api/v1/captcha/?other=
# Add comment
POST http://localhost:4000/api/v1/comments/
Content-Type: application/json
{
"parent": "",
"token": "ZOTJRWSPRZFQUHPHXZAV",
"author": "El Cid",
"email": "[email protected]",
"message": "I like it very much.",
"thread": "https://glosa.example/best-SO/"
}
# Latest
POST http://localhost:4000/api/v1/comments/latest/1
Content-Type: application/json
Authorization: Bearer mysecret
# All threads
GET http://localhost:4000/api/v1/threads/search/pyTHon
Content-Type: application/json
Authorization: Bearer mysecret
# Update comment
PUT http://localhost:4000/api/v1/comments/
Content-Type: application/json
Authorization: Bearer mysecret
{
"id": 4889630303,
"author": "Julio",
"email": "[email protected]",
"message": "hi my friend"
}
# Delete comment
DELETE http://localhost:4000/api/v1/comments/
Content-Type: application/json
Authorization: Bearer mysecret
{"id": 4889630296}