https://calm-fjord-14795.herokuapp.com/api/
Requirement
- NodeJS
- Express
- cors (optional)
to disable cors origin errorsif 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 corsHow To Start the API
Run the command
node server.jsHow 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 |