Open nataliagourova opened 4 years ago
End Point
Vendor's device longitude and latitude are collected using an /api/carts GET endpoint and passed into the database. the database also records the cart as "online" or "available" What is sent back to vendor's app is the "welcome" message and a map with the pin displayed via an /api/carts/:cartId PUT endpoint.
Given the Vendor has entered the correct login information that was submitted When the authentication clears Then the Vendor device location data (longitude and latitude) is collected on the backend and stored. The location is then used on Vendor’s device as a pin on the map