[Logs] Update curl commands under Logs
Summary
This updates curl commands under Logs per guidelines: https://developers.cloudflare.com/style-guide/api-content-strategy/guidelines-for-curl-commands/
Changes:
-
Use long parameter names for
--header,--request, and--data. -
Use double quotes for parameters.
-
Remove double quotes for URL, except when there is
?(use double quotes). -
Indent two spaces for request and response bodies.
-
Remove
jqpiping. -
Reorder parameters for multi-line commands (and remove indentation except for
--data) to be consistent. -
Use correct placeholders, i.e.,
{name}in URLs, and<NAME>in request / response bodies. -
Remove
--request GETand--silent. -
Remove
--request POSTwhen there's a body (with--dataor--data-raw). -
Use
bashsyntax for commands, andjsonsyntax for JSON responses.
Documentation checklist
- [x] The documentation style guide has been adhered to.
Deploying cloudflare-docs with
Cloudflare Pages
| Latest commit: |
17b4c4d
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://f486bd8a.cloudflare-docs-7ou.pages.dev |
| Branch Preview URL: | https://sohei-update-curl-commands-u.cloudflare-docs-7ou.pages.dev |
Files with changes (up to 15)
I will wait for https://github.com/cloudflare/cloudflare-docs/pull/15964 to be merged, then resolve conflict.
@soheiokamoto just to let you know that https://github.com/cloudflare/cloudflare-docs/pull/16790 that replaced https://github.com/cloudflare/cloudflare-docs/pull/15964 (it had too many conflicts) was merged.
All feedback addressed. Rebased, and went over the curl commands again.