-
Notifications
You must be signed in to change notification settings - Fork 8
[3.5.0] Add Contact Fields CRUD #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThe changes introduce full CRUD support for Contact Fields in the Mailtrap API client. This includes new public methods for field management in the client class, expanded documentation, example usage scripts, comprehensive tests for the new endpoints, and an updated changelog and README to reflect the new functionality. Changes
Sequence Diagram(s)sequenceDiagram
participant Client as API Client (Contact)
participant API as Mailtrap API
Client->>API: GET /contacts/fields (getAllContactFields)
API-->>Client: List of fields
Client->>API: GET /contacts/fields/{id} (getContactField)
API-->>Client: Field details
Client->>API: POST /contacts/fields (createContactField)
API-->>Client: Created field
Client->>API: PATCH /contacts/fields/{id} (updateContactField)
API-->>Client: Updated field
Client->>API: DELETE /contacts/fields/{id} (deleteContactField)
API-->>Client: 204 No Content
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (5)
🧰 Additional context used🧬 Code Graph Analysis (2)examples/general/contacts.php (2)
src/Api/General/Contact.php (1)
🪛 LanguageToolCHANGELOG.md[grammar] ~2-~2: There might be a mistake here. (QB_NEW_EN_OTHER) 🔇 Additional comments (19)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Motivation
Support new functionality (Contact Fields)
https://help.mailtrap.io/article/147-contacts
Changes
How to test
composer test
OR run PHP code from the example
Summary by CodeRabbit
New Features
Documentation
Tests