Cristian Balan

Cristian Balan

Live

The CURL example at https://developers.ploi.io/33-databases/96-create-database is wrong and I have wasted some time debugging obvious errors.

Currently:

curl -X POST "https://ploi.io/api/servers/{server}/databases" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
    -d "name"="voluptas" \
    -d "user"="voluptas" \
    -d "password"="voluptas" \

Should instead read:

curl -X POST "https://ploi.io/api/servers/{server}/databases" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
    --data '{"name":"voluptas", "user":"voluptas", "password":"voluptas"}'
You may use @ to mention someone.

Docs - Wrong Create database example

1 total vote
Cristian Balan
  • Dennis moved item to board Live

    1 month ago
  • Dennis moved item to board In progress

    1 month ago
  • Cristian Balan moved item to project Bugs

    1 month ago
  • Cristian Balan created the item

    1 month ago