generated from yandex-praktikum/express-mesto-gha
-
Notifications
You must be signed in to change notification settings - Fork 0
/
request.http
54 lines (41 loc) · 1.52 KB
/
request.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
GET http://localhost:3000/users/62306b3cc773f2c9cfa2dd59
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2MjMwNmIzY2M3NzNmMmM5Y2ZhMmRkNTkiLCJpYXQiOjE2NDczNDMyNjQsImV4cCI6MTY0Nzk0ODA2NH0.qJ9rybEcqiVtouUBK_U8KCDCj6aAU0tgQ0c-ppMMaLo
###
POST http://localhost:3000/signin
Content-Type: application/json
{
"email": "[email protected]",
"password": "098765"
}
###
GET http://localhost:3000/cards
###
POST http://localhost:3000/cards
Content-Type: application/json
{
"name": "карточка тест",
"link": "https://images.unsplash.com/photo-1646289224338-0950c4ad9d9d?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHx0b3BpYy1mZWVkfDR8aVVJc25WdGpCMFl8fGVufDB8fHx8&auto=format&fit=crop&w=500&q=60"
}
###
DELETE http://localhost:3000/cards/6238e1c855ff5bdd661f5655
###
PATCH http://localhost:3000/users/me
Content-Type: application/json
Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2MjNmMDJjNzRlODU4ZTdhZGE2YjEyNDkiLCJpYXQiOjE2NDgyOTY2NTgsImV4cCI6MTY0ODkwMTQ1OH0.Zy40Cw1mP-4UvHOZlwNiTFzQpal61p8s3LEeQSr7i-4
{
"name": "Kate",
"about": "about"
}
###
GET http://localhost:3000/users/me
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2MjMwNmIzY2M3NzNmMmM5Y2ZhMmRkNTkiLCJpYXQiOjE2NDczNDMyNjQsImV4cCI6MTY0Nzk0ODA2NH0.qJ9rybEcqiVtouUBK_U8KCDCj6aAU0tgQ0c-ppMMaLo
###
PATCH http://localhost:3000/users/me/avatar
Content-Type: application/json
{
"avatar": "some url"
}
###
PUT http://localhost:3000/cards/67dabe91ccce6dq/likes
###
DELETE http://localhost:3000/cards/6229070b4дл9fbc12d5800b4/likes