Skip to content

Mr-Destructive/world-atlas-api

Repository files navigation

An API for World Atlas - the geographical game.

You can check out and play the World Atlas game.

Currently it is implemented in without using this API, there are tons of Js hard coded arrays for that. That would be easy to exploit the game in a real-world scenario.

Soon, this API will be integrated into the app as well.

API Endpoints

  • '/<place>' -> for validating the place.

    • Returns true if the place exists in the database.
    • Else returns false if it doesn't.

  • '/get/<letter>' -> for obtaining an random place with given letter.

    • Returns an place, beginning with the alphabet letter

  • '/list/<letter>' -> Obtains a list of all places with given letter.

    • Returns a list of places, beginning with the alphabet letter

  • '/create/<place>' -> Enters the place into database.

    • Posts the entered place into the database.