...
The above curl command is the same as if written on one line (without the use of json_pp here):
Code Block |
---|
curl -sS -H "'Authorization: Bearer <token>" "' -d '<data>' 'http://<unimus-address>:8085/api/v2/<API-path>"' | json_pp |
You will need to substitute the values inside <...> for your actual values:
...
curl call:
Code Block |
---|
curl -ssS \ -H 'Authorization: Bearer <token>' \ 'http://<unimus-address>:8085/api/v2/health' | json_pp |
...
curl call:
Code Block |
---|
curl -ssS \ -H 'Content-type: application/json' \ -H 'Authorization: Bearer <token>' \ -d '{"address":"<address>"}' \ 'http://<unimus-address>:8085/api/v2/devices' | json_pp |
...
curl call:
Code Block |
---|
curl -ssS \ -H 'Authorization: Bearer <token>' \ 'http://<unimus-address>:8085/api/v2/devices/findByAddress/1.1.1.1' | json_pp |
...
curl call:
Code Block |
---|
curl -ssS \ -H 'Authorization: Bearer <token>' \ -X PATCH \ 'http://<unimus-address>:8085/api/v2/jobs/backup?id=57' | json_pp |
...
curl call:
Code Block |
---|
curl -ssS \ -H 'Authorization: Bearer <token>' \ 'http://<unimus-address>:8085/api/v2/devices/57/backups/latest' | json_pp |
...