Electric Vehicle Charging Station - GraphQL API
Disclaimer: Still under heavy development - Repository not yet usable
1) git clone https://github.com/buda2000/EVCharging.git 2) npm install 3) npm startGraphyQL Query Builder -> Open the browser -> http://localhost:3000
Cut & paste on the GraphyQL Query Builder available at -> http://localhost:3000query { searchByArea(lat: 41, lon: -71, radius: 11200) { charger_id charging_speed available position { lat lon } reservations { reservation_id user_id timeslot { gte lte } } } }
mutation { addReservation(user_id: "TEST@TEST.it", charger_id: "1", gte: "2015-10-31 16:00:00", lte: "2015-10-31 18:00:00") { reservation_id } }