Skip to content

corrected country api

Fixes #58 (closed)

Short description of what this resolves:

The country API which is currently being used in the extension was not working so I implemented a new API which will fetch all the country names in alphabetical order to be used for the AOSSIE-Scholar Profile Extension page and will display all the countries for a particular scholar

Changes proposed in this pull request:

  • The fetch() method has been used to request to the server and load the information in the scholar page.

  • The request of API returns the data of the format JSON

  • The data from API by fetch() method in data variable is passed as data variable to function which shows the data fetched ad the function show takes the data variable and by applying for loop on data.list and getting all the contries to show.

Checklist

  • My branch is up-to-date with the Upstream develop branch.
  • The acceptance, integration, unit tests, and linter pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
Edited by Subhangi Choudhary

Merge request reports