Skip to content

Conversation

@CodeVibranium
Copy link

General

Reference: #81


Description:
Created getCountryByPhoneCode API which

  1. checks if the API invoked has the correct number of required parameters sent to it.
  2. checks if the sent parameter is of type string.
  3. It iterates over the countriesList data and return an array of object (countries list) if the country is found by phone_code else it returns an empty Array.

Type of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed

Additional notes

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.

1 participant