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".
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
[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[x] My code follows the code style of this project.
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: