This pull request introduces a new /resend API endpoint and related infrastructure for sending emails, as well as some minor improvements and housekeeping updates. The most significant changes include adding the Resend API integration, updating the API routing, and enhancing environment variable management.#44
Merged
Conversation
Increment package version to 2.0.5 and update .env.sample to include GEMINI_API_KEY and RESEND_API_KEY for new integrations. Also apply a minor README whitespace/formatting tweak.
Introduce a new /resend route (app/api/resend/resend.py) that returns a basic resend action and verifies RESEND_API_KEY from the environment. Export the router in app/api/resend/__init__.py and register it in app/api/routes.py; also add the resend entry to the root endpoints list in app/api/root.py. Simplify and reformat the metadata structure returned by make_meta (app/utils/make_meta.py) by removing redundant fields and normalizing keys (severity, message, base_url, version, time).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resend API integration:
app/api/resend/resend.pyfile implementing the/resendendpoint, which checks for theRESEND_API_KEYenvironment variable and returns a status message.app/api/resend/__init__.pyto expose the Resend router for inclusion in the API.app/api/routes.pyto include the new Resend router. [1] [2]/resendto the root endpoint listing inapp/api/root.py.Environment variable improvements:
GEMINI_API_KEYandRESEND_API_KEYplaceholders to.env.sampleto clarify required configuration for email and AI integrations.Other improvements:
make_metautility function to streamline and clarify the metadata structure returned by API endpoints.2.0.4to2.0.5inapp/__init__.py.These changes lay the groundwork for email functionality via the Resend service and improve configuration clarity for future development.