Skip to content

curl

curl

Single record

curl http://localhost:5080/api/default/quickstart1/_json -i -u root@example.com:Complexpass#123 -d '[{"author":"Prabhat Sharma"}]'

Large number if records from a file

For the sample file. You can use the below command.

curl http://localhost:5080/api/default/quickstart1/_json -i -u root@example.com:Complexpass#123 --data-binary "@k8slog_json.json"