/World_api

Primary LanguageJavaScript

World API

A simple basic REST API created using Express framework. The API servers the cites of world database, allows users to filter by country code and update population of cities usings its api endpoints.

Packages used:

  • helmet
  • morgan
  • cors
  • swagger-UI-express
  • router

How to Use:

  1. clone the repo.
  2. Open the cloned repo and run npm install.
  3. To start the Express server run node app.js or nodemon expworld
  4. Open http://localhost:3000/docs to read the API documentation and live code examples to test each endpoint.