paperless/tests/test-token.sh

9 lines
171 B
Bash
Raw Normal View History

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