05_comment_with_files

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Post a comment with file attachments.

Two-step flow:

  1. Upload the file via /file/upload (multipart) — server returns a UUID.
  2. Post the comment with `files: [{"uuid": "..."}]`.

The OpenAPI spec models attachments differently from what the live server accepts; the {"uuid": "..."} shape is what works in practice. We use *WithBody to escape the typed body, since the typed model can't represent that shape.

FREELO_TASK_ID=12345 FREELO_FILE=./README.md go run ./examples/05_comment_with_files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL