-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWebsite automater.postman_collection.json
172 lines (172 loc) · 3.35 KB
/
Website automater.postman_collection.json
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
{
"info": {
"_postman_id": "5571ca7a-351a-496d-b851-75e624370f02",
"name": "Website automater",
"description": "### Logging In\n1. Use the `POST` \"Log in\" resource to get retrieve and access token. Update the request body with the user info you want to log in as.\n2. Copy the `access` token that is returned in the response body\n3. Click on \"Website automator in the collections panel to view the config options\n4. Click on the Variables tab\n5. Paste the token in the \"Current Value\" column of the token variable\n6. Try out one of the post requests to check that it was successful\n7. Access tokens expire after 5 minutes, you'll need to repeat the process after the token expires to continue using postman",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Log in",
"request": {
"auth": {
"type": "bearer"
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"username\": \"hannahhall\",\n \"password\": \"asdf1234\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8000/auth/token/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"auth",
"token",
""
]
}
},
"response": []
},
{
"name": "Create Program",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Web dev part time\",\n \"techs\": [1]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8000/api/programs",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"programs"
]
}
},
"response": []
},
{
"name": "Get Techs",
"request": {
"auth": {
"type": "noauth"
},
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/techs",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"techs"
]
}
},
"response": []
},
{
"name": "Create Tech",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "icon",
"type": "file",
"src": "/Users/hannahhall/workspace/hannahhall.github.io/src/assets/tech/tech-html.png"
},
{
"key": "text",
"value": "HTML2",
"type": "default"
}
],
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8000/api/techs",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"techs"
]
}
},
"response": []
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
}
],
"variable": [
{
"key": "token",
"value": "",
"type": "default"
}
]
}