Closed Blake2912 closed 1 year ago
In order to test the APIs use postman,
/fetch-all-nodes
simple GET request should do the tick and the expected result will be:
[ "cmrit_entrance", "teacher_parking", "volley_ball_court", "basic_science", "ganesha_statue", "hostel_turn" ]
/fetch-neighbours
simple POST request the payload should have the key as current_node
and the value should be any valid node returned from the GET call, and the expected response for teacher_parking
[ "volley_ball_court", "cmrit_entrance", "basic_science" ]
Note: It should be a form data for the POST call