Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Curl example script (POST) not working #40

Open
pigate-eu opened this issue Jun 5, 2023 · 1 comment
Open

Curl example script (POST) not working #40

pigate-eu opened this issue Jun 5, 2023 · 1 comment

Comments

@pigate-eu
Copy link

pigate-eu commented Jun 5, 2023

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/

===

but curl do nothing.
image

I replace only the port and password for Kuma API. Any suggestion?

@alencarsouza
Copy link

@pigate-eu see this: #42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants