Blake2912 / Vahini-2.0

A Self-Driving Auto-irrigation Electric Vehicle
2 stars 1 forks source link

Addition of function to return the adjacent connected nodes for a given node #34

Closed Blake2912 closed 1 year ago

amartyanambiar commented 1 year ago

much need to make the UI become intelligent.

Blake2912 commented 1 year ago

Approach for solving this problem, creation of two API Routes

  1. /fetch-all-nodes a simple GET API which will return all the nodes in the graph
  2. /fetch-neighbours a simple POST API which takes the current_node and returns neighbours

Frontend requirements would be to integrate the two apis