paperless/tests/test-token.sh
2023-01-20 15:21:01 +01:00

9 lines
171 B
Bash
Executable File

#!/bin/sh
. ./credentials
curl --silent -X POST "${URL}/api/token/" \
-H 'Content-Type: application/json' \
-d '{"username":"admin","password":"admin"}' | jq '.'