foss42 / api

Open Source APIs
https://api.apidash.dev/docs
Apache License 2.0
48 stars 25 forks source link

Country Phone Codes #47

Open sivajyothika opened 1 month ago

sivajyothika commented 1 month ago

Hi , For country , I want to add one more API called country phone code which gives the phone codes of countries example (India : 91 , USA : 1,UK : 44 )

This is the approach :

method: get
title: Country Phone Code Dictionary
desc: Fetch the country phone code dictionary where country names are keys and the respective phone codes are the values corresponding to the keys.
path: country/phonecodes
ashitaprasad commented 1 month ago

Yes you can add it .. we already have the data in foss42-core https://github.com/foss42/foss42-core/blob/c38af576f2311c4185bec8c17f72042ead453124/foss42/data/geo/country.py#L266

sivajyothika commented 1 month ago

Yes you can add it .. we already have the data in foss42-core https://github.com/foss42/foss42-core/blob/c38af576f2311c4185bec8c17f72042ead453124/foss42/data/geo/country.py#L266

Sure will do that

lassmara commented 1 month ago

Please assign me this issue.

shashbh18 commented 1 week ago

I would love to work on it.Please assign this issue to me.

bro-maanii commented 1 week ago

Hi Ashitaprasad

I noticed that the implementation of the country phone code API requested on May 18 hasn't been completed yet. To help move things forward, I have created a pull request that addresses this.

The new API endpoint I've added is: Method: GET Title: Country Phone Code Dictionary Description: Fetches the country phone code dictionary where country names are keys and the respective phone codes are the values corresponding to the keys. Path: /country/phonecodes

Please review the pull request at your earliest convenience and let me know if there are any changes or improvements needed. Thank you!

Best regards, Eman Ali