Skip to content

feat: add curl-friendly endpoints for text and file pastes, enhance A…#21

Merged
kek-Sec merged 2 commits into
mainfrom
feat/curl-support
Apr 21, 2026
Merged

feat: add curl-friendly endpoints for text and file pastes, enhance A…#21
kek-Sec merged 2 commits into
mainfrom
feat/curl-support

Conversation

@kek-Sec
Copy link
Copy Markdown
Owner

@kek-Sec kek-Sec commented Apr 21, 2026

This pull request introduces new, curl-friendly endpoints for creating text and file pastes, enhances raw-body support for paste creation, and improves API documentation and file storage robustness. It also updates tests and documentation to reflect these changes, while maintaining backward compatibility with the original /send endpoint.

API Enhancements:

  • Added dedicated endpoints: POST /send/text for text pastes and POST /send/file for file pastes, both designed to be curl-friendly and to support raw request bodies. [1] [2] [3] [4]
  • The new endpoints accept text or file data directly in the request body, simplifying CLI and automation workflows. [1] [2] [3]

Documentation Updates:

  • Expanded the API section in Readme.md with practical curl examples for both text and file flows, and clarified accepted options and response formats.
  • Updated CHANGELOG.md to summarize the new features and improvements.

File Storage Robustness:

  • Hardened file storage logic to safely fall back to a temp directory if STORAGE_PATH is unset, ensuring reliable file handling in all environments.

Testing Improvements:

  • Added tests for the new endpoints and raw-body flows, and updated route and rate limiter tests to cover the expanded API. [1] [2] [3] [4]

Version Bump:

  • Updated application version to 1.0.10 to reflect these new features.…PI documentation, and improve file handling

Comment thread internal/handlers/handlers.go Fixed
… between integer types'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@kek-Sec kek-Sec merged commit 3557087 into main Apr 21, 2026
11 checks passed
@kek-Sec kek-Sec deleted the feat/curl-support branch April 21, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants