Allow public viewing of pets and sales

This commit is contained in:
2026-03-08 09:39:37 -06:00
parent 3a93fea34f
commit ad81bd031d
5 changed files with 43 additions and 3 deletions

View File

@@ -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": {