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

    4 months ago
  • Dennis moved item to board In progress

    4 months ago
  • Cristian Balan moved item to project Bugs

    4 months ago
  • Cristian Balan created the item

    4 months ago