forked from bradb345/Server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient.http
More file actions
141 lines (101 loc) · 2.23 KB
/
client.http
File metadata and controls
141 lines (101 loc) · 2.23 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
125
126
127
128
129
130
@url=http://localhost:8000/api/
@token= eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjIsImV4cCI6MTYyNDg3ODc3NX0.wbJg7LLNwf08T1rgaeyPxbYGUbLW9eRkM4j_vvrpdOQ
#GET ALL PROJECTS
GET {{url}}projects/
###
#GET A SINGLE PROJECT
GET {{url}}projects/10/
###
#DELETE A PROJECT
DELETE {{url}}projects/9/
content-type: application/json
Authorization: Bearer {{token}}
###
PUT {{url}}projects/13/
content-type: application/json
Authorization: Bearer {{token}}
{
"projectName":"TESTING",
"url":"http://www.google.com/Interesting"
}
###
#CREATE A PROJECT
POST {{url}}projects/
content-type: application/json
Authorization: Bearer {{token}}
{
"projectName":"project 1",
"url":"https://bradb345.github.io/project-1/"
}
###
#CREATE A PROJECT
POST {{url}}projects/
content-type: application/json
Authorization: Bearer {{token}}
{
"projectName":"project 2",
"url":"https://project2-sei55-heros.netlify.app/"
}
###
#CREATE A NEW USER
POST {{url}}auth/register/
content-type:application/json
{
"username":"brad",
"email":"brad@email.com",
"password":"pass",
"passwordConfirmation":"pass"
}
###
#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/8/favorite/
content-type: application/json
Authorization: Bearer {{token}}
###
#GET A SINGLE USER
GET {{url}}auth/profile/2/
###
PUT {{url}}auth/profile/2/
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/