-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclient.http
66 lines (48 loc) · 1.17 KB
/
client.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
57
58
59
60
61
62
63
64
65
66
###
# @name get_all_users_include_my_friends
GET http://localhost:3333/users/1
###
# @name get_user_friends_by_user_id
GET http://localhost:3333/users/friends/8
###
# @name create_friend_request
POST http://localhost:3333/friend-requests
Content-Type: application/json
{
"senderId": 1,
"receiverId": 2
}
###
# @name get_pending_friend_requests
GET http://localhost:3333/friend-requests/pending/2
###
# @name accept_a_friend_request
PATCH http://localhost:3333/friend-requests/accept/1
Content-Type: application/json
###
# @name reject_a_friend_request
PATCH http://localhost:3333/friend-requests/reject/7
Content-Type: application/json
###
# @name get_my_friends
GET http://localhost:3333/friendships/me/1
###
# @name get_messages_by_chat
GET http://localhost:3333/messages/?chatId=1
###
# @name send_message
POST http://localhost:3333/messages
Content-Type: application/json
{
"senderId": 2,
"receiverId": 1,
"friendshipId": 1,
"chatId": 1,
"content": "q?"
}
###
# @name read_messages_sent_to_me_by_chat
PATCH http://localhost:3333/messages/read/?chatId=1
###
# @name delete_message_by_id
DELETE http://localhost:3333/messages/676ec97cc7e21e4fc3ee8e4f