npm i
npm start
- Go to : http://localhost:3000/data
The POST, PUT and DELETE routes require an API key. To do that, add the "api_key" header to your HTTP requests with the value "myapikey". #stubcode
JSON Body: { "firstname": "John", "lastname": "Doe" }
JSON Body: { "firstname": "John", "lastname": "Doe" }
JSON Body: { "code": "33000", "label": "Bordeaux", "location": "44.8378° N, -0.5792° W" }
JSON Body: { "code": "33000", "label": "Bordeaux", "location": "44.8378° N, -0.5792° W" }
JSON Body: { "communeId": 1, "insecurityRate": 10, "year": 2017 }
JSON Body: { "communeId": 1, "insecurityRate": 10, "year": 2017 }
JSON Body: { "communeId": 1, "joblessRate": 10.5, "year": 2017 }
JSON Body: { "communeId": 1, "joblessRate": 10.5, "year": 2017 }
JSON Body: { "communeId": 1, "medianLivingStandard": 19200, "year": 2017 }
JSON Body: { "communeId": 1, "medianLivingStandard": 19200, "year": 2017 }
JSON Body: { "communeId": 1, "povretyRate": 16, "year": 2017 }
JSON Body: { "communeId": 1, "povretyRate": 16, "year": 2017 }
JSON Body: { "candidateId": 1, "communeId": 1, "voiceCount": 0, "year": 2017 }
JSON Body: { "candidateId": 1, "communeId": 1, "voiceCount": 0, "year": 2017 }