-
The models in the app are very similar to what is mention in api.models
-
The API for fetching Restaurant details can be found here
-
At API
/stores/<uuid>
, in case the UUID is valid identifier for a restaurant on uber eats, the details will be fetched from databse if present in local db else Uber eats API will be checked and will be populated in the local db and then sent in response, if the restaurant with theuuid
is invalid it will cause404
-
The XLSX is available at
stores-xlsx/<uuid>/
as per the specification, did not use CSV as the concepts sheets is not possible with CSV format, the sample XLSX file can be viewed here -
This is fullfilled by
stores-xlsx/<uuid>/
as well. -
Dockerized the app.
-
from root of project dir. run
docker-compose up db
(required only once to intiatlize db with some data to start with and avoid migration). -
docker-compose up
to run the app, visithttp://localhost:8000/stores