Allow public viewing of pets and sales
This commit is contained in:
@@ -137,6 +137,42 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Login (Staff) -> sets staffToken",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"url": "{{baseUrl}}/api/v1/auth/login",
|
||||
"header": [
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"username\": \"staff\",\n \"password\": \"staff123\"\n}",
|
||||
"options": {
|
||||
"raw": {
|
||||
"language": "json"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"event": [
|
||||
{
|
||||
"listen": "test",
|
||||
"script": {
|
||||
"type": "text/javascript",
|
||||
"exec": [
|
||||
"try {",
|
||||
" const json = pm.response.json();",
|
||||
" if (json && json.token) pm.collectionVariables.set('staffToken', json.token);",
|
||||
"} catch (e) {}"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Login (Customer) -> sets customerToken",
|
||||
"request": {
|
||||
|
||||
Reference in New Issue
Block a user