Company: ethos_20sep
Difficulty: medium
REST API: Finest Food Outlets Problem Description Use the HTTP GET method to retrieve information from a database of food outlets. Query https://jsonmock.hackerrank.com/api/food_outlets?city=<city>&page=<page_no> to find all the records for a city. The query result is paginated. To access additional pages, append &page=<num> to the URL, where <num> is the page number. The response is a JSON object with the following 5 fields: page : The current page of the results. (Number) per_page : The maximum number of results returned per page. (Number) total : The total number of results. (Number) total_pages : The total number of pages with results. (Number) data : Either an empty array or an array with a single object that contains the food outlets' records. In data, each food outlet has the following schema: id : outlet ID (Number) name : Name of the outlet (String) city : The city in which the outlet is located (String) estimated_cost : The estimated cost of th