EyeSeeTea / d2-portainer

0 stars 1 forks source link

Basic Infrastructure #3

Open ifoche opened 4 years ago

ifoche commented 4 years ago
tokland commented 4 years ago

Check capabilities required:

$ token=$(curl -H "Content-Type: application/json" -sS \
  -d '{"Username": "admin", "Password": "123123123"}' -X POST localhost:9000/api/auth \
  | jq '.jwt' -r)
$ curl -H "Authorization: Bearer $token" http://localhost:9000/api/endpoints | jq