forked from gursham2001/Client
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathclient.http
More file actions
138 lines (93 loc) · 2.16 KB
/
client.http
File metadata and controls
138 lines (93 loc) · 2.16 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
@url=http://localhost:8000/api/
@token= eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjIsImV4cCI6MTYyNDg3ODU5OX0.JtlvwVOnCZQDkrCbirFmTXAAnQ91HLWnaSF3CgI7C2A
@id = 3
#GET ALL PROJECTS
GET {{url}}projects/
###
#GET A SINGLE PROJECT
GET {{url}}projects/13/
###
#DELETE A PROJECT
DELETE {{url}}projects/9/
content-type: application/json
Authorization: Bearer {{token}}
###
#CREATE A PROJECT
POST {{url}}projects/
content-type: application/json
Authorization: Bearer {{token}}
{
"projectName":"High Focus12332",
"url":"https://www.high-focus.com/home/"
}
###
#CREATE A NEW USER
POST {{url}}auth/register/
content-type:application/json
{
"username":"ErrorTest",
"email":"ErrorTest@email.com",
"password":"pass",
"passwordConfirmation":"pass",
"profileImage":"https://i.imgflip.com/47n5zy.png",
"gacohort":"SEI#55",
"linkedin":"www.linkedin.com",
"github":"www.github.com",
"twitter":"www.twitter.com",
"instagram":"www.instagram.com",
"personal_site":"www.google.com",
"jobTitle":"Junior Dev"
}
###
#LOGIN USER
POST {{url}}auth/login/
content-type:application/json
{
"email":"admin@email.com",
"password":"admin"
}
###
#MAKE A COMMENT
POST {{url}}projects/1/comments/
content-type: application/json
Authorization: Bearer {{token}}
{
"content":"this is a comment that im gonna delete Craig"
}
###
#DELETE COMMENT
DELETE {{url}}projects/1/comments/1/
content-type: application/json
Authorization: Bearer {{token}}
###
#FAVORITE
POST {{url}}projects/13/favorite/
content-type: application/json
Authorization: Bearer {{token}}
###
#GET A SINGLE USER
GET {{url}}auth/profile/{{id}}/
###
PUT {{url}}auth/profile/{{id}}/
content-type: application/json
Authorization: Bearer {{token}}
{
"username": "admin",
"password": "admin",
"passwordConfirmation": "admin",
"profileImage": "https://www.pngitem.com/pimgs/m/150-1503945_transparent-user-png-default-user-image-png-png.png",
"email": "admin@email.com",
"favorites": [],
"comments": [],
"createdProject": "",
"gacohort": "",
"linkedin": "",
"github": "",
"twitter": "",
"personalsite": "",
"instagram": "instagram",
"jobTitle": "Engineer"
}
###
# GET ALL users
GET {{url}}auth/profile/