api: read request body from stdin or file #143

Merged
stephen merged 1 commit from feat/136-api-body-input into main 2026-06-11 01:36:16 +00:00
Owner

Summary

  • Teach fj api --input - to read JSON request bodies from stdin.
  • Teach fj api --input @file to read JSON request bodies from disk.
  • Preserve inline JSON behavior for other --input values and keep JSON request construction/content type handling intact.

Tests

  • cargo fmt --check
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo test --all

Fixes rasterstate/fj#136

## Summary - Teach `fj api --input -` to read JSON request bodies from stdin. - Teach `fj api --input @file` to read JSON request bodies from disk. - Preserve inline JSON behavior for other `--input` values and keep JSON request construction/content type handling intact. ## Tests - `cargo fmt --check` - `cargo clippy --all-targets --all-features -- -D warnings` - `cargo test --all` Fixes rasterstate/fj#136
api: read request body from stdin or file
All checks were successful
ci / check (pull_request) Successful in 9m56s
ci / live-e2e (pull_request) Successful in 1m44s
ci / coverage (pull_request) Successful in 1m57s
4bfb1ba0bf
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rasterstate/fj!143
No description provided.