This project provides APIs to manage school data using Node.js, Express.js, and MySQL. Users can add schools and retrieve a list of schools sorted by proximity to a specified location.
- Method:
POST
- URL: (https://eduacase-task-production.up.railway.app/api/addSchool)
- Payload Example:
{ "name": "Riverdale High", "address": "101 Maple St", "latitude": 37.7749, "longitude": -122.4194 }
-
Method:
GET
-
Query Parameters
latitude
: User's latitude.longitude
: User's longitude.
Access the Postman collection for testing:
This file includes the complete setup for running locally, Postman collection import, and usage instructions.