Feat: implement squeeze record create endpoint and tests #283
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.
Description
I worked on creating an endpoint for the squeeze record. Upon creation, an email is sent to the email provided in the record. I ensured appropriate error handling across board which included checking if all the required fields were filled, checking for invalid and duplicate emails and also duplicate phones. I tested using postman. I also fixed some organization routes name by changing the "s" to "z".
API DOCS
LINEAR TICKET
Related Issue (Link to Github issue)
#282
How Has This Been Tested?
This was tested using the inbuilt Go testing library. End-to-end tests were run, which all passed, accounting for a successful creation of squeeze record, invalid and duplicate emails and also duplicate phone numbers.
Screenshots (if appropriate - Postman, etc):
Types of changes
Checklist: