Curl example script (POST) not working
pigate-eu opened this issue · 1 comments
pigate-eu commented
Hi,
I try the curl example script:
===
TOKEN=$(curl -X -L 'POST' -H 'Content-Type: application/x-www-form-urlencoded' --data 'username=admin&password=admin' http://127.0.0.1:8000/login/access-token/ | jq -r ".access_token")
curl -L -H 'Accept: application/json' -H "Authorization: Bearer ${TOKEN}" http://127.0.0.1:8000/monitors/
===
I replace only the port and password for Kuma API. Any suggestion?
alencarsouza commented
@pigate-eu see this: #42