denylie / AD320-power-team

0 stars 2 forks source link

Vendor Scenario: the login information for a Vendor is submitted into the system #13

Open nataliagourova opened 4 years ago

nataliagourova commented 4 years ago

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

nataliagourova commented 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.