Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Restaurant Section Home

We have sections at home with 4 different data types.

  1. featured_restaurants: This is in the most section restaurant data type. Section restaurants that use these data types are section 1, section 3, section 4, section 6, section 8, section 9, section 11, section 12, and section 13.
  2. branches: we use this in section 5, we showing data about popular brands, and when we click usually show a group landing page or search page. But we'll create auto generate in the next sprint and make branch always go to group landing page.
  3. restaurant_tags: we use this in section 7, we showing tags data like popular cuisines, location, or any tag promotion in this section.
  4. restaurants: we use this in section 14, this section shows a single restaurant. A long time ago we have some promotions to give user delivery free up to 30 km. So, this section shows which restaurant that gives free delivery based on user's location. If you ask why there are no sections 2, 4, and 10. Section 2 is promotion banner section, section 4 featured restaurant with slider UI, and section 10 is blogger and user review. But we already take out slider restaurants and reviews from home.

How to use API:

Private (https://app.clickup.com/9003122396/docs/8ca1fpw-15242/8ca1fpw-16242) You can use this API from insomnia folder "home" with default payload like:

{
	"page": {
		"number": 1,
		"size": 10
	},
	"minor_version": "3"
}

Especially section 14 that need our location we'll use payload like this:

{
	"page": {
		"number": 1,
		"size": 10
	},
	"location": {
		"lat": 13.7563,
		"lon": 100.5018
	},
	"minor_version": "3"
}

Besides that, we also have API to get list section for featured_restaurants with using API {{base_api}}/homes/sections.json with this API we can map the data for group landing section restaurant base on the slug data.