Files
cyborg/api-ref/source
melanie witt e1db68f194 Fix api-ref request samples containing curl commands instead of JSON
Several API sample files under doc/api_samples/ contained literal curl
commands instead of JSON request bodies, despite having .json file
extensions. This caused the api-ref documentation to render curl
command syntax with incorrect syntax highlighting (JavaScript or
default) instead of showing the actual JSON request payload.

Additionally, the attributes-post-curl.json file had a syntax error
with a missing closing brace in the embedded JSON.

Replace the curl command files with proper JSON request body files,
rename them from *-curl.json to *-req.json to match the existing
*-resp.json naming convention, and update the api-ref .inc files
to use consistent headings ("Example request:" instead of "Example
post curl") and add :language: javascript where it was missing.

Closes-Bug: #2158147

Assisted-by: Claude claude-opus-4-6 claude-code-2.1.190
Change-Id: I3b118051cb165c01ebefe8b8cecb9be9fc694827
Signed-off-by: melanie witt <melwittt@gmail.com>
2026-06-24 12:48:46 -07:00
..
2023-03-20 07:52:31 +00:00