Skip to content

Instantly share code, notes, and snippets.

@AhmedAbouelkher
Last active February 17, 2021 17:28
Show Gist options
  • Save AhmedAbouelkher/7ab3af804e035065fa88f8aa265faaed to your computer and use it in GitHub Desktop.
Save AhmedAbouelkher/7ab3af804e035065fa88f8aa265faaed to your computer and use it in GitHub Desktop.

Client

getSetting:

  • latitude, longitude is a double to 6 floating point digits (ex: 31.219211)
  • rename latitude, longitude to lat, lan
  • return from_hour, to_hour in DateTime
  • description isn't a plain text (ex: return "About us" instead of <p>About us</p> or "privacy-policy")
  • what is slug?

getSliders:

  • what is the deference between id and category_id
  • return background_color as int (ex: ec097a or "ec097a" instead of "#ec097a")
  • what is status?

getCategories:

  • Can image return as SVG?

myNotifications:

  • What are the values of messag_type?

search:

  • Feature: if the text param. is empty, return all products.

getMyFavorites:

  • What is have_price, status, type , in_fevorite, in_cart, available_int and available? (Explaining all the fields is a suggestion, as there are so many ambiguous fields usage).

  • return available_offer as an object which will has two fields (ex: from and to) ; to work with the fields as DateTime.

  • Are translations the order products?

getDeliveryCost:

  • Is one in the path{getDeliveryCost}/1 represents the city_id?
  • What is the return represents (ex: the response is just 2)?

getOrderDetail:

  • What is type: 0, delivery_date_id, delivery_time_id?
  • Can deliveryCost be a double?
  • lat and lan will be sent to 6 floating point digits (ex: 31.219211) {to use google maps more effectivly}
  • Will delivery_time[from] and delivery_time[to] be used as is or will be reformatted at client-side?
  • Is address[is_default] represent a boolean? {as the current value is 0}
  • return available_offer as an object which will has two fields (ex: from and to) ; to work with the fields as DateTime.

getProductsByCategoryId:

  • Is the text param. used to search home products?
  • return available_offer as an object which will has two fields (ex: from and to) ; to work with the fields as DateTime.
  • {Questions are the same as getMyFavorites}

getProductsByParentId:

  • What is ParentId?

Driver

getDriverOrders:

  • Is the discount_code the same as the coupon? {discount_code needs more details as it is just = 0}
  • what are delivery_cost, code_name, payment, delivery_date_id, delivery_time_id and orders_count_per_user represent?
  • What is user[remember_token]?
  • user[delivery_addresses][{address}][is_default] should be true or false, 0 or 1 are the current given.
@AhmedAbouelkher
Copy link
Author

getAvailableDates route doesn't have headers.

Screen Shot 2021-02-17 at 5 09 55 PM

@AhmedAbouelkher
Copy link
Author

AhmedAbouelkher commented Feb 17, 2021

addFavorite route responses with an internal server error when removing fcmToken header
Screen Shot 2021-02-17 at 5 01 30 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment