https://calm-fjord-14795.herokuapp.com/api/
Requirement
- NodeJS
- Express
- cors (optional)
to disable cors origin errors
if you dont need it remove it from the code in server.js file
How To Setup the API
1- Go to the main folder 2- Run the command
npm install express cors
How To Start the API
Run the command
node server.js
How To use the API
URL | Response | Demo |
---|---|---|
http://localhost:8080/api/regions | array of regions | https://calm-fjord-14795.herokuapp.com/api/regions |
http://localhost:8080/api/villes | array of villes | https://calm-fjord-14795.herokuapp.com/api/villes |
http://localhost:8080/api/villes/{regionID} | array of Villes that have the same regionID | https://calm-fjord-14795.herokuapp.com/api/6 |